dilevin / computer-graphics-raster-images

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

straight or premultiplied alpha? #28

Open lumeng5 opened 4 years ago

lumeng5 commented 4 years ago

For over.cpp, do we assume the inputs A and B have straight alpha (instead of premultiplied) ?

And should C have straight or premultiplied alpha? (if straight, does it mean in rgba_to_rgb we need to multiple rgb values by alpha when extracting?)

dilevin commented 4 years ago

It's straight alpha.

Read the assignment description carefully it says to EXTRACT the three channel data from the four channel image. That tells you all you need to know.