org.dcm4che2.iod.module.pr
Class DisplayShutterModule

java.lang.Object
  extended by org.dcm4che2.iod.module.Module
      extended by org.dcm4che2.iod.module.pr.DisplayShutterModule

public class DisplayShutterModule
extends Module

C.7.6.11 Shutter to opaque areas. Also includes C.11.12 for the colour of the opaqued area, and C.7.6.15 for bitmap shutters.

Since:
July 19, 2007
Version:
$Revision$ $Date$
Author:
Bill Wallace

Field Summary
 
Fields inherited from class org.dcm4che2.iod.module.Module
dcmobj
 
Constructor Summary
DisplayShutterModule(DicomObject dcmobj)
          Create a display shutter IOD instance on the given dicom object data.
 
Method Summary
static float[] convertToFloatLab(int[] lab)
          This method converts integer DICOM encoded L*a*b* values to CIE L*a*b* regular float encoded values.
 int[] getCenterOfCircularShutter()
           
 float[] getFloatLab()
          This version of getShutterPresentationColorCIELabValue returns converted L*a*b* values on 0..100, -128..127, -128..127 respectively.
 int getRadiusOfCircularShutter()
           
 int getShutterLeftVerticalEdge()
           
 int getShutterLowerHorizontalEdge()
           
 int[] getShutterPresentationColorCIELabValue()
          Returns the CIELab value as PCS-Values for the shutter colour.
 int getShutterPresentationValue()
          Returns asingle gray unsigned value to replace occluded parts of the imatge p-values form 0 to FFFFH (white).
 int getShutterRightVerticalEdge()
           
 java.lang.String[] getShutterShapes()
           
 int getShutterUpperHorizontalEdge()
           
 int[] getVerticesOfThePolygonalShutter()
           
 void setCenterOfCircularShutter(int[] center)
           
 void setRadiusOfCircularShutter(int radius)
           
 void setShutterLeftVerticalEdge(int value)
           
 void setShutterLowerHorizontalEdge(int value)
           
 void setShutterRightVerticalEdge(int value)
           
 void setShutterShapes(java.lang.String[] shapes)
           
 void setShutterUpperHorizontalEdge(int value)
           
 
Methods inherited from class org.dcm4che2.iod.module.Module
getDicomObject, getType1Tags, getType2Tags, init, updateSequence, updateSequence, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayShutterModule

public DisplayShutterModule(DicomObject dcmobj)
Create a display shutter IOD instance on the given dicom object data.

Method Detail

getShutterShapes

public java.lang.String[] getShutterShapes()

setShutterShapes

public void setShutterShapes(java.lang.String[] shapes)

getCenterOfCircularShutter

public int[] getCenterOfCircularShutter()

setCenterOfCircularShutter

public void setCenterOfCircularShutter(int[] center)

getRadiusOfCircularShutter

public int getRadiusOfCircularShutter()

setRadiusOfCircularShutter

public void setRadiusOfCircularShutter(int radius)

getShutterLeftVerticalEdge

public int getShutterLeftVerticalEdge()

getShutterRightVerticalEdge

public int getShutterRightVerticalEdge()

getShutterUpperHorizontalEdge

public int getShutterUpperHorizontalEdge()

getShutterLowerHorizontalEdge

public int getShutterLowerHorizontalEdge()

setShutterLeftVerticalEdge

public void setShutterLeftVerticalEdge(int value)

setShutterRightVerticalEdge

public void setShutterRightVerticalEdge(int value)

setShutterUpperHorizontalEdge

public void setShutterUpperHorizontalEdge(int value)

setShutterLowerHorizontalEdge

public void setShutterLowerHorizontalEdge(int value)

getShutterPresentationValue

public int getShutterPresentationValue()
Returns asingle gray unsigned value to replace occluded parts of the imatge p-values form 0 to FFFFH (white).


getShutterPresentationColorCIELabValue

public int[] getShutterPresentationColorCIELabValue()
Returns the CIELab value as PCS-Values for the shutter colour.

Returns:
triplet L*a*b* where L is scaled from 0 to 0xFFFF correspondign to L 0 to 100 and a*, b* 0x000 of -128, 0x8080 of 0.0 and 0xFFFF of 127.

getFloatLab

public float[] getFloatLab()
This version of getShutterPresentationColorCIELabValue returns converted L*a*b* values on 0..100, -128..127, -128..127 respectively.


convertToFloatLab

public static float[] convertToFloatLab(int[] lab)
This method converts integer DICOM encoded L*a*b* values to CIE L*a*b* regular float encoded values.

Parameters:
lab -
Returns:
float array of 3 components L* on 0..1 and a*,b* on -128...127

getVerticesOfThePolygonalShutter

public int[] getVerticesOfThePolygonalShutter()


Copyright © 2011 dcm4che. All Rights Reserved.