arithmetic.slides.printing.6

# arithmetic.slides.printing.6 - Arithmetic Operations...

This preview shows pages 1–2. Sign up to view the full content.

Arithmetic Operations Arithmetic Operations CS 450: Introduction to Digital Signal and Image Processing Bryan Morse BYU Computer Science Arithmetic Operations Image Arithmetic I For input images f 1 and f 2 and some function Op: g ( x , y ) = Op ( f 1 ( x , y ) , f 2 ( x , y )) The operator is applied pairwise to each pixel in the images. I Pseudocode: for all pixel positions x, y: out[x,y] = func( image1[x,y] , image2[x,y] ) I Possibilities: addition, subtraction, and, or, . .. Arithmetic Operations Addition/Blending Used to create double-exposures or composites: g ( x , y ) = f 1 ( x , y ) + f 2 ( x , y ) + = Can also do a weighted blend : g ( x , y ) = α 1 f 1 ( x , y ) + α 2 f 2 ( x , y ) Arithmetic Operations Subtraction I Useful for ﬁnding changes between two images g ( x , y ) = f 1 ( x , y ) - f 2 ( x , y ) I Sometimes more useful to use absolute difference g ( x , y ) = | f 1 ( x , y ) - f 2 ( x , y ) | I What’s changed? -

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This document was uploaded on 03/15/2012.

### Page1 / 2

arithmetic.slides.printing.6 - Arithmetic Operations...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online