Azzera filtri
Azzera filtri

Comparing RGB and HSV images

1 visualizzazione (ultimi 30 giorni)
Ash
Ash il 12 Feb 2017
Risposto: Walter Roberson il 12 Feb 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

Risposte (1)

Walter Roberson
Walter Roberson il 12 Feb 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.

Categorie

Scopri di più su Graphics Object Properties in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by