Docsity

Amme4710 chap3 spatialfiltering, Thesis of Abnormal Psychology

Partial preview of the text

Download Amme4710 chap3 spatialfiltering and more Thesis Abnormal Psychology in PDF only on Docsity!

T. Peynot Chapter 3 Intensity Transformations & Spatial Filtering

3. Intensity Transformations and Spatial Filtering

  1. Background
  2. Some Basic Intensity Transformation Functions
  3. Histogram Processing
  4. Fundamentals of Spatial Filtering
  5. Smoothing Spatial Filters
  6. Sharpening Spatial Filters

T. Peynot Chapter 3 Intensity Transformations & Spatial Filtering 3.1 Background 3.1.1 The Basics of Intensity Transformations and Spatial Filtering Spatial domain process : Output image Input image Operator defined over a neighbourhood of point (x,y)

T. Peynot Chapter 3 Intensity Transformations & Spatial Filtering 3.2 Some Basic Intensity Transformation Functions Values of the pixels will be noted: r before processing, s after : s = T( r ) Digital => values of T typically stored in a one-dimension array + mappings from r to s implemented via table lookups

T. Peynot Chapter 3 Intensity Transformations & Spatial Filtering 3.2.1 Image Negatives Negative of an image with intensity levels in [0, L-1] obtained by:

T. Peynot Chapter 3 Intensity Transformations & Spatial Filtering 3.2.3 Power-Law (Gamma) Transformations Basic form: c and γ : positive constants Sometimes written as to account for an offset

T. Peynot Chapter 3 Intensity Transformations & Spatial Filtering Example of gamma correction: CRT (Cathode Ray Tube) devices have an intensity-to-voltage response that is a power function, with exponents from ~1.8 to 2.5 => images darker than intended NB: “Device-dependent” value of gamma

T. Peynot Chapter 3 Intensity Transformations & Spatial Filtering Opposite example: Image has a “washed-out” appearance ⇒ Compression of intensity levels is desirable ⇒ values of gamma > 1

T. Peynot Chapter 3 Intensity Transformations & Spatial Filtering 3.2.3 Piecewise-Linear Transformation Functions Piecewise Linear Functions:

  • æ : can be arbitrarily complex
  • è : specification requires much more user input A) Contrast Stretching Expands the range of intensity levels to span the full intensity range of the output device

T. Peynot Chapter 3 Intensity Transformations & Spatial Filtering B) Intensity level slicing Goal: highlight a specific range of intensities Two main approaches: a) Display in one value (e.g. white) all values in range of interest and all others in another value (e.g. black) => binary image b) Brighten (or darken) the desired range, leaving all other intensity levels unchanged a) (^) b)

T. Peynot Chapter 3 Intensity Transformations & Spatial Filtering approach a) approach b) B) Intensity level slicing

T. Peynot Chapter 3 Intensity Transformations & Spatial Filtering Original 8-bit image^ Lowest-order bit Highest-order bit

T. Peynot Chapter 3 Intensity Transformations & Spatial Filtering Application to image compression: C) Bit-plane slicing Original 8-bit image

T. Peynot Chapter 3 Intensity Transformations & Spatial Filtering Histograms :

  • Basis for numerous spatial domain processing techniques
  • Provides useful image statistics
  • Useful for image enhancement, image compression and segmentation
  • Simple to calculate in software (+ hardware implementations)

© 1992–2008 R. C. Gonzalez & R. E. Woods T. Peynot Chapter 3 Intensity Transformations & Spatial Filtering 3.3.1 Histogram Equalization Goal: obtain an output image with a uniform PDF()^ (continuous case) Input image → output image r → s (intensity levels) () PDF: Probability Density Function Consider continuous intensity values PDF of s (output image):