public class SoResampleImageProcessing3d extends SoImageVizEngine
SoResampleImageProcessing3d
filter
The SoResampleImageProcessing3d
engine allows to resample an input image into a new coordinate system applying a transform on it.
For instance it can be used to :
The resampled sub-volume is defined by an SbBox3f
(axis aligned box) in 3D space and a SbMatrix
that transforms the axis aligned box. The output voxel values are computed by interpolating the input image.
The SbMatrix
that transforms the axis aligned box must only contain translation, rotation and scale (no shearing), otherwise an error is raised.
An additional transformation can be applied to each output voxel position before the interpolation. This is useful for re-sampling an image after a registration.
File format/default:
ResampleImageProcessing3d {
inImage | NULL |
subVolume | 0, 0, 0, 1, 1, 1 |
subVolumeTransform | 1 0 0 0 |
0 1 0 0 | |
0 0 1 0 | |
0 0 0 1 | |
samplingMode | AUTOMATIC |
subVolumeDimension | 1 1 1 |
interpolationType | LINEAR |
paddingValue | 0.0 |
transform | 1 0 0 0 |
0 1 0 0 | |
0 0 1 0 | |
0 0 0 1 |
See also:
Modifier and Type | Class and Description |
---|---|
static class |
SoResampleImageProcessing3d.InterpolationTypes
This enum defines the type of interpolation used.
|
static class |
SoResampleImageProcessing3d.SamplingModes
This enum defines how the voxel size of the output image is computed.
|
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3ds
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
static int |
AUTOMATIC
Deprecated.
Use
SoResampleImageProcessing3d.SamplingModes.AUTOMATIC instead. |
SoSFImageDataAdapter |
inImage
The input image.
|
SoSFEnum<SoResampleImageProcessing3d.InterpolationTypes> |
interpolationType
The type of interpolation used for the re-sampling.
|
static int |
LINEAR
Deprecated.
|
static int |
MANUAL
Deprecated.
Use
SoResampleImageProcessing3d.SamplingModes.MANUAL instead. |
static int |
NEAREST
Deprecated.
|
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> |
outImage
The output image.
|
SoSFDouble |
paddingValue
The output value if an output voxel position is outside the bounding box of the input image.
|
SoSFEnum<SoResampleImageProcessing3d.SamplingModes> |
samplingMode
Specifies how the voxel size is computed.
|
SoSFBox3f |
subVolume
Specifies the input subvolume as an axis aligned box in 3D space.
|
SoSFVec3i32 |
subVolumeDimension
The dimensions of the output sub volume.
|
SoSFMatrix |
subVolumeTransform
Specifies a transformation of the axis aligned box
subVolume . |
SoSFMatrix |
transform
This transformation is applied to all output voxel positions before the interpolation.
|
CONNECTIVITY_18, CONNECTIVITY_26, CONNECTIVITY_6, MODE_2D, MODE_3D, MODE_AUTO, onBegin, onEnd, onProgress
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoResampleImageProcessing3d()
Constructor.
|
abortEvaluate, isEvaluating, startEvaluate, waitEvaluate
copy, getByName, getOutput, getOutputName
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable, touch
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int AUTOMATIC
SoResampleImageProcessing3d.SamplingModes.AUTOMATIC
instead.@Deprecated public static final int MANUAL
SoResampleImageProcessing3d.SamplingModes.MANUAL
instead.@Deprecated public static final int NEAREST
SoResampleImageProcessing3d.InterpolationTypes.NEAREST
instead.@Deprecated public static final int LINEAR
SoResampleImageProcessing3d.InterpolationTypes.LINEAR
instead.public final SoSFImageDataAdapter inImage
public final SoSFBox3f subVolume
subVolumeTransform
to define the final input subvolume.public final SoSFMatrix subVolumeTransform
subVolume
.
Default is identity.public final SoSFEnum<SoResampleImageProcessing3d.SamplingModes> samplingMode
public final SoSFVec3i32 subVolumeDimension
SoResampleImageProcessing3d.samplingMode
is not set to MANUAL this parameter is ignored. Default value is (1,1,1).public final SoSFEnum<SoResampleImageProcessing3d.InterpolationTypes> interpolationType
public final SoSFDouble paddingValue
public final SoSFMatrix transform
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outImage
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com