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
0
votes
0 answers
Divide HSV color spectrum in C#
I need to:
open an image
divide it into a N x N grid
then divide the Hue, Saturation and Value channels into bands of equal size
then do various computations with them (but what matters is how to divide the image and then divide the channels).
Is…

user3208638
- 1
- 1
0
votes
1 answer
Feed Jquery a hex code, dynamically generate similar colors
I am using Chart.js to create some donut charts for an app i'm building. I want the chart to be based on a single color like #5a2a97.
Then I'm thinking that I want to use HSB (i'm getting this term from photoshop color sliders) to dynamically change…

Daniel White
- 3,337
- 8
- 43
- 66
0
votes
1 answer
How to identify a red flag using opencv?
How to identify a red flag using opencv in Python?
I can identify a red flag using threshold but it is only useful when the background is the same color. How to identify the red flag in different background using open cv2? Or how to get the exact…
0
votes
2 answers
Getting dominant colour value from HSV Histogram
I am creating a hsv histogram from an image like below.
- (void)processImageWithHsv:(Mat&)image;
{
Mat image_hsv;
cvtColor(image, image_hsv, CV_BGR2HSV);
int hbins = 50, sbins = 60;
int histSize[] = {hbins, sbins};
float…

Mehmet Emre Portakal
- 1,774
- 21
- 37
0
votes
0 answers
Compute two original colors from mixed color with given hues
I'm writing a program which re-colorizes images into a given color scheme of two given colors.
I have a color C with hue 79, saturation 47 and value 67. I know that this color was mixed by two colors A and B. Hue of A is 50, hue of B is 198. Is it…

fishbone
- 3,140
- 2
- 37
- 50
0
votes
0 answers
How to make a saturation value slider with OpenCV in Xcode
I want to make a slider that can change the saturation of the image in an image view.
I'm currently using OpenCV. I've found some code on the web and tried it. It's working but it works in a little bit strange way..There is a white cup on the image…

Jeff
- 524
- 5
- 17
0
votes
1 answer
Performing HSV Threshholds in OpenCV for Java
I've done basic HSV threshholding in C++ OpenCV through the following
inRange(HSV,Scalar(H_MIN,S_MIN,V_MIN),Scalar(H_MAX,S_MAX,V_MAX),threshold);
though I can't find anything similar in the Imgproc class (or any other class) in Java so could…

Arhowk
- 901
- 4
- 11
- 22
0
votes
1 answer
Get a gradient given a color where the color is in the middle of the gradient
Suppose I have a random RGB value like 240 23 123. Ok ?
So I wanna to convert the RGB value in HSV and I need the RGB color be exactly in the middle of a gradient ..So all the other values of the gradient should have more saturation or less.
Ideally…

Claudio Ferraro
- 4,551
- 6
- 43
- 78
0
votes
1 answer
Image similarity by Euclidean distance in hsv color space in MATLAB
The code included below calculates the Euclidean distance between two images in hsv color space and if the result is under a Threshold (here set to 0.5) the two images are similar and it will group them in one cluster.
This will be done for a group…

SaraDean
- 169
- 1
- 13
0
votes
2 answers
The JColorChooser represents Hue, Saturation, and Value as integers. How do I get these values from a Color object?
I am using a Java Swing JColorChooser in the HSV color space. This widget uses spinners to adjust the color. Hue is 0-360, Saturation is 0-100, and Value is 0-100. I am only able to get float values back though for the component values. I want to…

Justin Wiseman
- 780
- 1
- 8
- 27
0
votes
1 answer
Random HSV colour
I'm trying to get a random HSV colour then convert it to RGB to be used. Does anyone have any ideas as to how I can do this? Thanks, Sam. What I've got so far: First method converts HSV to RGB with the specified values, the second method is for…

user1009569
- 477
- 6
- 22
0
votes
1 answer
HSV Clor space help for OpenCV project
I am working on detecting the Ball on Table Football. A screenshot of the game is:
https://www.dropbox.com/s/tsvxqlb358sshob/Screen%20Shot%202013-06-28%20at%2014.24.53.png
I am trying to use the following code:
hsv_min = cv.Scalar (0,0,100)
hsv_max…
user1763076
0
votes
1 answer
Plot 4D data where data come from 2 different files (Defining an odd palette)
I have two whitespace separated files that each partially contain the 4D data I need to plot. Call the data points (x,y,z,w). x, y are in both files, but the z and w are split up. I'm not sure how to pull the data properly, and define the proper…

Mr.Weathers
- 398
- 1
- 5
- 19
0
votes
1 answer
Convert from Vec3b to Mat3b
I am using BGR to HSV conversion of image using OpenCV. Since I am new to this field and software, I may sound incorrect so please let me know if I am wrong.
Now, in my school project i want to work with HSV image, which is easily converted…

rish
- 5,575
- 6
- 22
- 27
0
votes
1 answer
HSV conversion with cvCvtColor() issue
I'm trying convert RGB image to HSV with the function cvCvtColor(), but the results are unexpected. For example, white are converted to something near to red.
cvCvtColor(img, hsv, CV_BGR2HSV);
cvSplit( hsv, h, s, v, NULL );
…

renandame
- 25
- 6