Medical Imaging Interaction Toolkit
2018.4.99-389bf124
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.
Definition at line 37 of file vtkMitkLevelWindowFilter.cpp.
|
overrideprotected |
Default deconstructor.
Definition at line 43 of file vtkMitkLevelWindowFilter.cpp.
vtkScalarsToColors * vtkMitkLevelWindowFilter::GetLookupTable | ( | ) |
Get the lookup table for the RGB level window.
Definition at line 70 of file vtkMitkLevelWindowFilter.cpp.
Referenced by mitk::RegEvaluationMapper2D::ApplyLevelWindow(), and ThreadedExecute().
|
inline |
Definition at line 576 of file vtkMitkLevelWindowFilter.cpp.
|
inline |
Definition at line 566 of file vtkMitkLevelWindowFilter.cpp.
|
override |
Definition at line 47 of file vtkMitkLevelWindowFilter.cpp.
|
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 |
Standard VTK filter method to apply the filter. See VTK documentation.
Definition at line 477 of file vtkMitkLevelWindowFilter.cpp.
void vtkMitkLevelWindowFilter::SetClippingBounds | ( | double * | bounds | ) |
Set clipping bounds for the opaque part of the resliced 2d image.
Definition at line 581 of file vtkMitkLevelWindowFilter.cpp.
void vtkMitkLevelWindowFilter::SetLookupTable | ( | vtkScalarsToColors * | lookupTable | ) |
Set the lookup table for the RGB level window.
Definition at line 61 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 571 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 561 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 75 of file vtkMitkLevelWindowFilter.cpp.
|
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. |
Definition at line 492 of file vtkMitkLevelWindowFilter.cpp.
References GetLookupTable(), vtkApplyLookupTableOnRGBA(), vtkApplyLookupTableOnScalars(), vtkApplyLookupTableOnScalarsCTF(), and vtkApplyLookupTableOnScalarsFast().
vtkMitkLevelWindowFilter::vtkTypeMacro | ( | vtkMitkLevelWindowFilter | , |
vtkThreadedImageAlgorithm | |||
) |