HSV is cylindrical color space that determines colors by hue (0°-360°), saturation (percentage of white) and value (percentage of black).
Questions tagged [hsv]
468 questions
-1
votes
1 answer
RGB to V (from HSV)
I am trying to convert an RGB image to its Value component. I cannot use the RGB2HSV function because I have been instructed to convert it without it.
If I am not mistaken, the value of an image is the maximum of the R,G and B components in the…

Michelle
- 141
- 9
-1
votes
1 answer
What is the correct hsv range for this image?
I am trying to use inrange function in opencv to get the square(green part) but it doesn't seems to work. Here is my image
Here is my code:
cv::inRange(src, cv::Scalar(35, 20, 20), cv::Scalar(85, 255, 200), src);
And here is the output for my…

Utkarsh Dixit
- 4,267
- 3
- 15
- 38
-1
votes
1 answer
Convert RGB to HSV using [0, 255] range
I have an RGB image that I want to convert to the HSV colorspace. The RGB values in the image array have a range of 0 to 255. However, almost all of the colorspace conversion functions out there require the data to have a range of 0 to 1.
Is there…

DeeWBee
- 695
- 4
- 13
- 38
-1
votes
1 answer
How convert image from RGB model to HSV (without built-in functions) and display it in java?
I try to convert image from RGB model to HSV and display it. Unfortunately I dont have any idea how to do this. I dont want to use built-in function but I want write function alone. I want to do this in similar way using RGB channels. I read/checked…

Tomek eM
- 92
- 1
- 1
- 11
-1
votes
1 answer
iOS how to calculate hue shift between two UIColors to plug into an image filter?
I want to dynamically recolor images that are in red into any color the user wants (except black and white). This will allow me to reduce the amount of work graphics artist has to do. Typically I do this by applying iOS hue shift filter. This…

Alex Stone
- 46,408
- 55
- 231
- 407
-1
votes
2 answers
Lighten color using HSV?
In my code I have this:
public static int darkenColor(int color, float value) {
float[] hsv = new float[3];
Color.colorToHSV(color, hsv);
hsv[2] *= value; // value component
return Color.HSVToColor(hsv);
}
I want to create its…

l33t
- 18,692
- 16
- 103
- 180
-1
votes
1 answer
How to plot HSV values using C++
I am pretty new to these things, I have implemented a code in C++ to find HSV values from RGB values.
R = 255;
G = 0;
B = 0;
for this i am getting the value of HSV as :
H = 0;
S = 1;
V = 1;
No i am taking here V= 255V and S = 255S whereas H = H/2.…

Hadi
- 307
- 6
- 20
-1
votes
1 answer
Realtime color picker hsv to hex string?
What I need is a realtime color picker(realtime as in color is generated while the controls are still being dragged and not upon releasing them) that uses some sort of draggable control thingys that one can drag up and down to determine hue…

Wingblade
- 9,585
- 10
- 35
- 48
-2
votes
1 answer
Why is this Java code returning a memory address?
This code is returning a memory address of an array being returned by the rgb2hsv function. I am not sure as to why this is, or if it is even a memory address that it is returning as I am familiar with memory addresses looking something along the…
-2
votes
2 answers
How are HSV color values used?
I've just read about HSV and what I found out is that the Hue, actually specifies that in what color range (like pink, orange,etc.) the color is, the Saturation specifies its tendency to white (the lower the value is, the whiter the color is) , and…

mitrafrz
- 51
- 6
-2
votes
1 answer
Identify name of the color/hue given the HSV value
I have a HSV value of a color. I need to map it to the colosest color in my list of colors {red,green,blue,grey,orange,purple,yellow,black,white,gold}.
How do I do this mapping. Someone told me to just check the hue ranges. eg : red is 0-10 and…

Shubham Khatri
- 1
- 2
-2
votes
1 answer
Convert HSV to RGB in MATLAB
I have [H,S,V] colour values.
How can I convert them to [R,G,B] in MATLAB?
I've tried with the algorithm but I'm having some problems. Can anyone help me with the code?

Mohamed Shahid
- 476
- 5
- 18
-2
votes
1 answer
The Result Of Function "cvtColor" of OpenCV
I try to convert a RGB image to HSV color space, and get the HSV value of a pixel.
But the result is a little strange, as far as I know, the range of H is between 0 and 360, S and V is between 0 to 255, but the result that I have got is 0~255 for…

Bing
- 1
- 4
-2
votes
1 answer
HSV thresholding values for a tennis ball OpenCv
I have tried to use the following values to threshold an image to find a tennis ball but I find nothing.
Here are the values I am using in my inRange call
cvScalar(0.11*256, 0.60*256, 0.20*256, 0)
cvScalar(0.14*256, 1.00*256, 1.00*256, 0)
How can…

Clip
- 3,018
- 8
- 42
- 77
-3
votes
1 answer
Converting HSV to RGB in Python
pt = Point(x,y)
h=angle
s=length
RGB=colorsys.hsv_to_rgb(h, s, 0)
print (RGB)
pt.setFill(color_rgb(RGB))
pt.draw(win)
I get error message: "color_rgb() missing 2 required positional arguments: 'g' and 'b'" but if I…

Petri Keckman
- 9
- 1