07-10-2006 10:10 AM
07-11-2006 05:00 AM
图片是用数字相机拍摄的,不知道使用了什么corlor table,图片格式是unit8,gray图像。经过Matlab处理(主要是图像增强滤波)后得到的图像格式是double array。处理前的图像和处理后的图像都要在lv前面板显示。请指点一下应该分别如何设置corlor table?mask需要设置吗?
If image depth is 24, LabVIEW ignores this input.是不是说如果是真彩色的图像,corlor table就为空?If image depth is 8, the array can have 256 elements.是否unit8的图片corlor table就是含有256个元素的?如何取值?
我找了好多天,几乎看不到关于Draw Flattened Pixmap的例子。请问能否提供一些例子和关于picture方面的资料?或者把我的show1.vi修改一下,只要能显示图片就ok,我再好好学习一下。
谢谢!!
07-11-2006 09:36 AM
07-12-2006 08:13 AM
I am very sorry,the "unit8" I said is "uint8",I made a mistake.
You said,"真彩色的图像 doesn't use color table. So you don't wire anything to it.
mask is always optional."
我用showtozou.vi来对一幅真彩色24位的图像进行显示(color table don't wire
anything to it),结果仍然不能在前面板显示。您看一下是vi的哪个地方出了问题?
"8 bit Gray scale color table: 0x010101, 0x020202, ..., 0xFFFFFF",
这个怎么样在数组里设置,难道要一个一个的都输入到数组里吗?请给一个例子,我还是不明白。
“What 图像增强滤波 does Matlab do? Some of them changes the color table.
You should get this informatin from Matlab.”
图像进入matlab之前是uint8 array,经过matlab处理之后是double array(位数应该还是8位,
把整型变为了双精度型)。
“关于picture方面的资料,on your LabVIEW panel => menu =>Help => Find Examples...
=> Search "picture".”
这里面的资料我没有找到想要的。凡是用到Draw Flattened Pixmap的,都是把corlor设为0。
所以还是恳切希望您能提供一个example,以vi的形式,让我好好学习一下。
Thank you!
07-12-2006 09:52 AM
07-12-2006 01:35 PM
07-12-2006 05:19 PM
You only need to read chapt one of that book. And you can find it at:
http://www-scf.usc.edu/~flv/ipbook/chap01.htm
07-13-2006 04:27 AM - edited 07-13-2006 04:27 AM
帖子被远行在07-13-2006 04:29 AM时编辑过了
帖子被远行在07-13-2006 06:00 AM时编辑过了
07-13-2006 04:24 PM
07-14-2006 07:31 AM