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: 2.0.0.0 (2.0.0.0)
Syntax

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

Parameters

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

Return Value

A OnlineSingle type consisting of the resampled value.
Exceptions

ExceptionCondition
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.
Remarks

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