Medical Imaging Interaction Toolkit
2024.06.99-c70462f2
Medical Imaging Interaction Toolkit
|
Applies the grayvalue or color/opacity level window to scalar or RGB(A) images. More...
#include <vtkMitkLevelWindowFilter.h>
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 vtkMitkLevelWindowFilter * | New () |
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 |
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.
|
protected |
Default constructor.
|
overrideprotected |
Default deconstructor.
vtkScalarsToColors* vtkMitkLevelWindowFilter::GetLookupTable | ( | ) |
Get the lookup table for the RGB level window.
|
inline |
|
inline |
|
override |
|
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.
|
static |
|
overrideprotected |
void vtkMitkLevelWindowFilter::SetClippingBounds | ( | double * | ) |
Set clipping bounds for the opaque part of the resliced 2d image.
void vtkMitkLevelWindowFilter::SetLookupTable | ( | vtkScalarsToColors * | lookupTable | ) |
Set the lookup table for the RGB level window.
void vtkMitkLevelWindowFilter::SetMaxOpacity | ( | double | maxOpacity | ) |
Get/Set the upper window opacity for the alpha level window.
void vtkMitkLevelWindowFilter::SetMinOpacity | ( | double | minOpacity | ) |
Get/Set the lower window opacity for the alpha level window.
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)
|
overrideprotected |
Method for threaded execution of the filter.
*inData | The input. |
*outData | The output of the filter. |
extent | Specifies 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). |
id | The thread id. |
vtkMitkLevelWindowFilter::vtkTypeMacro | ( | vtkMitkLevelWindowFilter | , |
vtkThreadedImageAlgorithm | |||
) |