Class SoRandomSphereGeneration3d
- 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.SoRandomSphereGeneration3d
-
- All Implemented Interfaces:
SafeDisposable
public class SoRandomSphereGeneration3d extends SoImageVizEngine
SoRandomSphereGeneration3d
engine allow to create synthetic spheres in a binary image. TheSoRandomSphereGeneration3d
engine creates a binary image containing a random distribution of spheres. User can specify size, distance, type of distribution and the sphere number.The image below is an example of the result with the default parameters:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoRandomSphereGeneration3d.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 SoSFInt32
distance
The minimum length between two centers.SoSFEnum<SoRandomSphereGeneration3d.Distributions>
distribution
The distribution type for length of radius.SoSFVec3i32
imageSize
The size of the new image.SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter>
outBinaryImage
The output 3D binary image.SoSFVec2i32
radiusRange
The min and max size of radius (for Uniform distribution) or mean and standard deviation (for gaussian distribution).SoSFInt32
sphereNumber
The number of spheres.-
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 SoRandomSphereGeneration3d()
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
-
imageSize
public final SoSFVec3i32 imageSize
The size of the new image. Default value isSbVec3i32(100,100,100)
.
-
sphereNumber
public final SoSFInt32 sphereNumber
The number of spheres. Default value is 5.
-
distribution
public final SoSFEnum<SoRandomSphereGeneration3d.Distributions> distribution
The distribution type for length of radius. . Default is UNIFORM
-
radiusRange
public final SoSFVec2i32 radiusRange
The min and max size of radius (for Uniform distribution) or mean and standard deviation (for gaussian distribution). Default value isSbVec2i32(10,20)
.
-
distance
public final SoSFInt32 distance
The minimum length between two centers. Default value is 40.
-
outBinaryImage
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outBinaryImage
The output 3D binary image. Default value is NULL. Supported types include: grayscale binary label color image.
-
-