2017-01-25 4 views
0

에 녹색을 식별내가 (RGB, HSL HSV, HSI, CIE를 선택하면 colorMode을 위해, 나에게 각면</strong>에 대한 <strong>보고서를 제공 CVI에서 내가 NI 비전 <code>imaqColorHistogram(...)</code>을 사용하고 Labwindows 에서 NI 비전과 이미지 CVI

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. 
,536 :해야하는 이미지, CIEXYZ)는 녹색 자리 (자리가 이미지의 대부분입니다)

보고서에 포함을 포함

컬러 이미지의 대부분이 GREEN에 가장 근접하다는 것을 확인하고 싶습니다.

어떤 ColorMode를 사용해야합니까? 그 보고서에 내 기준은 무엇이되어야합니까?

+0

디지털 이미지에 대한 기본적인 지식을 얻으시겠습니까? 고맙습니다. – Piglet

답변

0

나는 HSL 컬러 모드를 사용하고 색조 평면 만 확인했습니다.

여러 그림의 색조 값 (창 그림판)을 관찰하여 색조 값의 허용치를 설정하고 보고서의 mean 필드를 통해 확인했습니다.

매력처럼 작동합니다.