キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

How to extract the gray value of gray image and represent it with two-dimensional array?

解決済み
解決策を見る

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:3.jpg

Please tell me more details,thank you very much!

0 件の賞賛
メッセージ1/7
2,396件の閲覧回数

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. 

______________________________________________________________
Have a pleasant day and be sure to learn Python for success and prosperity.
0 件の賞賛
メッセージ2/7
2,346件の閲覧回数
解決策
受理者 Alert77

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.

 

 

0 件の賞賛
メッセージ3/7
2,330件の閲覧回数

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!

0 件の賞賛
メッセージ4/7
2,302件の閲覧回数

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?

0 件の賞賛
メッセージ5/7
2,299件の閲覧回数
解決策
受理者 Alert77

if you have NI Vision, then you can use "IMAQ GetPixelValue" to obtain the pixel value in you image directly.

0 件の賞賛
メッセージ6/7
2,270件の閲覧回数

Thank you very much! I got the data.

0 件の賞賛
メッセージ7/7
2,265件の閲覧回数