Core Optical, Inc.
Utilities Pow Method Industrial Strength, Scientific Grade
Raises the values in a SourceData object to a specified power and stores the result.

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

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

Parameters

sourceData
Type: PrecisionImage SourceData
A SourceData object containing the data to operate on.
channel
Type: OnlineSystem Int32
An OnlineInt32 type indicating the channel to operate on.
targetData
Type: PrecisionImage SourceData
A SourceData object to which the results of the operation are stored.
targetChannel
Type: OnlineSystem Int32
An OnlineInt32 type specifying the channel of targetData to write the results to.
power
Type: OnlineSystem Single
A OnlineSingle type indicating the power to which the values are to be raised.
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.
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.
Remarks

Use this method to perform a pointwise power computation of the values in sourceData according to the regionOfInterest and the binaryMask.
See Also