mirror of https://github.com/pjreddie/darknet.git
Merge b3f0f10061
into f6afaabcdf
This commit is contained in:
commit
ad251ba8ee
|
@ -976,7 +976,7 @@ void rgb_to_hsv(image im)
|
|||
float min = three_way_min(r,g,b);
|
||||
float delta = max - min;
|
||||
v = max;
|
||||
if(max == 0){
|
||||
if(max == 0 || delta < 0.00001){
|
||||
s = 0;
|
||||
h = 0;
|
||||
}else{
|
||||
|
|
Loading…
Reference in New Issue