Core Optical, Inc.
Resampler ResampleDataInPlace Method Industrial Strength, Scientific Grade
Resamples all data channels in the SourceData object in-place.

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

public void ResampleDataInPlace(
	SourceData sourceData,
	ResamplingKernel kernel,
	int newWidth,
	int newHeight,
	Int32Rect regionOfInterest = null
)

Parameters

sourceData
Type: PrecisionImage SourceData
A SourceData type containing the data to resample.
kernel
Type: PrecisionImage.Resampling ResamplingKernel
A ResamplingKernel type that indicates the kernel to use during the resampling operation.
newWidth
Type: OnlineSystem Int32
An OnlineInt32 type indicating the number of horizontal samples.
newHeight
Type: OnlineSystem Int32
An OnlineInt32 type indicating the number of vertical samples.
regionOfInterest (Optional)
Type: OnlineSystem.Windows Int32Rect
An OnlineInt32Rect type indicating the region of interest to resample. This parameter is optional and defaults to the entire image.
Exceptions

ExceptionCondition
OnlineSystem NullReferenceException Thrown when sourceData and/or kernel is null.
OnlineSystem ArgumentOutOfRangeException Thrown when newWidth and/or newHeight are less than 1.
OnlineSystem ArgumentOutOfRangeException Thrown when regionOfInterest specifies a region not completely contained within the input data.
Remarks

Use this method to resample all data channels in sourceData in-place. This method is a pure resampler that does not implement any anti-aliasing. To avoid aliasing effects when downsampling, it is recommended to pre-filter the data first using the GaussianBlurFilter with the appropriate kernel radii.

See Also