Image: Convert to Matrix
Convert Image Window to a Matrix Sheet
Minimum Origin Version Required: 2022
1. cv2mat type:=double;
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Input Image | img |
Input ImageLayer |
|
Specify the image layer to convert. Single and multi-frame image are supported. Note that the dialog box always takes the active image layer as input. |
Output Matrix | mat |
Output MatrixLayer |
|
Select the output matrix. |
Data Type | type |
Input int |
|
Specify the numeric data type of the output matrix. Data Type Option List:
Refer to this document page for more information of data type. |
Image View | view |
Input int |
|
Check this checkbox to show the converted matrix in Image View: 0=false, 1=true. |
This function converts an image Window to a Matrix Sheet. The matrix data type can be specified.
The computation uses function from OpenCV Main API. Please refer to the OpenCV Main API Help file, Version 2.4.11.0 and read imgproc. Image Processing topic.
Kenneth R.Castleman.1996. Digital Image Processing. Prentice Hall, Upper Saddle River, NJ, USA.