class
ApplyColormapApplies a colormap on an image to create a new image.
Contents
Current limitations are: Input and output images can only be 2D. Output image is always of TYPE_UINT8
Inputs:
- 0: Image
Outputs:
- 0: Image
Base classes
- class ProcessObject
- Abstract base class for all process objects.
Constructors, destructors, conversion operators
- ApplyColormap() protected
Public functions
- auto create(Colormap colormap, float opacity, float minValue, float maxValue) -> std::shared_ptr<ApplyColormap>
- Create instance.
- void setColormap(Colormap colormap)
- auto getColormap() const -> Colormap
- void setMinValue(float minValue)
- void setMaxValue(float maxValue)
- void setOpacity(float opacity)
Protected functions
- void execute() override
Protected variables
- Colormap m_colormap
- bool m_bufferUpToDate
- cl::Buffer m_colormapBuffer
- float m_minValue
- float m_maxValue
- float m_opacity
Function documentation
std::shared_ptr<ApplyColormap> fast:: ApplyColormap:: create(Colormap colormap,
float opacity,
float minValue,
float maxValue)
Create instance.
Parameters | |
---|---|
colormap | Colormap to apply |
opacity | Apply colormap with an opacity. If the colormap already has opacity, this opacity will be multiplied with the existing opacity. |
minValue | Set the minimum value of the input data to scale the colormap to. This is only used on intensity invariant colormaps. If not set, the true minimum value of the input data is used. |
maxValue | Set the maximum value of the input data to scale the colormap to. This is only used on intensity invariant colormaps. If not set, the true maximum value of the input data is used. |
Returns | instance |