Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
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)
 
vtkMTimeType 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 () override
 
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. 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 33 of file vtkMitkLevelWindowFilter.h.

Constructor & Destructor Documentation

◆ vtkMitkLevelWindowFilter()

vtkMitkLevelWindowFilter::vtkMitkLevelWindowFilter ( )
protected

Default constructor.

◆ ~vtkMitkLevelWindowFilter()

vtkMitkLevelWindowFilter::~vtkMitkLevelWindowFilter ( )
overrideprotected

Default deconstructor.

Member Function Documentation

◆ GetLookupTable()

vtkScalarsToColors* vtkMitkLevelWindowFilter::GetLookupTable ( )

Get the lookup table for the RGB level window.

◆ GetMaxOpacity()

double vtkMitkLevelWindowFilter::GetMaxOpacity ( ) const
inline

◆ GetMinOpacity()

double vtkMitkLevelWindowFilter::GetMinOpacity ( ) const
inline

◆ GetMTime()

vtkMTimeType vtkMitkLevelWindowFilter::GetMTime ( )
override

◆ GetOpacityPiecewiseFunction()

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 48 of file vtkMitkLevelWindowFilter.h.

◆ New()

static vtkMitkLevelWindowFilter* vtkMitkLevelWindowFilter::New ( )
static

◆ RequestInformation()

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

◆ SetClippingBounds()

void vtkMitkLevelWindowFilter::SetClippingBounds ( double *  )

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

◆ SetLookupTable()

void vtkMitkLevelWindowFilter::SetLookupTable ( vtkScalarsToColors *  lookupTable)

Set the lookup table for the RGB level window.

◆ SetMaxOpacity()

void vtkMitkLevelWindowFilter::SetMaxOpacity ( double  maxOpacity)

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

◆ SetMinOpacity()

void vtkMitkLevelWindowFilter::SetMinOpacity ( double  minOpacity)

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

◆ SetOpacityPiecewiseFunction()

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)

◆ ThreadedExecute()

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.

◆ vtkTypeMacro()

vtkMitkLevelWindowFilter::vtkTypeMacro ( vtkMitkLevelWindowFilter  ,
vtkThreadedImageAlgorithm   
)

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