dilevin / computer-graphics-raster-images

Computer Graphics Assignment about Raster Images
1 stars 7 forks source link

Desaturate by a factor math unclear. #23

Open msnhao opened 4 years ago

msnhao commented 4 years ago

I'm not clear as to what you mean by desaturating by a factor. I've tried: s = s - factor s = s * factor s = s / factor s = s + factor with limits of [0, 1] but none of my output images appear the same as the provided example. My hue_shift looks correct so I don't think the problem is with my rgb-hsv functions.

cuilantao commented 4 years ago

it should be s -= s*factor i think