06-05-2022 10:42 PM
Hello!
I am new to Labview and would like some help. I want to extract the pixel value of a gray image for subsequent defect detection. How should I write the program?
Like this picture:
Please tell me more details,thank you very much!
Solved! Go to Solution.
06-06-2022 02:41 PM
Step 1) Make a vi that opens the image file.
Step 2) Report back to this thread with progress on the open image file vi.
06-06-2022 08:29 PM
Assume you do not want to use NI Vision, just want to develop based on LabVIEW basic functions, then
1) use "read JPEG File.vi" read your image;
2) unbundle the image data from the step1 result, if you want to have flatten data;
3) use "Unflatten Pixmap.vi" if you want to unflatten data.
06-07-2022 08:21 PM
Thank you very much for your reply, but I just started to study, so I don't understand your reply very well. But I received a more detailed answer. Thank you in the end!
06-07-2022 08:27 PM
Thank you very much for your answer, but I would also like to take the liberty to ask, what should I do if I need to use Ni vision?
06-08-2022 07:58 AM
if you have NI Vision, then you can use "IMAQ GetPixelValue" to obtain the pixel value in you image directly.
06-08-2022 08:11 AM
Thank you very much! I got the data.