2.15.2 cv2mat


Menu Information

Image: Convert to Matrix

Brief Information

Convert Image Window to a Matrix Sheet

Additional Information

Minimum Origin Version Required: 2022

Command Line Usage

1. cv2mat type:=double;

X-Function Execution Options

Please refer to the page for additional option switches when accessing the x-function from script

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input Image img

Input

ImageLayer

<active>
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

<new>
Select the output matrix.
Data Type type

Input

int

Auto
Specify the numeric data type of the output matrix. Data Type Option List:
  • Auto:auto(0)
  • Byte:byte(1)
  • UShort:ushort(2)
  • UInt:uint(3)
  • Float:float(4)
  • Double:double(5)

Refer to this document page for more information of data type.

Image View view

Input

int

1
Check this checkbox to show the converted matrix in Image View: 0=false, 1=true.

Description

This function converts an image Window to a Matrix Sheet. The matrix data type can be specified.

Algorithm

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.

References

Kenneth R.Castleman.1996. Digital Image Processing. Prentice Hall, Upper Saddle River, NJ, USA.