ITK
5.2.0
Insight Toolkit
|
#include <itkScalarToRGBColormapImageFilter.h>
Implements pixel-wise intensity->rgb mapping operation on one image.
This class is parameterized over the type of the input image and the type of the output image.
The input image's scalar pixel values are mapped into a color map. The color map is specified by passing the SetColormap function one of the predefined maps. The following selects the "RGBColormapFilterEnum::Hot" colormap:
You can also specify a custom color map. This is done by creating a CustomColormapFunction, and then creating lists of values for the red, green, and blue channel. An example of setting the red channel of a colormap with only 2 colors is given below. The blue and green channels should be specified in the same manner.
The range of values present in the input image is the range that is mapped to the entire range of colors.
This code was contributed in the Insight Journal paper: "Meeting Andy Warhol Somewhere Over the Rainbow: RGB Colormapping and ITK" by Tustison N., Zhang H., Lehmann G., Yushkevich P., Gee J. https://www.insight-journal.org/browse/publication/285
Definition at line 130 of file itkScalarToRGBColormapImageFilter.h.
using itk::ScalarToRGBColormapImageFilter< TInputImage, TOutputImage >::ColormapType = Function::ColormapFunction<InputImagePixelType, OutputImagePixelType> |
Definition at line 158 of file itkScalarToRGBColormapImageFilter.h.
using itk::ScalarToRGBColormapImageFilter< TInputImage, TOutputImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 140 of file itkScalarToRGBColormapImageFilter.h.
using itk::ScalarToRGBColormapImageFilter< TInputImage, TOutputImage >::InputImagePixelType = typename InputImageType::PixelType |
Definition at line 152 of file itkScalarToRGBColormapImageFilter.h.
using itk::ScalarToRGBColormapImageFilter< TInputImage, TOutputImage >::InputImagePointer = typename InputImageType::ConstPointer |
Definition at line 150 of file itkScalarToRGBColormapImageFilter.h.
using itk::ScalarToRGBColormapImageFilter< TInputImage, TOutputImage >::InputImageRegionType = typename InputImageType::RegionType |
Definition at line 151 of file itkScalarToRGBColormapImageFilter.h.
using itk::ScalarToRGBColormapImageFilter< TInputImage, TOutputImage >::InputImageType = TInputImage |
Some type alias.
Definition at line 149 of file itkScalarToRGBColormapImageFilter.h.
using itk::ScalarToRGBColormapImageFilter< TInputImage, TOutputImage >::OutputImagePixelType = typename OutputImageType::PixelType |
Definition at line 156 of file itkScalarToRGBColormapImageFilter.h.
using itk::ScalarToRGBColormapImageFilter< TInputImage, TOutputImage >::OutputImagePointer = typename OutputImageType::Pointer |
Definition at line 154 of file itkScalarToRGBColormapImageFilter.h.
using itk::ScalarToRGBColormapImageFilter< TInputImage, TOutputImage >::OutputImageRegionType = typename OutputImageType::RegionType |
Definition at line 155 of file itkScalarToRGBColormapImageFilter.h.
using itk::ScalarToRGBColormapImageFilter< TInputImage, TOutputImage >::OutputImageType = TOutputImage |
Definition at line 153 of file itkScalarToRGBColormapImageFilter.h.
using itk::ScalarToRGBColormapImageFilter< TInputImage, TOutputImage >::Pointer = SmartPointer<Self> |
Definition at line 139 of file itkScalarToRGBColormapImageFilter.h.
using itk::ScalarToRGBColormapImageFilter< TInputImage, TOutputImage >::RGBColormapFilterEnum = ScalarToRGBColormapImageFilterEnums::RGBColormapFilter |
Definition at line 160 of file itkScalarToRGBColormapImageFilter.h.
using itk::ScalarToRGBColormapImageFilter< TInputImage, TOutputImage >::Self = ScalarToRGBColormapImageFilter |
Standard class type aliases.
Definition at line 137 of file itkScalarToRGBColormapImageFilter.h.
using itk::ScalarToRGBColormapImageFilter< TInputImage, TOutputImage >::Superclass = ImageToImageFilter<TInputImage, TOutputImage> |
Definition at line 138 of file itkScalarToRGBColormapImageFilter.h.
|
protected |
Set/Get the colormap object.
|
overrideprotecteddefault |
Set/Get the colormap object.
|
overrideprotectedvirtual |
Process to execute before entering the multithreaded section.
Reimplemented from itk::ImageSource< TOutputImage >.
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
|
overrideprotectedvirtual |
Perform the pixel-wise mapping. ScalarToRGBColormapImageFilter can be implemented as a multithreaded filter. Therefore, this implementation provides a DynamicThreadedGenerateData() routine which is called for each processing thread. The output image data is allocated automatically by the superclass prior to calling DynamicThreadedGenerateData(). DynamicThreadedGenerateData can only write to the portion of the output image specified by the parameter "outputRegionForThread".
Reimplemented from itk::ImageSource< TOutputImage >.
|
inlineoverrideprotectedvirtual |
Overloaded method so that if the output image is a VectorImage, then the correct number of components are set.
Reimplemented from itk::ProcessObject.
Definition at line 210 of file itkScalarToRGBColormapImageFilter.h.
|
virtual |
Set/Get the colormap object.
|
virtual |
Set/Get the colormap object.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
Set/Get the colormap object.
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Set/Get the colormap object.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
Set/Get the colormap object.
void itk::ScalarToRGBColormapImageFilter< TInputImage, TOutputImage >::SetColormap | ( | RGBColormapFilterEnum | ) |
Set/Get the colormap object.
|
virtual |
Set/Get UseInputImageExtremaForScaling. If true, the colormap uses the min and max values from the image to scale appropriately. Otherwise, these values can be set in the colormap manually.
|
virtual |
Set/Get the colormap object.
|
virtual |
Set/Get the colormap object.
|
private |
Set/Get the colormap object.
Definition at line 247 of file itkScalarToRGBColormapImageFilter.h.
|
private |
Set/Get the colormap object.
Definition at line 249 of file itkScalarToRGBColormapImageFilter.h.