I was looking at the RGB to HSV conversion linked from the readme (https://en.wikipedia.org/wiki/HSL_and_HSV#Converting_to_RGB) and I'm wondering if the if H < 0; H = H + 360 is being applied to the reference solution that gets desaturated.png? I notice if I add this part into my conversion I'm seeing less green around the ear and nose, but if I remove it I get something similar to the reference image.
images/desaturated.png
my desaturated.ppm if i include the H < 0 check.
Is the H < 0 check not needed for this assignment?
I was looking at the RGB to HSV conversion linked from the readme (https://en.wikipedia.org/wiki/HSL_and_HSV#Converting_to_RGB) and I'm wondering if the if H < 0; H = H + 360 is being applied to the reference solution that gets desaturated.png? I notice if I add this part into my conversion I'm seeing less green around the ear and nose, but if I remove it I get something similar to the reference image.
images/desaturated.png![desaturated](https://user-images.githubusercontent.com/36872595/72559395-b27a2d00-3872-11ea-94bf-815073da668a.png)
my desaturated.ppm if i include the H < 0 check.![desaturated_1](https://user-images.githubusercontent.com/36872595/72559507-f2411480-3872-11ea-8e5a-02760210bdc8.png)
Is the H < 0 check not needed for this assignment?