LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert binary image to grayscale image

Hi everybody

I want to convert  8-bit binary image to 8-bit grayscale image. Can some one help me please in NI vision how to convert the image back to grayscale after I did my thresholding by using 'IMAQ Local threshold' from a 8-bit grayscale to a binary image but the problem now I don't know how to convert it back.

0 Kudos
Message 1 of 4
(4,586 Views)

Hello,

 

As far as I know you cannot revert the process since when you created the binary image you applied a threreshold and you basically lose all of that information.

Randy @Rscd27@
0 Kudos
Message 2 of 4
(4,502 Views)

 Dear Rscd

I multiplied a white image(255 value) on the original image. I get result. my image is grayscale now.

 

Thank you very much

Message 3 of 4
(4,459 Views)

Your image is going to be grayscale (U8) but is only going to have values of 0 and 255. What I mean when I told you that is not possible to return the original values of the image before the threshold. I am glad that now is working for you.

Randy @Rscd27@
0 Kudos
Message 4 of 4
(4,381 Views)