Open lumeng5 opened 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?)
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.
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?)