ILNumerics Ultimate VS

ILMathloadImage Method (String, NullableRectangle)

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

[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(
	string filename,
	Nullable<Rectangle> rect = null
)

Parameters

filename
Type: SystemString
Image filename.
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 Format32bppArgb. If you get unexpected results, make sure that the image is provided in a compatible format.

[ILNumerics Computing Engine]

See Also

Reference