dilevin / computer-graphics-raster-images

Computer Graphics Assignment about Raster Images
2 stars 10 forks source link

what is the range for rgb and alpha in desaturate.cpp, hue_shift.cpp, over.cpp? #76

Open yulong-wu-jackson opened 2 weeks ago

yulong-wu-jackson commented 2 weeks ago

what is the required range for input , and output of rgb and alpha value in desaturate.cpp, hue_shift.cpp, over.cpp? [0,1] or [0,255]?

dilevin commented 2 weeks ago

When input/output data is of type char or unsigned char the data range is 0-255.

Zhecheng-Wang commented 2 weeks ago

[0,255], see header files.