Lecture 2 Intensity Transformation and Spatial Filtering Spatial
- Slides: 88
Lecture 2. Intensity Transformation and Spatial Filtering
Spatial Domain vs. Transform Domain ► Spatial domain image plane itself, directly process the intensity values of the image plane ► Transform domain process the transform coefficients, not directly process the intensity values of the image plane 11/24/2020 2
Spatial Domain Process 11/24/2020 3
Spatial Domain Process 11/24/2020 4
Spatial Domain Process 11/24/2020 5
Some Basic Intensity Transformation Functions 11/24/2020 6
Image Negatives 11/24/2020 7
Example: Image Negatives Small lesion 11/24/2020 8
Log Transformations 11/24/2020 9
Example: Log Transformations 11/24/2020 10
Power-Law (Gamma) Transformations 11/24/2020 11
Example: Gamma Transformations 11/24/2020 12
Example: Gamma Transformations Cathode ray tube (CRT) devices have an intensity-to-voltage response that is a power function, with exponents varying from approximately 1. 8 to 2. 5 11/24/2020 13
Example: Gamma Transformations 11/24/2020 14
Example: Gamma Transformations 11/24/2020 15
Piecewise-Linear Transformations ► Contrast Stretching — Expands the range of intensity levels in an image so that it spans the full intensity range of the recording medium or display device. ► Intensity-level Slicing — Highlighting a specific range of intensities in an image often is of interest. 11/24/2020 16
11/24/2020 17
Highlight the major blood vessels and study the shape of the flow of the contrast medium (to detect blockages, etc. ) 11/24/2020 Measuring the actual flow of the contrast medium as a function of time in a series of images 18
Bit-plane Slicing 11/24/2020 19
Bit-plane Slicing 11/24/2020 20
Bit-plane Slicing 11/24/2020 21
Histogram Processing ► Histogram Equalization ► Histogram Matching ► Local Histogram Processing ► Using Histogram Statistics for Image Enhancement 11/24/2020 22
Histogram Processing 11/24/2020 23
11/24/2020 24
Histogram Equalization 11/24/2020 25
Histogram Equalization 11/24/2020 26
Histogram Equalization 11/24/2020 27
Histogram Equalization 11/24/2020 28
Example 11/24/2020 29
Example 11/24/2020 30
Histogram Equalization 11/24/2020 31
Example: Histogram Equalization Suppose that a 3 -bit image (L=8) of size 64 × 64 pixels (MN = 4096) has the intensity distribution shown in following table. Get the histogram equalization transformation function and give the ps(sk) for each sk. 11/24/2020 32
Example: Histogram Equalization 11/24/2020 33
Example: Histogram Equalization 11/24/2020 34
11/24/2020 35
11/24/2020 36
Question Is histogram equalization always good? No 11/24/2020 37
Histogram Matching Histogram matching (histogram specification) — generate a processed image that has a specified histogram 11/24/2020 38
Histogram Matching 11/24/2020 39
Histogram Matching: Procedure ► Obtain pr(r) from the input image and then obtain the values of s ► Use the specified PDF and obtain the transformation function G(z) ► Mapping from s to z 11/24/2020 40
Histogram Matching: Example Assuming continuous intensity values, suppose that an image has the intensity PDF Find the transformation function that will produce an image whose intensity PDF is 11/24/2020 41
Histogram Matching: Example Find the histogram equalization transformation for the input image Find the histogram equalization transformation for the specified histogram The transformation function 11/24/2020 42
Histogram Matching: Discrete Cases ► Obtain pr(rj) from the input image and then obtain the values of sk, round the value to the integer range [0, L-1]. ► Use the specified PDF and obtain the transformation function G(zq), round the value to the integer range [0, L-1]. ► Mapping from sk to zq 11/24/2020 43
Example: Histogram Matching Suppose that a 3 -bit image (L=8) of size 64 × 64 pixels (MN = 4096) has the intensity distribution shown in the following table (on the left). Get the histogram transformation function and make the output image with the specified histogram, listed in the table on the right. 11/24/2020 44
Example: Histogram Matching Obtain the scaled histogram-equalized values, Compute all the values of the transformation function G, 11/24/2020 45
Example: Histogram Matching 11/24/2020 46
Example: Histogram Matching Obtain the scaled histogram-equalized values, Compute all the values of the transformation function G, s 0 s 2 s 1 s 3 s 4 s 5 s 6 s 7 11/24/2020 47
Example: Histogram Matching 11/24/2020 48
Example: Histogram Matching 11/24/2020 49
Example: Histogram Matching 11/24/2020 50
Example: Histogram Matching 11/24/2020 51
Example: Histogram Matching 11/24/2020 52
Example: Histogram Matching 11/24/2020 53
Local Histogram Processing Define a neighborhood and move its center from pixel to pixel At each location, the histogram of the points in the neighborhood is computed. Either histogram equalization or histogram specification transformation function is obtained Map the intensity of the pixel centered in the neighborhood Move to the next location and repeat the procedure 11/24/2020 54
Local Histogram Processing: Example 11/24/2020 55
Using Histogram Statistics for Image Enhancement Average Intensity Variance 11/24/2020 56
Using Histogram Statistics for Image Enhancement 11/24/2020 57
Using Histogram Statistics for Image Enhancement: Example 11/24/2020 58
Spatial Filtering A spatial filter consists of (a) a neighborhood, and (b) a predefined operation Linear spatial filtering of an image of size Mx. N with a filter of size mxn is given by the expression 11/24/2020 59
Spatial Filtering 11/24/2020 60
Spatial Correlation 11/24/2020 61
Spatial Convolution 11/24/2020 62
11/24/2020 63
Smoothing Spatial Filters Smoothing filters are used for blurring and for noise reduction Blurring is used in removal of small details and bridging of small gaps in lines or curves Smoothing spatial filters include linear filters and nonlinear filters. 11/24/2020 64
Spatial Smoothing Linear Filters 11/24/2020 65
Two Smoothing Averaging Filter Masks 11/24/2020 66
11/24/2020 67
Example: Gross Representation of Objects 11/24/2020 68
Order-statistic (Nonlinear) Filters — Nonlinear — Based on ordering (ranking) the pixels contained in the filter mask — Replacing the value of the center pixel with the value determined by the ranking result E. g. , median filter, max filter, min filter 11/24/2020 69
Example: Use of Median Filtering for Noise Reduction 11/24/2020 70
Sharpening Spatial Filters ► Foundation ► Laplacian Operator ► Unsharp Masking and Highboost Filtering ► 11/24/2020 Using First-Order Derivatives for Nonlinear Image Sharpening — The Gradient 71
Sharpening Spatial Filters: Foundation ► The first-order derivative of a one-dimensional function f(x) is the difference ► The second-order derivative of f(x) as the difference 11/24/2020 72
11/24/2020 73
Sharpening Spatial Filters: Laplace Operator The second-order isotropic derivative operator is the Laplacian for a function (image) f(x, y) 11/24/2020 74
Sharpening Spatial Filters: Laplace Operator 11/24/2020 75
Sharpening Spatial Filters: Laplace Operator Image sharpening in the way of using the Laplacian: 11/24/2020 76
11/24/2020 77
Unsharp Masking and Highboost Filtering ► Unsharp masking Sharpen images consists of subtracting an unsharp (smoothed) version of an image from the original image e. g. , printing and publishing industry ► Steps 1. Blur the original image 2. Subtract the blurred image from the original 3. Add the mask to the original 11/24/2020 78
Unsharp Masking and Highboost Filtering 11/24/2020 79
Unsharp Masking: Demo 11/24/2020 80
Unsharp Masking and Highboost Filtering: Example 11/24/2020 81
Image Sharpening based on First-Order Derivatives Gradient Image 11/24/2020 82
Image Sharpening based on First-Order Derivatives z 1 z 2 z 3 z 4 z 5 z 6 z 7 z 8 z 9 11/24/2020 83
Image Sharpening based on First-Order Derivatives z 1 z 2 z 3 z 4 z 5 z 6 z 7 z 8 z 9 11/24/2020 84
Image Sharpening based on First-Order Derivatives 11/24/2020 85
Example 11/24/2020 86
Example: Combining Spatial Enhancement Methods Goal: Enhance the image by sharpening it and by bringing out more of the skeletal detail 11/24/2020 87
Example: Combining Spatial Enhancement Methods Goal: Enhance the image by sharpening it and by bringing out more of the skeletal detail 11/24/2020 88
- Intensity transformations and spatial filtering
- Intensity transform functions
- Intensity transformation and spatial filtering
- Types of spatial filtering in digital image processing
- Intensity transformations and spatial filtering
- Intensity transformations and spatial filtering
- Ingress filtering vs egress filtering
- Abbe imaging and spatial filtering experiment
- In digital image processing
- Contra harmonic mean filter
- Spatial filtering
- Image processing matlab
- Spatial filtering
- Image enhancement in spatial domain
- Restoration in the presence of noise only-spatial filtering
- Spatial filtering matlab
- Let h and i be the size and intensity of the image
- Hsi color wheel
- Intensity level slicing
- 01:640:244 lecture notes - lecture 15: plat, idah, farad
- Spatial data vs non spatial data
- Spatial data transformation
- Collaborative filtering pros and cons
- Stateless packet inspection
- Risk ranking and filtering
- 2^x=256
- Microsoft windows filtering platform hyper-v
- Collaborative filtering medium
- List the stages in knapp's relationship termination model
- Stateless inspection
- Screened subnet firewall
- Linear filtering
- Different filtering methods based on dft
- Windows filtering platform
- Constrained least square filter
- Competitive filtering
- Matched filtering gravitational waves
- Linear filtering citra
- Filtering solids from liquids
- Filtering mode
- Perceptron-based prefetch filtering
- Band pass filtering in biomedical instrumentation
- Content filtering trusts
- Recursive bilateral filtering
- Grating couplers wikipedia
- Linear filtering
- Association rules vs collaborative filtering
- James gain
- Ofsted web filtering
- Becta web filter
- Caobin
- Jelaskan konsep firewall
- Image filtering
- Homomorphic filtering block diagram
- Collaborative filtering with temporal dynamics
- Hrnn recommendation
- Particle filtering
- Filtering self-rescue respirator
- Frequency filtering
- Socks protocol
- Frequency filtering
- Sorbster
- Frequency filtering
- Filtering organizational behavior
- Point processing operations
- Collaborative filtering with temporal dynamics
- Unweighted area sampling
- Bwhitmiss
- Adverb of spice
- Sound intensity and resonance
- Maxwell equations
- What is pressure intensity
- Derive the electromagnetic wave equation
- Poynting vector and intensity
- Factors affecting width and intensity of spectral lines
- Speed and agility frequency, intensity, time type
- Hue value intensity
- Rgb
- Equation for electric field intensity
- What clouds have the greatest turbulence
- Supports intensity scale rating key
- Beer's law derivation
- Radiation intensity of antenna
- Earthquake intensity depends primarily on the height of
- Reference intensity ratio
- A literary work in which special intensity is
- A literary work in which special intensity is
- Pengendalian getaran
- Light intensity equation with wavelength