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>
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 vtkMitkLevelWindowFilter * | New () |
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 |
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.
|
protected |
Default constructor.
Definition at line 41 of file vtkMitkLevelWindowFilter.cpp.
|
protected |
Default deconstructor.
Definition at line 47 of file vtkMitkLevelWindowFilter.cpp.
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().
|
inline |
Definition at line 580 of file vtkMitkLevelWindowFilter.cpp.
|
inline |
Definition at line 570 of file vtkMitkLevelWindowFilter.cpp.
|
overridevirtual |
Definition at line 51 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 53 of file vtkMitkLevelWindowFilter.h.
|
static |
|
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.
|
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 496 of file vtkMitkLevelWindowFilter.cpp.
References GetLookupTable(), vtkApplyLookupTableOnRGBA(), vtkApplyLookupTableOnScalars(), vtkApplyLookupTableOnScalarsCTF(), and vtkApplyLookupTableOnScalarsFast().
vtkMitkLevelWindowFilter::vtkTypeMacro | ( | vtkMitkLevelWindowFilter | , |
vtkThreadedImageAlgorithm | |||
) |