Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 804 Bytes

additionOp.md

File metadata and controls

18 lines (12 loc) · 804 Bytes

Addition Operator

Original Images ( Operands )

Image 1 Image 2
operandOne operandTwo

Resulting Images = Image_1 + Image_2

It's pretty evident that after application of addition operator on two equal sized images, resulting pixel intensity values may be out of range ( > 255 ), which can't be stored in a 24-bit RGB image. For putting pixel intensities in [0, 255] range, we can consider either of following two ways

  • All pixel intensities < 0, becomes 0 and > 255, becomes 255. [ Clipping ]
  • We'll simply apply modulus ( % ) 256, to put all pixel intensities back to range. [ Scaling ]
Clipped Scaled
result result