Core Optical, Inc.
Resampler GetLogPolarResampledChannel Method Industrial Strength, Scientific Grade
Resamples the data from a cartesian to a log-polar coordinate system and returns the result 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 GetLogPolarResampledChannel(
	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.
maxRadius
Type: OnlineSystem Double
A OnlineDouble type indicating the maximum radius of the transform.
thetaStart
Type: OnlineSystem Double
A OnlineDouble type indicating the initial angle of the transform.
sweepAngle
Type: OnlineSystem Double
A OnlineDouble type indicating the total sweep angle of the transform.
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

This method is very similar to GetPolarResampledChannel(SourceData, Int32, ResamplingKernel, Double, Double, Double, Double, Double, Double, Int32, Int32), with the only difference being that the radial resampling is performed logarithmically rather than linearly. The function arguments and their meanings are the same as in GetPolarResampledChannel(SourceData, Int32, ResamplingKernel, Double, Double, Double, Double, Double, Double, Int32, Int32). See this method for more information.

Examples

See GetPolarResampledChannel(SourceData, Int32, ResamplingKernel, Double, Double, Double, Double, Double, Double, Int32, Int32) for an example of the tranform geometry specification and output format.
See Also