SoRandomSphereGeneration3d engine allow to create synthetic spheres in a binary image More...
#include <ImageViz/Engines/ImageManipulation/SyntheticImages/SoRandomSphereGeneration3d.h>
Public Types | |
enum | Distribution { UNIFORM = 0, GAUSSIAN = 1 } |
Public Member Functions | |
SoRandomSphereGeneration3d () | |
Public Attributes | |
SoSFVec3i32 | imageSize |
SoSFInt32 | sphereNumber |
SoSFEnum | distribution |
SoSFVec2i32 | radiusRange |
SoSFInt32 | distance |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outBinaryImage |
The SoRandomSphereGeneration3d 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:
Generation of 5 spheres
imageSize | 100 100 100 |
sphereNumber | 5 |
distribution | UNIFORM |
radiusRange | 10 20 |
distance | 40 |
SoRandomSphereGeneration3d::SoRandomSphereGeneration3d | ( | ) |
Constructor.
The minimum length between two centers.
Default value is 40.
The distribution type for length of radius.
Use enum Distribution. Default is UNIFORM
The size of the new image.
Default value is SbVec3i32(100,100,100).
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoRandomSphereGeneration3d::outBinaryImage |
The output 3D binary image.
Default value is NULL. Supported types include: grayscale binary label color image.
The min and max size of radius (for Uniform distribution) or mean and standard deviation (for gaussian distribution).
Default value is SbVec2i32(10,20).
The number of spheres.
Default value is 5.