Core Optical, Inc.
Utilities DivideChannels Method Industrial Strength, Scientific Grade
Performs a pointwise division (sourceData1 / sourceData2) and stores the result in targetData.

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

public static void DivideChannels(
	SourceData sourceData1,
	int channel1,
	SourceData sourceData2,
	int channel2,
	SourceData targetData,
	int targetChannel,
	Int32Rect regionOfInterest = null,
	BinaryMask binaryMask = null,
	float divisionByZeroSubstitution = NaNf
)

Parameters

sourceData1
Type: PrecisionImage SourceData
A SourceData object containing the data to be used in the division.
channel1
Type: OnlineSystem Int32
An OnlineInt32 type indicating the channel of sourceData1 containing the data to use in the division.
sourceData2
Type: PrecisionImage SourceData
A SourceData object containing the data to be used in the division.
channel2
Type: OnlineSystem Int32
An OnlineInt32 type indicating the channel of sourceData2 containing the data to use in the division.
targetData
Type: PrecisionImage SourceData
A SourceData object to which the results of the division are stored.
targetChannel
Type: OnlineSystem Int32
An OnlineInt32 type indicating the channel of targetData to use to store the results.
regionOfInterest (Optional)
Type: OnlineSystem.Windows Int32Rect
An OnlineInt32Rect type indicating the region of interest. Coordinates are zero-index based. This parameter is optional and defaults to the entire image.
binaryMask (Optional)
Type: PrecisionImage.BinarizationAndMorphology BinaryMask
A BinaryMask object indicating areas to bypass. Default is no mask.
divisionByZeroSubstitution (Optional)
Type: OnlineSystem Single
A OnlineSingle type indicating the value to substitute when a division-by-zero condition is encountered. Default is OnlineIsNaN(Single).
Exceptions

ExceptionCondition
OnlineSystem ArgumentNullException Thrown when sourceData1, sourceData2, or targetData are null.
OnlineSystem ArgumentOutOfRangeException Thrown when channel1, channel2 or targetChannel specify a channel that does not exist.
OnlineSystem ArgumentException Thrown when the dimensions of binaryMask do not match those of sourceData1, sourceData2 and targetData.
OnlineSystem ArgumentOutOfRangeException Thrown when regionOfInterest specifies a region not completely contained within the input data.
Remarks

Use this function to perform a pointwise division of the values within the specified channels of sourceData1 and sourceData2. The results are stored in the specified targetChannel of targetData. The target SourceData object can be one of the input SourceData objects, in which case the original values are overwritten by the new ones.

sourceData1, sourceData2 and targetData must all have the same dimensions.

See Also