Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 2 out of 5     Rate this Document

如何在Vision Builder中将32位的彩色图像转换成8位的灰度图?

主要软件: Vision Builder for Automated Inspection
主要软件版本: 6.0
主要软件修正版本: N/A
次要软件:

问题: 我想用一些IMAQ Vision的处理函数在彩色图上进行灰度图像的处理。我怎样可以在Vision Builder中将32位的彩色图像转换成8位的灰度图?

解答: 彩色图像是以RGB(red-green-blue)或HSL(hue-saturation-luminance)图像格式编码存储在内存中的。HSL存储彩色图像的信息是用3个8位字节分别表示色调(Hue)、饱和度(Saturation)和亮度(Luminance)。想要将彩色图转换成灰度图,你只要将亮度平面的提取出来,这种平面显示为一幅8位的灰度图。

在Vison Builder中提取彩色平面的步骤:
  1. 选择Color » Extract Color Planes。
  2. 选择HSL - Luminance Plane。
  3. 按下OK。


相关链接:

附件:





报告日期: 01/30/2001
最近更新: 07/23/2003
文档编号: 25TBKAOA

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit