Core Optical, Inc.
Resampler GetResampledValue Method Industrial Strength, Scientific Grade
Gets the resampled value at the specified row and column coordinates.

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

public float GetResampledValue(
	SourceData sourceData,
	int sourceChannel,
	ResamplingKernel kernel,
	float rowCoord,
	float columnCoord


Type: PrecisionImage SourceData
A SourceData type containing the data to resample.
Type: OnlineSystem Int32
An OnlineInt32 type indicating the channel containing the data to resample.
Type: PrecisionImage.Resampling ResamplingKernel
A ResamplingKernel type that indicates the kernel to use during the resampling operation.
Type: OnlineSystem Single
A OnlineSingle type indicating the row index of the resampling location.
Type: OnlineSystem Single
A OnlineSingle type indicating the column index of the resampling location.

Return Value

A OnlineSingle type consisting of the resampled value.

OnlineSystem NullReferenceException Thrown when sourceData and/or kernel is null.
OnlineSystem ArgumentOutOfRangeException Thrown when sourceChannel is negative or too large.
OnlineSystem ArgumentOutOfRangeException Thrown when rowCoord and/or columnCoord are negative or exceed the maximum row/column indeices of sourceData.

Use this method to retrieve a resampled value at arbitrary row and column indices using the specified resampling kernel. The row and column indices cannot be less than zero or greater than the maximum row/column indices of the source data otherwise an exception results.

The rowCoord and columnCoord arguments refer to data indices. For example, to retrieve the resampled value halfway between rows 0 and 1, specify a rowIndex of 0.5.

See Also