karansher / computer-graphics-raster-images

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

desaturated output looks different #47

Closed YuChinKoo closed 2 years ago

YuChinKoo commented 2 years ago

After implementing desaturated function, I get this output:

Screen Shot 2022-09-17 at 9 43 48 PM

However, this image looks a lot lighter than the one shown in the handout

I was wondering if you guys used a smaller factor for desaturating the image, or do i have a bug in my implementation

abhimadan commented 2 years ago

You probably have a bug. One potential bug that's very easy to run into is accidentally doing integer division instead of float division.