SoRandomImageGeneration engine creates a new image with random values. More...
#include <ImageViz/Engines/ImageManipulation/SyntheticImages/SoRandomImageGeneration.h>
Public Types | |
enum | Distribution { UNIFORM = 0, GAUSSIAN = 1 } |
enum | DataType { UNSIGNED_CHAR = 0, SIGNED_CHAR = 1, SHORT_INTEGER = 2, UNSIGNED_SHORT = 3, LABEL = 4, BINARY = 5, LONG_INTEGER = 6, FLOATING_POINT = 7 } |
Public Member Functions | |
SoRandomImageGeneration () | |
Public Attributes | |
SoSFEnum | computeMode |
SoSFVec3i32 | imageSize |
SoSFEnum | distribution |
SoSFEnum | dataType |
SoSFFloat | intensityMean |
SoSFFloat | intensityRangeOutput |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outImage |
The SoRandomImageGeneration engine creates a new image with random values following a uniform or gaussian distribution.
Remark:
computeMode | MODE_AUTO |
imageSize | 1024 1024 256 |
distribution | UNIFORM |
dataType | UNSIGNED_CHAR |
intensityMean | 80.0f |
intensityRangeOutput | 20.0f |
SoRandomImageGeneration::SoRandomImageGeneration | ( | ) |
Constructor.
Select the compute Mode (2D or 3D or AUTO) Use enum ComputeMode.
Default is MODE_AUTO
Select the output arithmetic format.
Use enum DataType. Default is UNSIGNED_CHAR
Select the distribution mode.
Use enum Distribution. Default is UNIFORM
The size of the new image.
Default value is SbVec3i32(1024,1024,256)
The output intensity range of random values.
Default value is 80.0f.
The standard deviation.
Default value is 20.0f.
The output image.
Default value is NULL. Supported types include: grayscale binary label color image.