08-17-2020 03:52 AM
I use Labview2017. I want to read the picture in tif format, and get its gray value of every pixel.What should I do?
Solved! Go to Solution.
08-17-2020 04:38 AM
Hi Ruoming Xin
You need to use IMAQ to read image and if it's colorful, also need to change it to gray by extraction.Then you could get an array's gray value by a VI in pixel manipulation group called "image to array".
See the below picture.
Thanks,
Ricky
08-17-2020 10:17 PM
Thanks for your answer. I have been solved my problem.
08-17-2020 11:24 PM
Thanks for your answer again. I got a new problem just now.
The picture is an 8-bit grayscale image. I used 'IMAQ ReadFile 2' and ‘IMAQ Imagetoarray’ to get its gray value. I found that it became a color map.The original image is shown on the right. And the picture made in gray value is shown on the left.
And this is my program.
Can you help me
Thanks
08-18-2020 12:21 AM
Not know your application why need change it back to 2D picture control. But I think this link will solve your problem.
https://forums.ni.com/t5/LabVIEW/Color-table-question-gray-scale/td-p/335312?profile.language=zh-TW
thanks,
Ricky
08-18-2020 07:51 AM
Thanks for Your answer. I have been solved my problem.