SoRandomImageGeneration Class Reference
[Synthetic Images]

ImageViz SoRandomImageGeneration engine creates a new image with random values. More...

#include <ImageViz/Engines/ImageManipulation/SyntheticImages/SoRandomImageGeneration.h>

Inheritance diagram for SoRandomImageGeneration:
SoImageVizEngine SoEngine SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

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

Detailed Description

ImageViz SoRandomImageGeneration engine creates a new image with random values.

The SoRandomImageGeneration engine creates a new image with random values following a uniform or gaussian distribution.

Remark:

SEE ALSO

SoRandomSphereGeneration3d

FILE FORMAT/DEFAULT


Library references: randomgauss randomgauss3d random random3d


Member Enumeration Documentation

Enumerator:
UNSIGNED_CHAR 

1 byte depth.

Intensity range: unsigned integer from 0 to 255.

SIGNED_CHAR 

1 byte depth.

Intensity range: signed integer from -128 to 127.

SHORT_INTEGER 

2 bytes depth.

Intensity range: signed integer from -32,768 to 32,767.

UNSIGNED_SHORT 
LABEL 

2 bytes depth.

Intensity range: unsigned integer from 0 to 65,535.

BINARY 

2 bytes depth.

Intensity range: unsigned integer from 0 to 1.

LONG_INTEGER 

4 bytes depth.

Intensity range: signed integer from $-2^{31}$ to $2^{31}-1$.

FLOATING_POINT 

4 bytes depth.

Intensity range: signed integer from $-3.402823466e+38$ to $3.402823466e+38$.

Enumerator:
UNIFORM 

This mode generates random values following a uniform distribution.

GAUSSIAN 

This mode generates random values following a gaussian distribution.


Constructor & Destructor Documentation

SoRandomImageGeneration::SoRandomImageGeneration (  ) 

Constructor.


Member Data Documentation

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.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 4 Sep 2023
Copyright © Thermo Fisher Scientific All rights reserved.
https://www.openinventor.com/