Class SoTranslateProcessing
- 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.geometryandmatching.geometrictransforms.SoTranslateProcessing
-
- All Implemented Interfaces:
SafeDisposable
public class SoTranslateProcessing extends SoImageVizEngine
SoTranslateProcessing
engine. TheSoTranslateProcessing
engine re-assigns the position of the image on the grid according to user-defined vectors. During a translation, there are usually two phenomena: part of the image is out of the window, while another part has no values, as illustrated in Figure 1. A translation is denoted by a vector . A pixel M of coordinates is translated to the new coordinates in the output image as: or using matrix notation:The output image is a discrete space of finite dimension where the new coordinates x, y and z may be outside the image.
NOTE: In 2D mode, z component is neglected.
File format/default:
TranslateProcessing {
computeMode MODE_AUTO inImage NULL translationVector 100 100 100 backgroundMode FIXED_BACKGROUND backgroundValue 0.0f
Library references: translate translate3d
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoTranslateProcessing.BackgroundModes
There are two possible modes in aSoTranslateProcessing
filter:-
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<SoTranslateProcessing.BackgroundModes>
backgroundMode
The translation mode.SoSFFloat
backgroundValue
Background value.SoSFEnum<SoImageVizEngine.ComputeModes>
computeMode
Select the compute Mode (2D or 3D or AUTO) .SoSFImageDataAdapter
inImage
The input image.SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter>
outImage
The output image.SoSFVec3i32
translationVector
The translation vector.-
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 SoTranslateProcessing()
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
-
inImage
public final SoSFImageDataAdapter inImage
The input image. Default value is NULL. Supported types include: grayscale binary label color image.
-
translationVector
public final SoSFVec3i32 translationVector
The translation vector. Default value isSbVec3i32(100,100,100)
.
-
backgroundMode
public final SoSFEnum<SoTranslateProcessing.BackgroundModes> backgroundMode
The translation mode. . Default is FIXED_BACKGROUND
-
backgroundValue
public final SoSFFloat backgroundValue
Background value. Default value is 0.0f.
-
outImage
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outImage
The output image. Default value is NULL. Supported types include: grayscale binary label color image.
-
-