LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use a vi program to create a png file of a ROI from an image file? (II)

Thank Mikeporter's suggestions but I still can't solve the problem. My problem is as the title. I rewrote the program as ROIget.vi, but I still have no idea to get the complete (not extracted) ROI file just as the ROI image selected from the pop-up image window. The total size of the ROI pattern file (please see the attachment) created by IMAQ Vision Builder is about 25KB, but the ROI file produced by my ROIget.vi program is only "3KB" which can't be used to do the pattern matching work. I tried "IMAQ Expand" icon to replace the "IMAQ Extract" icon, but it still didn't work. Could anyone help me solve the problem? Thank you.
Download All
0 Kudos
Message 1 of 3
(2,839 Views)
Rather than use the IMAQ Write PNG File.vi, you should use the IMAQ Write Image and Vision Info.vi.

Kyle V
0 Kudos
Message 2 of 3
(2,839 Views)
Thanks Kyle,

I tried your suggestion but it created 145KB PNG file which was much larger than the correct PNG file (23KB) produced by IMAQ Vision Builder. The 145KB PNG file still can't do the pattern matching job. Do you have other ideas? Thank you.

pzo
0 Kudos
Message 3 of 3
(2,839 Views)