SoColorSpaceConversionProcessing engine More...
#include <ImageViz/Engines/ImageFiltering/ColorTransforms/SoColorSpaceConversionProcessing.h>
Public Types | |
enum | BaseMode { RGB = 0, HLS = 1 } |
Public Member Functions | |
SoColorSpaceConversionProcessing () | |
Public Attributes | |
SoSFEnum | computeMode |
SoSFImageDataAdapter | inColorImage |
SoSFEnum | baseMode |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outColorImage |
For an introduction to color transforms, see section Color Transforms.
The SoColorSpaceConversionProcessing engine performs conversion between two color image formats or bases. You may choose between RGB and HLS.
the HLS components are:
S is equal to 0 for grey level images (R = G = B) and is maximum for a fully saturated color.
The H value varies from 0 to as it goes from red () through green () and blue () and back to red.
Hue is converted from radians to a value between 0-255 and is not defined if the saturation is equal to 0.
Please note that an image cannot be transformed into a color space which it already belongs to. By default ImageViz considers color images belonging to RGB color space. Thus converting a color image to the RGB space without having performed a conversion to HLS before will raise an exception "Input image type must be different from output type !" .
computeMode | MODE_AUTO |
inColorImage | NULL |
baseMode | HLS |
SoColorSpaceConversionProcessing::SoColorSpaceConversionProcessing | ( | ) |
Constructor.
Select the output color space.
Use enum BaseMode. Default is HLS
Select the compute Mode (2D or 3D or AUTO) Use enum ComputeMode.
Default is MODE_AUTO
The input color image.
Default value is NULL. Supported types include: grayscale binary label color image.
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoColorSpaceConversionProcessing::outColorImage |
The output color image.
Default value is NULL. Supported types include: grayscale binary label color image.