Core Optical, Inc.
Utilities CopyData Method Industrial Strength, Scientific Grade
Copies the data in a region of interest from one SourceData object to another (or the same) object of the same dimensions according to an optional BinaryMask.

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

public static void CopyData(
	SourceData sourceData,
	int channel,
	SourceData targetData,
	int targetChannel,
	Int32Rect regionOfInterest = null,
	BinaryMask binaryMask = null
)

Parameters

sourceData
Type: PrecisionImage SourceData
A SourceData object containing the data to copy.
channel
Type: OnlineSystem Int32
An OnlineInt32 type indicating the channel containing the data to copy.
targetData
Type: PrecisionImage SourceData
A SourceData object to which the data is copied. Can be the same object as sourceData.
targetChannel
Type: OnlineSystem Int32
An OnlineInt32 type indicating the data channel to copy to. Can be the same as channel.
regionOfInterest (Optional)
Type: OnlineSystem.Windows Int32Rect
An OnlineInt32Rect indicating the region of interest to copy. Default is entire image.
binaryMask (Optional)
Type: PrecisionImage.BinarizationAndMorphology BinaryMask
A BinaryMask to use during the copying operation. The default is no mask.
Exceptions

ExceptionCondition
OnlineSystem ArgumentNullException Thrown when sourceData or targetData are null.
OnlineSystem ArgumentOutOfRangeException Thrown when channel or targetChannel specify channels that do not exist.
OnlineSystem ArgumentException Thrown when sourceData and targetData do not have the same dimensions.
OnlineSystem ArgumentException Thrown when the dimensions of binaryMask do not match those of sourceData and targetData.
OnlineSystem ArgumentOutOfRangeException Thrown when regionOfInterest specifies a region not completely contained within the input data.
See Also