public class SoColorSpaceConversionProcessing extends SoImageVizEngine
SoColorSpaceConversionProcessing engine
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.
If we define
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 !" .
File format/default:
ColorSpaceConversionProcessing {
| computeMode | MODE_AUTO |
| inColorImage | NULL |
| baseMode | HLS |
Library references: colorbase
| Modifier and Type | Class and Description |
|---|---|
static class |
SoColorSpaceConversionProcessing.BaseModes |
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3dsInventor.ConstructorCommand| Modifier and Type | Field and Description |
|---|---|
SoSFEnum<SoColorSpaceConversionProcessing.BaseModes> |
baseMode
Select the output color space.
|
SoSFEnum<SoImageVizEngine.ComputeModes> |
computeMode
Select the compute Mode (2D or 3D or AUTO) .
|
static int |
HLS
Deprecated.
Use
SoColorSpaceConversionProcessing.BaseModes.HLS instead. |
SoSFImageDataAdapter |
inColorImage
The input color image.
|
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> |
outColorImage
The output color image.
|
static int |
RGB
Deprecated.
Use
SoColorSpaceConversionProcessing.BaseModes.RGB instead. |
CONNECTIVITY_18, CONNECTIVITY_26, CONNECTIVITY_6, MODE_2D, MODE_3D, MODE_AUTO, onBegin, onEnd, onProgressVERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
SoColorSpaceConversionProcessing()
Constructor.
|
abortEvaluate, isEvaluating, startEvaluate, waitEvaluatecopy, getByName, getOutput, getOutputNamecopyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsdispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable, touchgetAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads@Deprecated public static final int RGB
SoColorSpaceConversionProcessing.BaseModes.RGB instead.@Deprecated public static final int HLS
SoColorSpaceConversionProcessing.BaseModes.HLS instead.public final SoSFEnum<SoImageVizEngine.ComputeModes> computeMode
public final SoSFImageDataAdapter inColorImage
public final SoSFEnum<SoColorSpaceConversionProcessing.BaseModes> baseMode
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outColorImage
Generated on February 24, 2026, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com