LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I pass an U16 image into Matlab Script Node VI

Hi,

 

 

I have developed a LabVIEW application where Matlab script is running.

 

 

My camera gives U16 image.

 

I want to pass an image acquired through IMAQ to the Matlab script but the input variable does not have supporting data type (types allowed are real,complex, 1D array, 2D array etc.) but no image data type is available. How to pass it ?

 

Regards,

Sri

 

 

0 Kudos
Message 1 of 4
(2,814 Views)

IMAQ Image to Array

0 Kudos
Message 2 of 4
(2,802 Views)

hi,

 

Since my camera gives U16 image, IMAQ Image to array gives U16 pixels in 2 D array format. But my problem is the input variable of MATLAB Script node VI supports only below data type

real

complex

1D array of real or complex

2D array of real or complex

 

And i need to handle 2D array of U16 Pixels.

 

So let me know any solution

 

Regards,

Sri

0 Kudos
Message 3 of 4
(2,794 Views)

Cast the 2D array of U16 to real

0 Kudos
Message 4 of 4
(2,775 Views)