detect objects using Look up table-LUT
조회 수: 1 (최근 30일)
이전 댓글 표시
hi sir, can I know how to define the HSV look up table when I wanna used it to detect object.thanks.
댓글 수: 2
Brian zhang
2012년 10월 22일
I guess you will can have a array to do this. why not? Each element is a possible object. You can add new object to that array. how big the array is the question. too large takes time. then you will have a way to like binary search. if you know what i mean.
채택된 답변
Image Analyst
2012년 10월 20일
HSV has floating point values so you don't use a lookup table. You can use thresholding, like I do in my HSV color detection demo.
댓글 수: 6
Image Analyst
2012년 10월 21일
No it is not robust for detecting all objects. It will only get those pixels with colors that can be selected by carving out a cylindrical sector in hsv color space. Imagine that hsv is a cylindrical color space. Bright and dark is up and down. The hue goes around the circumference as the colors in a rainbow. And as you go in and out radially, the saturation goes from really pure colors (red, blue, etc.) to less saturated colors (pink, sky blue) to neutral (a shade of gray). Take a look at my avatar to the left. I'm sure you can find pictures of hsv color space on the internet.
I have code that does work for hsv color detection in my File Exchange. Did you check that out? Because that is the advice I'd give. You can adapt it to read in your image, and adjust the high and low thresholds for each color channel to extract out pixels in the cylindrical sector and see what pixels they correspond to in your image.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!