Download presentation
Presentation is loading. Please wait.
Published byHannah Dawson Modified over 9 years ago
1
Image Processing Part II
2
2 Classes of Digital Filters global filters transform each pixel uniformly according to the function regardless of its location in the image local filters transform a pixel depending upon its relation to surrounding ones
3
Global Filters: REVIEW Brightness and Contrast control Histogram thresholding Histogram stretching or equalization Color corrections Inversions
4
Local Filters Blurring Sharpening Unsharp Masking Edge and line detection Noise filters
5
Blurring Algorithm For (every pixel in column x) {For (every pixel in row y of column x) { average image[x,y] with it’s neighbors; }
6
Blurring Average each pixel with its neighbors by : multiplying each pixel and its neighbors by 1: = - add multiplied pixels and divide by 9 - store result in a new array The new array contains a blurred image. 111 111 111
7
Gaussian Blur Multiply neighbors by less than middle
8
Blur Demo Photoshop –Filter->Blur->Blur –Filter->Blur->Gaussian Blur
9
Local Filters Blurring Sharpening Unsharp Masking Edge and line detection Noise filters
10
Subtract neighboring pixels by : multiplying each pixel and its neighbors by: = - add multiplied pixels - store result in a new array The new array contains a sharpened image. Sharpening 00 00 +5
11
Unsharp Masking Unsharp masking also sharpens an image The Algorithm: 1. call the original (unblurred) image A 2. blur the image (call it B) 3. subtract B from the unblurred image (let C = A-B) 4. Multiply C by some number, k (k > 1) 5. Sharpened Image = A + kC
12
Sharpen/Unsharp mask Photoshop –Filter->Sharpen->Sharpen –Filter->Sharpen->Unsharp mask
13
Local Filters Blurring Sharpening Unsharp Masking Edge and line detection Noise filters
14
Edge and Line Detection Multiply each pixel and its neighbors by the following corresponding patterns (numbers) - add results - clip to 255 - result = “Edge” image 0 +1 0 0 +1 0 0 +1 0 Gets Gets Vertical Edges Horizontal Edges
15
Edge Detection edge detection is often used to recognized objects of interest in the image
16
Edge Detection Photoshop –Filter->Stylize->Find Edges
17
Local Filters Blurring Sharpening Unsharp Masking Edge and line detection Noise filters
18
Noise Filters A median filter takes away “salt & pepper” noise (speckles)
19
Noise Filter Photoshop –Filter->Noise->Median Filter
20
Kernel Filtering 111 111 111 Blur 00 00 +5 Sharpen 0 +1 0 0 +1 0 0 +1 0 Edges Apply same algorithm at every pixel using different kernel values
21
Image Editing
22
Selection Tools Painting Tools Cut & Paste Cloning Layers and Blending
23
Selection Tools Lasso Tool - manually draw outline (free hand) - manually outline (line segments) - magnetic lasso (semi-automated) Magic Wand DEMOS Tool Bar
24
Image Editing Selection Tools Painting Tools Cut & Paste Cloning Layers and Blending
25
Painting Tools Airbrush Tool Paint Bucket Tool Paintbrush Tool Pencil Tool DEMOS
26
Image Editing Selection Tools Painting Tools Cut & Paste Cloning Layers and Blending
27
Cut & Paste Word Processors - cut & paste strings of characters (1D arrays) Image Editing - cut & paste pixels (2D arrays) - replace old pixels with new pixels
28
Image Editing Selection Tools Painting Tools Cut & Paste Cloning Layers and Blending
29
Cloning Copy pixels from one part of an image - to another part of an image... Interactively DEMO
30
Image Editing Selection Tools Painting Tools Cut & Paste Cloning Layers and Blending
31
Can create arbitrary number of layers for - animation - special effects in movies - morphing Layers and Blending Layer 1 Layer 2 Layer n
32
The idea: Blended image =.3 x +.7 x is a weighted combination (sum) of two or more other images. Blending
33
Example Blend.3 x+.7 x = Bearastronaut
34
The idea: Create another image where the value of pixels is the weighting term for a blend operation: Masking
35
Image Editing Selection Tools Painting Tools Cut & Paste Cloning Layers and Blending
36
Review Local Filters - Blurring - Sharpening - Edge Detection - Noise removal Image Editing Selection Tools Painting Tools Cut & Paste Cloning Layers and Blending
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.