Skip to content

RTAnalyticSource ​

Introduction ​

vtkRTAnalyticSource creates an image for regression testing. The image is filled with the sum of a gaussian centered on center and of a sinusoid whose amplitude and natural frequency are given per axis, plus a constant offset.

Usage ​

js
import vtkRTAnalyticSource from '@kitware/vtk.js/Filters/Sources/RTAnalyticSource';

const source = vtkRTAnalyticSource.newInstance({
  wholeExtent: [0, 63, 0, 63, 0, 63],
});
const imageData = source.getOutputData();

Methods ​

extend ​

Method used to decorate a given object (publicAPI+model) with vtkRTAnalyticSource characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesIRTAnalyticSourceInitialValuesNo(default: {})

getCenter ​

Get the center of the gaussian, expressed in voxel index.

getCenterByReference ​

Get the center of the gaussian, expressed in voxel index.

getDataDirection ​

Get the direction matrix of the output image.

getDataDirectionByReference ​

Get the direction matrix of the output image.

getFrequency ​

Get the natural frequency of the sinusoid along each axis.

getFrequencyByReference ​

Get the natural frequency of the sinusoid along each axis.

getMagnitude ​

Get the amplitude of the sinusoid along each axis.

getMagnitudeByReference ​

Get the amplitude of the sinusoid along each axis.

getMaximum ​

Get the maximum value of the gaussian.

getOffset ​

Get the constant value added to every voxel.

getStandardDeviation ​

Get the standard deviation of the gaussian.

getWholeExtent ​

Get the extent of the output image.

getWholeExtentByReference ​

Get the extent of the output image.

newInstance ​

Method used to create a new instance of vtkRTAnalyticSource.

ArgumentTypeRequiredDescription
initialValuesIRTAnalyticSourceInitialValuesNofor pre-setting some of its content

requestData ​

Expose methods

ArgumentTypeRequiredDescription
inDataYes
outDataYes

setCenter ​

Set the center of the gaussian, expressed in voxel index.

ArgumentTypeRequiredDescription
centerVector3Yes

setCenter ​

Set the center of the gaussian, expressed in voxel index.

ArgumentTypeRequiredDescription
xNumberYesThe x coordinate.
yNumberYesThe y coordinate.
zNumberYesThe z coordinate.

setCenterFrom ​

Set the center of the gaussian, expressed in voxel index.

ArgumentTypeRequiredDescription
centerVector3Yes

setDataDirection ​

Set the direction matrix of the output image.

ArgumentTypeRequiredDescription
e00NumberYes
e01NumberYes
e02NumberYes
e10NumberYes
e11NumberYes
e12NumberYes
e20NumberYes
e21NumberYes
e22NumberYes

setDataDirection ​

Set the direction matrix of the output image.

ArgumentTypeRequiredDescription
dataDirectionMatrix3x3Yes

setDataDirectionFrom ​

Set the direction matrix of the output image.

ArgumentTypeRequiredDescription
dataDirectionMatrix3x3Yes

setFrequency ​

Set the natural frequency of the sinusoid along each axis.

ArgumentTypeRequiredDescription
frequencyVector3Yes

setFrequency ​

Set the natural frequency of the sinusoid along each axis.

ArgumentTypeRequiredDescription
xNumberYesThe x frequency.
yNumberYesThe y frequency.
zNumberYesThe z frequency.

setFrequencyFrom ​

Set the natural frequency of the sinusoid along each axis.

ArgumentTypeRequiredDescription
frequencyVector3Yes

setMagnitude ​

Set the amplitude of the sinusoid along each axis.

ArgumentTypeRequiredDescription
magnitudeVector3Yes

setMagnitude ​

Set the amplitude of the sinusoid along each axis.

ArgumentTypeRequiredDescription
xNumberYesThe x magnitude.
yNumberYesThe y magnitude.
zNumberYesThe z magnitude.

setMagnitudeFrom ​

Set the amplitude of the sinusoid along each axis.

ArgumentTypeRequiredDescription
magnitudeVector3Yes

setMaximum ​

Set the maximum value of the gaussian.

ArgumentTypeRequiredDescription
maximumNumberYes

setOffset ​

Set the constant value added to every voxel.

ArgumentTypeRequiredDescription
offsetNumberYes

setStandardDeviation ​

Set the standard deviation of the gaussian.

ArgumentTypeRequiredDescription
standardDeviationNumberYes

setWholeExtent ​

Set the extent of the output image.

ArgumentTypeRequiredDescription
x1NumberYes
x2NumberYes
y1NumberYes
y2NumberYes
z1NumberYes
z2NumberYes

setWholeExtent ​

Set the extent of the output image.

ArgumentTypeRequiredDescription
wholeExtentExtentYes

setWholeExtentFrom ​

Set the extent of the output image.

ArgumentTypeRequiredDescription
wholeExtentExtentYes