org.dicom4j.images.transforms
Class VOITransform

java.lang.Object
  extended by org.dicom4j.images.transforms.VOITransform

public class VOITransform
extends Object

A transformation constructed from a DICOM attribute list that extracts those attributes that define the VOI LUT transformation, specifically the window center and width attributes.

Looks first for a per-frame functional group FrameVOILUTSequence then looks in the shared functional groups, otherwise tries to find the Window Center and Width values in the top level of the dataset.

Note that multiple transformations (for each frame) may be present and are supported (specifically, Window Center and Width are multi-valued attributes).

Does not currently support a LUT in the VOI LUT Sequence, only linear window values.

Author:
dclunie

Constructor Summary
VOITransform(DataSet list)
           
 
Method Summary
 double getCenter(int frame, int transform)
          Get the window center of the particular transform available for a particular frame.
 int getNumberOfTransforms(int frame)
          Get the number of transforms available for a particular frame.
 double getWidth(int frame, int transform)
          Get the window width of the particular transform available for a particular frame.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VOITransform

public VOITransform(DataSet list)
Parameters:
list -
Method Detail

getNumberOfTransforms

public int getNumberOfTransforms(int frame)
Get the number of transforms available for a particular frame.

Parameters:
frame - numbered from zero; needed to select which transform if frame-specific
Returns:
the number of transforms available for the frame, 0 if none

getWidth

public double getWidth(int frame,
                       int transform)
Get the window width of the particular transform available for a particular frame.

Parameters:
frame - numbered from zero; needed to select which transform if frame-specific
transform - numbered from zero; needed to select which transform if more than one for that frame
Returns:
the window width, or 0 if none

getCenter

public double getCenter(int frame,
                        int transform)
Get the window center of the particular transform available for a particular frame.

Parameters:
frame - numbered from zero; needed to select which transform if frame-specific
transform - numbered from zero; needed to select which transform if more than one for that frame
Returns:
the window center, or 0 if none

toString

public final String toString()
Overrides:
toString in class Object


Copyright © 2009 dicom4j. All Rights Reserved.