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: (

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


Type: PrecisionImage SourceData
A SourceData type containing the data to resample.
Type: PrecisionImage.Resampling ResamplingKernel
A ResamplingKernel type that indicates the kernel to use during the resampling operation.
Type: OnlineSystem Int32
An OnlineInt32 type indicating the number of horizontal samples.
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.

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.

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