ILNumerics Ultimate VS

ILMathloadImage Method (Image, NullableRectangle)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Load pixel data from image.

[ILNumerics Computing Engine]

Namespace:  ILNumerics
Assembly:  ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public static RetArray<int> loadImage(
	Image image,
	Nullable<Rectangle> rect = null
)

Parameters

image
Type: System.DrawingImage
The image.
rect (Optional)
Type: SystemNullableRectangle
[Optional] Rectangular area in the image to read data from. Default: the whole image is read.

Return Value

Type: RetArrayInt32
Image pixel data as Int32 elements
Remarks

Each pixel in the image is converted to a single element in the array returned. All channels are accumulated in the single element. Each channel is represented by 8 bits in the 32 bits of each Int32 element.

The image data are considered as PixelFormat.Format32bppArgb. If you get unexpected results, make sure, the image is provided in a compatible format.

[ILNumerics Computing Engine]

See Also

Reference