Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

problem while using matlab code on labview

Respected sir,

                 

               we have developed some code on matlab which has to be executed using matlab script in labview environment. but there is no result shown on labview front panel for simple operation itself such as edge detection , thresholding where the same code executed on matlab produce results . since both the matlab and lab view are installed in the same computer i also used IMAQ Array to image vi for conversion. I have attached the error by screen shot and we also three planes seperately for colour image input  . Our  requirements are

 

 

1.Some examples using matlab script for image processing

 

plz guide us

 

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

Hello,

 

if the Mathscript code compiles without errors try (in Labview):

 

right click on image indicator -> pallete -> binary.

 

See if this does the trick.

 

As for the RGB image, why are you casting it to U64? Also you need to check how you process the rgb image. Your output seems to be all three color planes (each should actually be 8-bit, but is 32-bit). Also, the color planes seem to be be mixed up...

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 2 of 2
(4,708 Views)