Borrar filtros
Borrar filtros

Comparing RGB and HSV images

1 visualización (últimos 30 días)
Ash
Ash el 12 de Feb. de 2017
Respondida: Walter Roberson el 12 de Feb. de 2017
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

Respuestas (1)

Walter Roberson
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.

Categorías

Más información sobre Graphics Object Properties en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by