Back to FabImage Library website
You are here: Start » Function Reference » Image » Image Basics » ImageToMatrix
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Converts a single-channel image to a matrix.
Syntax
C++
C#
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. |