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
Removing V channel from HSV
I'm trying to eliminate the V channel from an image (HSV). Am I doing it right?
cvtColor( image, image, CV_BGR2HSV );
//Copy only relevant channels into the output image:
// hsv[0] -> channel[0]
// hsv[1] -> channel[1],
// hsv[2] -> channel[0]…

Kevin Roy
- 111
- 8
0
votes
1 answer
rgb to hsv conversion in matlab
I want to convert all frames in my video from RGB color model to HSV color model.But I'm getting error and I couldn't solve it.Matlab code is:
obj=mmreader('C:\Users\newendo.avi');
nFrames=obj.NumberOfFrames;
for k=1:3000
img=read(obj,k);
…

Porkodi Devi
- 27
- 7
0
votes
1 answer
How to determine how close to white a hex value is?
I have the following php code to determine how close a hex value is to white, below. But the high values, close to 1, are yellow, not white.
For instance, the value of #f7f8f8 (close to white) is .972, while the value of yellow, #fff100, is 1. What…

heykatieben
- 269
- 2
- 16
0
votes
1 answer
SKEmitterNode HSV range
While I usually prefer RGB color space over HSV, I'd like SKEmitterNode to emit particles with max saturation and value and have hue value to range across all colors. Is that possible?
I'm new to XCode, Swift and SpriteKit, and am unable to open…

Mirac7
- 1,566
- 4
- 26
- 44
0
votes
1 answer
Multiplication of 2 images where the images have different models in OPEN CV
I'm trying to multiply two images of different models, in my case HSV and YCRCB.
I get the "vector is out of bound error" every time.
I have checked the sizes of the input images being multiplied, the number of rows and columns. I know the value is…

udit7395
- 626
- 5
- 16
0
votes
2 answers
Colour Name to RGB/Hex/HSL/HSV etc
I have come across this great function/command. Colour to RGB, you can do this:
col2rgb("peachpuff")
//returns hex
It will return one hex value. I want to extend this using Perl, Python or PHP but I want to be able to pass in, for example, "yellow"…

Abs
- 56,052
- 101
- 275
- 409
0
votes
2 answers
OpenCV: Change colour of pixel
Using OpenCV, I am detecting a face, detecting the left and right eyes of that face, and extracting the eye into a new Mat image. I am then converting the eye image colour from BGR to HSV.
I am checking to see if the eye colour is in a certain range…

LKB
- 1,020
- 5
- 22
- 46
0
votes
2 answers
Martix Logical comparison
In matlab i have hue plane in a matrix and the most common colors(top 5% of the hues) in an another matrix(L). I want to create a binary image where only rare colors are present.
Hue plane is 253X320 matrix the L matrix is 6X1.
for l = 1 :…

user3263112
- 57
- 6
0
votes
1 answer
Program gets stuck at finding the Contour while using Open CV
I recently started using Python and I've been working on an Open CV based project for over a month now.
I am using Simple Thresholding to detect a coloured blob and I have thresholded the HSV values to detect the blob. All works well, but when the…
0
votes
1 answer
opencv c++ HSV image channel separation exception
I know this question has been asked a number of times and I'm trying to implement their answers but its causing an exception in my code.
OS: Windows 7
OpenCV: 2.4.9
Here is my code:
#include "stdafx.h"
#include
#include…

Without Me It Just Aweso
- 4,593
- 10
- 35
- 53
0
votes
0 answers
Combine multiple threshold for inRange
I want to combine multiple threshold for detecting different type of red colour. I tried to make 4 type of thresholding and then I combine the result of 4 image into 1. but the result is always pitch black. is there any other way to do it? I guess…

stephen1706
- 1,010
- 11
- 22
0
votes
2 answers
PHP Work out colour saturation
lets say i have the following RGB values:
R:129
G:98
B:87
Photoshop says the saturation of that colour is 33%
How would i work out that percentage using PHP and the RGB values?

Ozzy
- 10,285
- 26
- 94
- 138
0
votes
1 answer
Convert an RGB image to gray_scale HSV in java
I want to convert a RGB image into HSV and return a gray_scale image, finally. I ve got the following code in order to read and convert my image:
BufferedImage lum = new BufferedImage(original.getWidth(), original.getHeight(),…

Jose Ramon
- 5,572
- 25
- 76
- 152
0
votes
1 answer
MySQL Spatial search for HSV (color) values?
Is it possible to use MySQL's spacial search to find points inside of a 3D polygon?
Or better still, is it possible to use MySQL to find the values on the surface of an HSV cylinder?

Justin Alexander
- 2,004
- 3
- 21
- 25
0
votes
3 answers
Extracting the Percentage of color (Red,blue,green,yellow,orange) in an image in Opencv?
I have to differentiate between 5 types of images which could have mostly either red,green, blue, orange or yellow color with some white or black color. I have to find which color is prominent in the image.
The source of images is Webcam, so the…

skm
- 5,015
- 8
- 43
- 104