Class SoRandomImageGeneration
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.engines.SoEngine
-
- com.openinventor.imageviz.engines.SoImageVizEngine
-
- com.openinventor.imageviz.engines.imagemanipulation.syntheticimages.SoRandomImageGeneration
-
- All Implemented Interfaces:
SafeDisposable
public class SoRandomImageGeneration extends SoImageVizEngine
SoRandomImageGeneration
engine creates a new image with random values. TheSoRandomImageGeneration
engine creates a new image with random values following a uniform or gaussian distribution.Remark:
- If the third component of the imageSize parameter is set to a value greater than 1, the output image will be a 3d image, otherwise the output image will be a 2d image.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoRandomImageGeneration.DataTypes
static class
SoRandomImageGeneration.Distributions
-
Nested classes/interfaces inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3ds
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field Description SoSFEnum<SoImageVizEngine.ComputeModes>
computeMode
Select the compute Mode (2D or 3D or AUTO) .SoSFEnum<SoRandomImageGeneration.DataTypes>
dataType
Select the output arithmetic format.SoSFEnum<SoRandomImageGeneration.Distributions>
distribution
Select the distribution mode.SoSFVec3i32
imageSize
The size of the new image.SoSFFloat
intensityMean
The output intensity range of random values.SoSFFloat
intensityRangeOutput
The standard deviation.SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter>
outImage
The output image.-
Fields inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
onBegin, onEnd, onProgress
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoRandomImageGeneration()
Constructor.
-
Method Summary
-
Methods inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
abortEvaluate, isEvaluating, startEvaluate, waitEvaluate
-
Methods inherited from class com.openinventor.inventor.engines.SoEngine
copy, getByName, getOutput, getOutputName
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable, touch
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Field Detail
-
computeMode
public final SoSFEnum<SoImageVizEngine.ComputeModes> computeMode
Select the compute Mode (2D or 3D or AUTO) . Default is MODE_AUTO
-
imageSize
public final SoSFVec3i32 imageSize
The size of the new image. Default value isSbVec3i32(1024,1024,256)
-
distribution
public final SoSFEnum<SoRandomImageGeneration.Distributions> distribution
Select the distribution mode. . Default is UNIFORM
-
dataType
public final SoSFEnum<SoRandomImageGeneration.DataTypes> dataType
Select the output arithmetic format. . Default is UNSIGNED_CHAR
-
intensityMean
public final SoSFFloat intensityMean
The output intensity range of random values. Default value is 80.0f.
-
intensityRangeOutput
public final SoSFFloat intensityRangeOutput
The standard deviation. Default value is 20.0f.
-
outImage
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outImage
The output image. Default value is NULL. Supported types include: grayscale binary label color image.
-
-