|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Applies the gray-value or color/opacity level window to scalar or RGB(A) images. More...
#include <vtkMitkLevelWindowFilter.h>


Public Member Functions | |
| vtkTypeMacro (vtkMitkLevelWindowFilter, vtkThreadedImageAlgorithm) | |
| vtkMTimeType | GetMTime () override |
| Get the modification time, considering the lookup table's modification time. More... | |
| 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 values to the alpha component. More... | |
| void | SetOpacityPiecewiseFunction (vtkPiecewiseFunction *opacityFunction) |
| Set the piecewise function used to map scalar values to the alpha component. More... | |
| void | SetMinOpacity (double minOpacity) |
| Set the lower window opacity for the alpha level window. More... | |
| double | GetMinOpacity () const |
| Get the lower window opacity for the alpha level window. More... | |
| void | SetMaxOpacity (double maxOpacity) |
| Set the upper window opacity for the alpha level window. More... | |
| double | GetMaxOpacity () const |
| Get the upper window opacity for the alpha level window. More... | |
| void | SetClippingBounds (double *) |
| Set clipping bounds for the opaque part of the resliced 2D image. More... | |
Static Public Member Functions | |
| static vtkMitkLevelWindowFilter * | New () |
| Create a new instance of vtkMitkLevelWindowFilter. More... | |
Protected Member Functions | |
| vtkMitkLevelWindowFilter () | |
| Default constructor. More... | |
| ~vtkMitkLevelWindowFilter () override | |
| Destructor. More... | |
| void | ThreadedExecute (vtkImageData *inData, vtkImageData *outData, int extent[6], int id) override |
| Threaded execution method that applies the level window to image data. More... | |
| int | RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override |
| Standard VTK pipeline method to propagate output information. More... | |
Applies the gray-value or color/opacity level window to scalar or RGB(A) images.
This filter is used to apply the color level window to RGB images. The RGB channels are converted to the HSI color space, where the level window can be applied. Afterwards, the HSI values are 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.
|
protected |
Default constructor.
|
overrideprotected |
Destructor.
| vtkScalarsToColors* vtkMitkLevelWindowFilter::GetLookupTable | ( | ) |
Get the lookup table for the RGB level window.
|
inline |
Get the upper window opacity for the alpha level window.
|
inline |
Get the lower window opacity for the alpha level window.
|
override |
Get the modification time, considering the lookup table's modification time.
|
inline |
Get the piecewise function used to map scalar values to the alpha component.
This is only used when the lookup table is a vtkColorTransferFunction.
Definition at line 69 of file vtkMitkLevelWindowFilter.h.
|
static |
Create a new instance of vtkMitkLevelWindowFilter.
|
overrideprotected |
Standard VTK pipeline method to propagate output information.
| void vtkMitkLevelWindowFilter::SetClippingBounds | ( | double * | ) |
Set clipping bounds for the opaque part of the resliced 2D image.
The bounds are specified as a four-element array (xmin, xmax, ymin, ymax).
| void vtkMitkLevelWindowFilter::SetLookupTable | ( | vtkScalarsToColors * | lookupTable | ) |
Set the lookup table for the RGB level window.
| [in] | lookupTable | The vtkScalarsToColors lookup table to use. |
| void vtkMitkLevelWindowFilter::SetMaxOpacity | ( | double | maxOpacity | ) |
Set the upper window opacity for the alpha level window.
| [in] | maxOpacity | The maximum opacity value. |
| void vtkMitkLevelWindowFilter::SetMinOpacity | ( | double | minOpacity | ) |
Set the lower window opacity for the alpha level window.
| [in] | minOpacity | The minimum opacity value. |
| void vtkMitkLevelWindowFilter::SetOpacityPiecewiseFunction | ( | vtkPiecewiseFunction * | opacityFunction | ) |
Set the piecewise function used to map scalar values to the alpha component.
This is only used when the lookup table is a vtkColorTransferFunction.
| [in] | opacityFunction | The piecewise function for opacity mapping. |
|
overrideprotected |
Threaded execution method that applies the level window to image data.
| [in] | inData | The input image data. |
| [out] | outData | The output image data. |
| [in] | extent | Six-component array (xmin, xmax, ymin, ymax, zmin, zmax) specifying the region to be processed by this thread. |
| [in] | id | The thread id. |
| vtkMitkLevelWindowFilter::vtkTypeMacro | ( | vtkMitkLevelWindowFilter | , |
| vtkThreadedImageAlgorithm | |||
| ) |