Comparing RGB and HSV images
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am using HSV for object detection work from a video. For the report I have to write why I am using HSV colour space instead of RGB colour space. I am trying to show this difference by fitting the distribution for both of the colour space separately to check the variance of the channels. But even in different datasets both colour space show less change in variance.
Is there any specific way in which i can compare my datasets for both colour spaces and say which is more better for my work?
I wil be thankful if anyone can reply soon.
thank you
0 comentarios
Respuestas (1)
Walter Roberson
el 12 de Feb. de 2017
Suppose that your task is to detect red objects. Then when you use RGB, the task usually gets designed in terms of whether the object is bright enough. But when you use HSV, the task usually gets designed in terms of whether the object is red enough.
Suppose that your task is to detect objects that stand out from the background, where the background is defined in terms of majority color. Then, when you use RGB, the task usually gets designed in terms of whether the object is bright enough relative to the background, or high contrast enough relative to the background. But when you use HSV, the task usually gets designed in terms of whether the object is a different enough color from the background.
You can think of situations in which the difference would be important. If the background is red and the object is brighter red, then can you detect it? Not if you are relying on hue alone. If the background is black and the object is dark red, then can you detect it? Not if you are relying on brightness alone.
0 comentarios
Ver también
Categorías
Más información sobre Color en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!