Back to Aurora Vision Library Lite website
You are here: Start » Image » Image Basics » ImageToMatrix
ImageToMatrix
Header: | AVL.h |
---|---|
Namespace: | avl |
Converts a single-channel image to a matrix.
Syntax
void avl::ImageToMatrix ( const avl::Image& inMonoImage, avl::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. |