Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read the picture in tif format

Solved!
Go to solution

I use Labview2017. I want to read the picture in tif format, and get its gray value of every pixel.What should I do?

0 Kudos
Message 1 of 6
(1,578 Views)
Solution
Accepted by topic author RuomingXin

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.

Capture.PNG

 

Thanks,

Ricky

 

0 Kudos
Message 2 of 6
(1,556 Views)

Thanks for your answer. I have been solved my problem.

0 Kudos
Message 3 of 6
(1,527 Views)

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.

 

QQ图片20200818122039.png

And this is my program.QQ图片20200818122207.png

Can you help me 

Thanks

0 Kudos
Message 4 of 6
(1,522 Views)

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

0 Kudos
Message 5 of 6
(1,509 Views)

Thanks for Your answer. I have been solved my problem.

0 Kudos
Message 6 of 6
(1,489 Views)