[vtkusers] adding 2 RGB images?

Arnaud GELAS arnaud_gelas at hms.harvard.edu
Thu May 5 15:20:20 EDT 2011


Hi all,

I would like to add 2 RGB images together, but I am not sure what should 
be the operation to be performed...

If you sum components you may get overflow...

If you clamp the value to the maximum of the component type, is it the 
color you would expect to get?
If you sum all pixels in a larger type, and then normalize by the 
largest component (or a norm based on the all the components), is it the 
color you would expect to get?

Is there any kind of rules to add 2 RGB image?


Thanks in advance,
Arnaud




More information about the vtkusers mailing list