取消
显示结果 
搜索替代 
您的意思是: 

Display Gray Scale Image

已解决!
转到解答

Dear  Members,

 

Kindly, how can I display (write) a gray scale image in labview using Flatten Pixmap when my input image is a two dimensional matrix 64x64 gray scale.? 

0 项奖励
1 条消息(共 12 条)
6,527 次查看
解答
接受人 Tasnim

One way of doing it would be to wire an array representing a greyscale colour map to the colors input of Flatten Pixmap.vi.

 

greyscale.png

2 条消息(共 12 条)
6,503 次查看

Thank you very much for the useful answer..

 

in case I want to read a gray scale image in labview using Flatten Pixmap.vi or Unflatten Pixmap.vi when my input image is a two dimensional matrix 64x64 gray scale..is it the same way you answered me before?

 

Thank you 

 
0 项奖励
3 条消息(共 12 条)
6,472 次查看
解答
接受人 Tasnim

@Tasnim wrote:

in case I want to read a gray scale image in labview using Flatten Pixmap.vi or Unflatten Pixmap.vi when my input image is a two dimensional matrix 64x64 gray scale..is it the same way you answered me before?


If you want to read data from an image that is a 2D Picture Control, use Picture to Pixmap.vi then Unflatten Pixmap.vi to return a 2D array.  If your data is in the form of a LabVIEW matrix, it will have to be converted to a 2D array first as the picture functions do not operate on matrix data.

 

Andy

4 条消息(共 12 条)
6,457 次查看

Thank you Andy for the useful answer

0 项奖励
5 条消息(共 12 条)
6,411 次查看

Dear Members,

 

Can anybody advise me how to display grayscale (.tiff) image size of 64x64 and the image depth is 8 in LabVIEW?

 

Thank you

Tasnim

0 项奖励
6 条消息(共 12 条)
6,369 次查看

Tasnim,

 

Just to check: do you mean read an existing TIFF file and display it in a picture control in LabVIEW?

 

Andy

0 项奖励
7 条消息(共 12 条)
6,364 次查看

yes, this is what I mean.

 

Thank you

0 项奖励
8 条消息(共 12 条)
6,347 次查看

I don't think LabVIEW has anything built-in to read TIFF files directly.  Many posts discuss use of the IMAQ image library or libtiff.

 

This post has a library which might help you, and there are a few threads on lavag.org discussing reading of TIFF files.

 

The easiest thing to do might be to convert losslessly to a suitable format that LabVIEW can handle using an external tool, but I have no experience of this.

 

Andy

0 项奖励
9 条消息(共 12 条)
6,335 次查看

ok thank u very much for the reply and help..

 

I will try to check it 

0 项奖励
10 条消息(共 12 条)
6,319 次查看