Back to FabImage Library Lite website
You are here: Start » Image » Image Basics » ImageToMatrix

ImageToMatrix
Header: | FIL.h |
---|---|
Namespace: | fil |
Converts a single-channel image to a matrix.
Syntax
void fil::ImageToMatrix ( const fil::Image& inMonoImage, fil::Matrix& outMatrix )
Parameters
Requirements
For input inMonoImage only pixel formats are supported: 1⨯uint8, 1⨯int8, 1⨯uint16, 1⨯int16, 1⨯int32, 1⨯real.
Read more about pixel formats in Image documentation.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Not supported inMonoImage pixel format in ImageToMatrix. Supported formats: 1xUInt8, 1xInt8, 1xUInt16, 1xInt16, 1xInt32, 1xReal. |