Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

HSV value of a RGB pixel

  1. Original.jpg

  2. HSV.jpg

The first image is the orginal BGR image and second (HSV.jpg) is the HSV color converted image

I opened the original image in GIMP editor and I checked the coordinate (300,300) and in that coordinate following values I found B:74 G:70 R:75 H:312 S:7 V:29

Then the same coordinate (300,300) when I checked in HSV converted image (HSV.jpg) I didn't find these "312,7,29" HSV values instead I found its RGB value.

I know that opencv doesn't display as HSV values, but then through what ways I will be able to get the HSV value of that particular coordinates(300,300) RGB pixel.

I thought conversion of BGR2HSV will do that and will give that values(312,7,29) but I didn't.

Please help me understand with this.

Thanks in Advance Sarjoon.

HSV value of a RGB pixel

  1. Original.jpg

  2. HSV.jpg

The first image is the orginal BGR image and second (HSV.jpg) is the HSV color converted image

I opened the original image in GIMP editor and I checked the coordinate (300,300) and in that coordinate following values I found B:74 G:70 R:75 H:312 S:7 V:29

Then the same coordinate (300,300) when I checked in HSV converted image (HSV.jpg) I didn't find these "312,7,29" HSV values instead I found its RGB value.

I know that opencv doesn't display as HSV values, but then through what ways I will be able to get the HSV value of that particular coordinates(300,300) RGB pixel.

I thought conversion of BGR2HSV will do that and will give that values(312,7,29) but I didn't.

it didn't give those values Please help me understand with this.

Thanks in Advance Sarjoon.