【发布时间】: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