Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit

Applies the grayvalue or color/opacity level window to scalar or RGB(A) images. More...

#include <vtkMitkLevelWindowFilter.h>

Inheritance diagram for vtkMitkLevelWindowFilter:
Collaboration diagram for vtkMitkLevelWindowFilter:

Public Member Functions

 vtkTypeMacro (vtkMitkLevelWindowFilter, vtkThreadedImageAlgorithm)
 
virtual unsigned long int GetMTime () override
 
vtkScalarsToColors * GetLookupTable ()
 Get the lookup table for the RGB level window. More...
 
void SetLookupTable (vtkScalarsToColors *lookupTable)
 Set the lookup table for the RGB level window. More...
 
vtkPiecewiseFunction * GetOpacityPiecewiseFunction ()
 Get the piecewise function used to map scalar to alpha component value (only used when the lookupTable is a vtkColorTransferFunction) More...
 
void SetOpacityPiecewiseFunction (vtkPiecewiseFunction *opacityFunction)
 Set the piecewise function used to map scalar to alpha component value (only used when the lookupTable is a vtkColorTransferFunction) More...
 
void SetMinOpacity (double minOpacity)
 Get/Set the lower window opacity for the alpha level window. More...
 
double GetMinOpacity () const
 
void SetMaxOpacity (double maxOpacity)
 Get/Set the upper window opacity for the alpha level window. More...
 
double GetMaxOpacity () const
 
void SetClippingBounds (double *)
 Set clipping bounds for the opaque part of the resliced 2d image. More...
 

Static Public Member Functions

static vtkMitkLevelWindowFilterNew ()
 

Protected Member Functions

 vtkMitkLevelWindowFilter ()
 
 ~vtkMitkLevelWindowFilter ()
 
void ThreadedExecute (vtkImageData *inData, vtkImageData *outData, int extent[6], int id) override
 Method for threaded execution of the filter. More...
 
int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
 

Detailed Description

Applies the grayvalue or color/opacity level window to scalar or RGB(A) images.

Documentation This filter is used to apply the color level window to RGB images (e.g. diffusion tensor images). Therefore, the RGB channels are converted to the HSI color space, where the level window can be applied. Afterwards, the HSI values transformed back to the RGB space.

The filter is also able to apply an opacity level window to RGBA images.

Definition at line 38 of file vtkMitkLevelWindowFilter.h.

Constructor & Destructor Documentation

vtkMitkLevelWindowFilter::vtkMitkLevelWindowFilter ( )
protected

Default constructor.

Definition at line 41 of file vtkMitkLevelWindowFilter.cpp.

vtkMitkLevelWindowFilter::~vtkMitkLevelWindowFilter ( )
protected

Default deconstructor.

Definition at line 47 of file vtkMitkLevelWindowFilter.cpp.

Member Function Documentation

vtkScalarsToColors * vtkMitkLevelWindowFilter::GetLookupTable ( )

Get the lookup table for the RGB level window.

Definition at line 74 of file vtkMitkLevelWindowFilter.cpp.

Referenced by mitk::RegEvaluationMapper2D::ApplyLevelWindow(), and ThreadedExecute().

double vtkMitkLevelWindowFilter::GetMaxOpacity ( ) const
inline

Definition at line 580 of file vtkMitkLevelWindowFilter.cpp.

double vtkMitkLevelWindowFilter::GetMinOpacity ( ) const
inline

Definition at line 570 of file vtkMitkLevelWindowFilter.cpp.

unsigned long int vtkMitkLevelWindowFilter::GetMTime ( )
overridevirtual

Definition at line 51 of file vtkMitkLevelWindowFilter.cpp.

vtkPiecewiseFunction* vtkMitkLevelWindowFilter::GetOpacityPiecewiseFunction ( )
inline

Get the piecewise function used to map scalar to alpha component value (only used when the lookupTable is a vtkColorTransferFunction)

Definition at line 53 of file vtkMitkLevelWindowFilter.h.

static vtkMitkLevelWindowFilter* vtkMitkLevelWindowFilter::New ( )
static
int vtkMitkLevelWindowFilter::RequestInformation ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
overrideprotected

Standard VTK filter method to apply the filter. See VTK documentation.

Definition at line 481 of file vtkMitkLevelWindowFilter.cpp.

void vtkMitkLevelWindowFilter::SetClippingBounds ( double *  bounds)

Set clipping bounds for the opaque part of the resliced 2d image.

Definition at line 585 of file vtkMitkLevelWindowFilter.cpp.

void vtkMitkLevelWindowFilter::SetLookupTable ( vtkScalarsToColors *  lookupTable)

Set the lookup table for the RGB level window.

Definition at line 65 of file vtkMitkLevelWindowFilter.cpp.

Referenced by mitk::RegEvaluationMapper2D::ApplyLookuptable().

void vtkMitkLevelWindowFilter::SetMaxOpacity ( double  maxOpacity)

Get/Set the upper window opacity for the alpha level window.

Definition at line 575 of file vtkMitkLevelWindowFilter.cpp.

Referenced by mitk::RegEvaluationMapper2D::ApplyLevelWindow().

void vtkMitkLevelWindowFilter::SetMinOpacity ( double  minOpacity)

Get/Set the lower window opacity for the alpha level window.

Definition at line 565 of file vtkMitkLevelWindowFilter.cpp.

Referenced by mitk::RegEvaluationMapper2D::ApplyLevelWindow().

void vtkMitkLevelWindowFilter::SetOpacityPiecewiseFunction ( vtkPiecewiseFunction *  opacityFunction)

Set the piecewise function used to map scalar to alpha component value (only used when the lookupTable is a vtkColorTransferFunction)

Definition at line 79 of file vtkMitkLevelWindowFilter.cpp.

void vtkMitkLevelWindowFilter::ThreadedExecute ( vtkImageData *  inData,
vtkImageData *  outData,
int  extent[6],
int  id 
)
overrideprotected

Method for threaded execution of the filter.

Parameters
*inDataThe input.
*outDataThe output of the filter.
extentSpecifies the region of the image to be updated inside this thread. It is a six-component array of the form (xmin, xmax, ymin, ymax, zmin, zmax).
idThe thread id.

Definition at line 496 of file vtkMitkLevelWindowFilter.cpp.

References GetLookupTable(), vtkApplyLookupTableOnRGBA(), vtkApplyLookupTableOnScalars(), vtkApplyLookupTableOnScalarsCTF(), and vtkApplyLookupTableOnScalarsFast().

vtkMitkLevelWindowFilter::vtkTypeMacro ( vtkMitkLevelWindowFilter  ,
vtkThreadedImageAlgorithm   
)

The documentation for this class was generated from the following files: