This commit is contained in:
jetxa 2022-10-08 04:07:13 -04:00 committed by GitHub
commit ad251ba8ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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{