How to have matlab identify a color

조회 수: 7 (최근 30일)
Conner Carriere
Conner Carriere 2021년 2월 5일
댓글: Walter Roberson 2021년 2월 5일
I need to identify 6 colors. These are red, orange, yellow, white, blue, and green. I do not know if there is a simple way to do this. The colors will be identified from an image, so they might have slight variations each time. The colors are R G B at the moment. My intial idea was to set parameters, for example red would be between 255 and 230. I am not sure how to set this up. And I dont know how I would corilated that value to being red in matlab.
any info helps, thanks.
  댓글 수: 1
Walter Roberson
Walter Roberson 2021년 2월 5일
Sometimes rgb2hsv() is used, with people associating color with the "hue" parameter.

댓글을 달려면 로그인하십시오.

답변 (0개)


Help CenterFile Exchange에서 Linear Model Identification에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by