Core Optical, Inc.
SourceData GetRawDataImage Method Industrial Strength, Scientific Grade
Gets a 32-bit floating point OnlineBitmapSource image of the data.

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

public BitmapSource GetRawDataImage(
	int channel,
	Int32Rect regionOfInterest = null
)

Parameters

channel
Type: OnlineSystem Int32
An OnlineInt32 indicating the channel of interest in the current SourceData object.
regionOfInterest (Optional)
Type: OnlineSystem.Windows Int32Rect
A OnlineInt32Rect indicating the zero-based row and column coordinates of the region to process. This parameter is optional. Default is the entire data image.

Return Value

A OnlineBitmapSource object of type OnlineGray32Float contaiining the data values in the current SourceData object.
Exceptions

ExceptionCondition
OnlineSystem ArgumentOutOfRangeException Thrown when channel is negative or greater than the current number of data channels.
OnlineSystem ArgumentOutOfRangeException Thrown when regionOfInterest specifies a rectangular region not completely contained within the dimensions of the source data.
Remarks

Use this method to retrieve a 32-bit floating point OnlineBitmapSource image of the data contained in the current SourceData object. The data is written to a new OnlineBitmapSource object in unscaled / unmodified form i.e. the raw values are written to the image file. The default behavior for Windows Imaging Component in this case is to scale the values between 0 - 1 for display, with other values outside of this range as clipped to the lower/upper grayscale value. Note that the data itself is not scaled / clipped, only its representation in the OnlineBitmapSource image. This is one way to generate and store raw unmodified data files.
See Also