LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

converting a threshoulded image to a greyscale on 1473R (FPGA)

Solved!
Go to solution

Hi there,

 

So I am trying to use an example called Image Processing with Vision Assistant on FPGA, to edit and compress some PIV images. However, when I try to use threshould function on Vision Express sub-VI and then compile to my FPGA I receive a black image on the display, when I run the host VI. It might be due the fact that the threshoulded image is black and red and the display configuration is U8 greyscale, but there isn´t an option of a binary display and I tried using Lookup table to obtain a black and white image but then it adds a new control, memory in, which I don´t know what should I do with it.

If I could the image as a binary(and being able to display it), it would be perfect, but my programming really sucks and I don´t know how to do it.

 

Many thanks in advance!

0 Kudos
Message 1 of 3
(2,640 Views)
Solution
Accepted by topic author pedrorf

To display the binary image on the host, use a binary palette: right click on the image display control, click the palette menu, then select Binary.

Another option is to convert the image on Vision Assistant FPGA to 8-bit (Conversion function in the Grayscale palette), then choose Operators and multiply by 255.

The image sent back will then be a 8-bit image with values of 255 for the thresholded pixels.

 

Hope this helps,

 

Christophe

0 Kudos
Message 2 of 3
(2,638 Views)

Thanks Christope! Multiplying it, worked.

0 Kudos
Message 3 of 3
(2,597 Views)