Core Optical, Inc.
Resampler TranslateData Method Industrial Strength, Scientific Grade
Translates data to an arbitrary non-integer pair of coordinates.

Namespace: PrecisionImage.Resampling
Assembly: PrecisionImage (in PrecisionImage.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax

public void TranslateData(
	SourceData sourceData,
	int sourceChannel,
	SourceData targetData,
	int targetChannel,
	double xTranslation,
	double yTranslation,
	ResamplingKernel kernel
)

Parameters

sourceData
Type: PrecisionImage SourceData
A SourceData type containing the data to translate.
sourceChannel
Type: OnlineSystem Int32
An OnlineInt32 type indicating the channel containing the data to translate.
targetData
Type: PrecisionImage SourceData
A SourceData type to contain the translated data. Can be the same as the source.
targetChannel
Type: OnlineSystem Int32
An OnlineInt32 type indicating the channel in which to insert the translated data.
xTranslation
Type: OnlineSystem Double
A OnlineDouble type indicating the magnitude of translation in the x (horizontal) direction.
yTranslation
Type: OnlineSystem Double
A OnlineDouble type indicating the magnitude of translation in the y (vertical) direction.
kernel
Type: PrecisionImage.Resampling ResamplingKernel
A ResamplingKernel type that indicates the kernel to use during the resampling.
Remarks

Use this method to translate data to an arbitrary (integer or non-integer) pair of row/column indices of a SourceData object. The targetData object and targetChannel value can be the same as the source, in which case the data is copied/resampled in-place.

The xTranslation and yTranslation arguments refer to the displacement (in pixels) of the source data. Positive xTranslation values cause the data to shift to the right whereas positive yTranslation values will shift the values down, and vice versa. Regions of data that fall outside of the data image as a result of the resampling operation are cropped. This method does not change the dimensions of the targetData object. Any data present in targetData will be overwritten by the operation.

See Also