【问题标题】:Identify GREEN color in an image with NI VISION in Labwindows\CVI在 Labwindows\CVI 中使用 NI VISION 识别图像中的绿色
【发布时间】:2017-01-25 19:53:28
【问题描述】:

我在 CVI 中使用 NI VISION imaqColorHistogram(...),它为我提供了一个每个平面的报告,对于我在图像上选择的颜色模式(RGB、HSL HSV、HSI、CIE、CIEXYZ)其中需要包含一个绿色点(该点是图像的大部分)

 

一份报告包括:

 

int* histogram; //An array describing the number of pixels that fell into each class.
int histogramCount; //The number of elements in the histogram array.
float min; //The smallest pixel value that the function classified.
float max; //The largest pixel value that the function classified.
float start; //The smallest pixel value that fell into the first class.
float width; //The size of each class.
float mean; //The mean value of the pixels that the function classified.
float stdDev; //The standard deviation of the pixels that the function classified.
int numPixels; //The number of pixels that the function classified.

 

我想验证大部分彩色图像是否最接近绿色。

我应该使用什么颜色模式?我对该报告的标准应该是什么?

 

【问题讨论】:

  • 在开始处理数字图像之前,您能否了解一些有关数字图像的基本知识?谢谢。

标签: image-processing labwindows cvi


【解决方案1】:

我使用 HSL 颜色模式并仅检查了 Hue 平面。

通过观察几张图片的色调值(在windows Paint中),我设置了色调值的容差,并通过报告中的mean字段进行检查。

像魅力一样工作。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-01-10
    • 1970-01-01
    • 2018-06-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多