{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

spatial.slides.printing.2

# spatial.slides.printing.2 - Spatial Filtering Spatial...

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

Spatial Filtering Spatial Filtering CS 450: Introduction to Digital Signal and Image Processing Bryan Morse BYU Computer Science Spatial Filtering Introduction Neighborhood Operations Output is a function of a pixel’s value and its neighbors Example (8-connected neighbors): g ( x , y ) = Op 0 @ f ( x - 1 , y - 1 ) , f ( x , y - 1 ) , f ( x + 1 , y - 1 ) , f ( x - 1 , y ) , f ( x , y ) , f ( x + 1 , y ) , f ( x - 1 , y + 1 ) , f ( x , y + 1 ) , f ( x + 1 , y + 1 ) 1 A Possible operations: sum, weighted sum, average, weighted average, min, max, median, ...

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

View Full Document
Spatial Filtering Introduction Spatial Filtering The most common neighborhood operation is to multiply each of the pixels in the neighborhood by a weight and add them together. The local weights are sometimes called a mask or kernel . Local Neighborhood Mask f(x-1,y-1) f(x,y-1) f(x+1,y-1) f(x-1,y) f(x,y) f(x+1,y) f(x-1,y+1) f(x,y+1) f(x+1,y+1) w(-1,-1) w(0,-1) w(1,-1) w(-1,0) w(0,0) w(1,0) w(-1,1) w(0,1) w(1,1) g ( x , y ) = 1 s = - 1 1 t = - 1 w ( s , t ) f ( x + s , y + t ) Spatial Filtering Introduction Spatial Filtering
Spatial Filtering Introduction Convolution Spatial filtering is often referred to as convolution .

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.

{[ snackBarMessage ]}

### Page1 / 6

spatial.slides.printing.2 - Spatial Filtering Spatial...

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

View Full Document
Ask a homework question - tutors are online