Core Optical, Inc.
Resampler GetPolarToCartesianResampledChannel Method Industrial Strength, Scientific Grade
Resamples the data from a polar to a cartesian coordinate grid and returns the data as a single-channel SourceData object.

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

public SourceData GetPolarToCartesianResampledChannel(
	SourceData sourceData,
	int sourceChannel,
	ResamplingKernel kernel,
	double originRow,
	double originColumn,
	double minRadius,
	double maxRadius,
	double thetaStart,
	double sweepAngle,
	int newWidth,
	int newHeight
)

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.
originRow
Type: OnlineSystem Double
A OnlineDouble type indicating the zero-based row index of the transform origin.
originColumn
Type: OnlineSystem Double
A OnlineDouble type indicating the zero-based column index of the transform origin.
minRadius
Type: OnlineSystem Double
A OnlineDouble type indicating the minimum radius of the transform (relative to the origin).
maxRadius
Type: OnlineSystem Double
A OnlineDouble type indicating the maximum radius of the transform (relative to the origin).
thetaStart
Type: OnlineSystem Double
A OnlineDouble type indicating the initial angle of the transform (relative to the origin).
sweepAngle
Type: OnlineSystem Double
A OnlineDouble type indicating the total sweep angle of the transform (relative to the origin).
newWidth
Type: OnlineSystem Int32
An OnlineInt32 type indicating the width (radial sampling rate) of the output data.
newHeight
Type: OnlineSystem Int32
An OnlineInt32 type indicating the height (angular sampling rate) of the output data.

Return Value

A single-channel SourceData object containing the resampled data.
Exceptions

ExceptionCondition
OnlineSystem NullReferenceException Thrown when sourceData and/or kernel is null.
OnlineSystem ArgumentOutOfRangeException Thrown when sourceChannel refers to a channel that does not exist.
OnlineSystem ArgumentOutOfRangeException Thrown when newWidth and/or newHeight are less than 1, when minRadius is less than 0 or greater than maxRadius, when the magnitude of sweepAngle exceeds 360, or when thetaStart is less than 0 or greater than 360.
Remarks

Use this method to resample data from a polar coordinate system to a cartesian coordinate system. See GetPolarResampledChannel(SourceData, Int32, ResamplingKernel, Double, Double, Double, Double, Double, Double, Int32, Int32) for an example of the use of this method.

See Also