Revision as of 16:53, 13 February 2013 by Green26 (Talk | contribs)

Image Blending

(alec green)

Images below implicitly demonstrate how humans vision system perceives different ways of blending two distinct images. OpenCV was used to access images at pixel level.

Note that 'complete' images are likely aliased due to your internet browser, so I posted a zoomed in version for each form of image blending in the hopes that you see what kind of blending method was used. You can observe this alias on the 'complete' images by zooming in and out with your browser (usually ctrl+mouse_scroll).


[1] :: Alternating Pixels, with Aligned Columns

Alternating columns.PNG

Alternating columns zoom.PNG


[2] :: Alternating Pixels, with Misaligned Columns

Alternating pixels.PNG

Alternating pixels zoom.PNG


[3] :: Alpha Blending

For each R/G/B color channel of each pixel, I used the following blending equation that treated one image as a fully (100%) opaque background and the other image as a variably-opaque foreground. Because the opacity value of the foreground was 50% here, the distinction between foreground and background is inconsequential:

$ opacity_{foreground} = \sigma \in [0,1] R_{tot} = \sigma R_{foreground} + (1 - \sigma)R_{background} G_{tot} = \sigma G_{foreground} + (1 - \sigma)G_{background} B_{tot} = \sigma B_{foreground} + (1 - \sigma)B_{background} $

And as previously described, $ \sigma = .5 $ in the following blend of 2 images.

Alpha blending.PNG

Alpha blending zoom.PNG

Alumni Liaison

Correspondence Chess Grandmaster and Purdue Alumni

Prof. Dan Fleetwood