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

Image Processing - Unable to create an image from array

解決済み
解決策を見る

Hi everyone,

 

I am trying to create an array from a colored image. Then, from this array, I am trying to create another image. It should give the same image but in gray. However, I am not able to do that. I need this program to understand I am in the right way. This is just beginnig. After I do this, Some calculations will made on array obtained from image. 

 

The vi is at the attachment. Thank you

0 件の賞賛
メッセージ1/2
2,611件の閲覧回数
解決策
トピック作成者musti168が受理

Hi musti168,

 

You're going through your entire image pixel-by-pixel and getting each of their values - why don't you just use the IMAQ ImageToArray function?  

 

On this forum post I found an example of IMAQ ArrayToImage: http://forums.ni.com/t5/LabVIEW/IMAQ-arraytoimage-example/td-p/68418

 

You can use some of the IMAQ Image Processing palette to change the image to gray scale - possibly a threshold.

Julian R.
Applications Engineer
National Instruments
0 件の賞賛
メッセージ2/2
2,572件の閲覧回数