SlideShare a Scribd company logo
ADAPTIVE UNSHARP MASKING
       Digital Image Processing
Contents
• What is Unsharp Masking..?


• Concept of Operation


• Drawbacks


• Adaption Algorithm


• Advantages of Unsharp Masking
Unsharp Masking
• Unsharp masking (USM) is an image manipulation
 technique.

• An unsharp mask cannot create additional detail, but it can
 greatly enhance the appearance of detail by increasing
 small-scale acutance (the edge contrast of an image).

• Normally an "unsharp mask" is used to sharpen an image
 which can help us to emphasize texture and detail of the
 image.
Concept of Operation
• Normally in Unsharp Masking, a highpass filtered, scaled
 version of an image is added to the image itself.

• This will improve the visual appearance of an image
 significantly by emphasizing its high frequency contents to
 enhance the edge and detail information in it.

• Generally an unsharp mask is a filter that amplifies high-
 frequency components.
• The enhanced image y(n,m) is obtained from the input
 image x(n,m) as


             y(n,m) = x(n,m) + ƛz(n,m)

• where z(n,m) is the correction signal computed as the
  output of a linear high pass filter.
• ƛ is the positive scaling factor that controls the level of
  contrast enhancement achieved at the output.
hx                      hy
 0     -1   0            0    0     0
 0      2   0            -1   2     -1
 0     -1   0            0    0     0



Zx=conv(x,hx)           Zy=conv(x,hy)


     z(n,m) = [zx(n,m), zy(n,m)]T

  y(n,m) = x(n,m) + ƛz(n,m)
Zx                 Zy




Original Image(x)   Output Image(y)
Drawbacks
• Even though this method is simple and works well in many
 applications, it suffers from two main drawbacks.

  i) The presence of the linear high pass filter makes the system
  extremely sensitive to noise. This results in perceivable and
  undesirable distortions in the images.

  ii) It enhances high-contrast areas much more than areas that
  do not exhibit high image dynamics. Consequently, some
  unpleasant overshoot artifacts may appear in the output
  image.
Adaptive Unsharp Masking
• In this approach, we introduce a variation of the basic
 Unsharp Masking scheme that contains an adaptive filter in
 the correction path.

• The objective of the adaptive filter is to emphasize the
 medium-contrast details in the input image more than large-
 contrast details such as abrupt edges so as to avoid overshoot
 effects in the output image.

• The adaptive filter does not perform a sharpening operation
 in smooth areas, and therefore the overall system is more
 robust to the presence of noise in the input images than
 traditional approaches.
Implementation diagram
Here we go with the approach as below :

             y(n,m) = x(n,m) + ƛz(n,m)

where ƛ is the positive scaling factor that controls the level of
contrast enhancement achieved at the output.


               ƛ (n,m) = [ƛx(n,m), ƛy(n,m)]T


 y(n,m) =x(n,m) + ƛx(n,m)zx(n,m)+ ƛy(n,m)zy(n, m)
Objective of this approach
• In the previous equation, ƛx(n,m) and ƛy (n,m) are the
 scaling factors for the two components of the correction
 signal at the (n,m)th pixel.

• Our objective is to recursively update these parameters
 using an adaptation algorithm so as to produce an output
 image whose local dynamics are increased in the detail
 areas and left unchanged in the uniform areas.

• i,.e., little or no enhancement is applied in smooth areas of
 the image, maximum enhancement is applied in medium
 contrast areas, and large contrast areas are only moderately
 enhanced.
Local dynamics
• To determine this classification, we first measure the local
  dynamics of the image.

• The local variance computed over a 3 × 3 pixel block is
  given by :
•




         g
    -1   -1   -1
    -1    8   -1
    -1   -1   -1
•
Adaption Algorithm
•
• This process is iteratively repeated until we acquire the
 ‘error(e)’ in the desired range.

• When the desired range of error is achieved, we stop the
 procedure and display the image y which is defined as


y(n,m) =x(n,m) + ƛx(n,m)zx(n,m)+ ƛy(n,m)zy(n, m)

                     Original         Unsharped Image
Advantages of Unsharp Masking
• Enhanced apparent sharpness through “edge effects”.


• An important advantage of unsharp masking is that it
 increases the sharpness of the prints.

• Reduction of contrast on negatives of excessive contrast.


• Improved print shadow detail.


• Well known benefits in the printing and graphics arts
 industries.
References:
• http://www.ieee.org

• Andrea Polesel, Giovanni Ramponi, and V. John Mathews

 “Image Enhancement via Adaptive Unsharp Masking”, IEEE
 TRANSACTIONS ON IMAGE PROCESSING

• Google Images

• MATLAB images
THANK YOU

More Related Content

PPTX
Transform coding
PPTX
Unit 2. Image Enhancement in Spatial Domain.pptx
PPTX
Module 31
PPTX
Color Models.pptx
PPT
Image Restoration
PPT
Image segmentation ppt
PPT
Chapter 3 Image Processing: Basic Transformation
Transform coding
Unit 2. Image Enhancement in Spatial Domain.pptx
Module 31
Color Models.pptx
Image Restoration
Image segmentation ppt
Chapter 3 Image Processing: Basic Transformation

What's hot (20)

PPTX
Image Restoration (Order Statistics Filters)
PPTX
IMAGE SEGMENTATION.
PPTX
Histogram Processing
PPTX
Spatial Filters (Digital Image Processing)
PPTX
Erosion and dilation
PPTX
Digital Image restoration
PPTX
Vector quantization
PPSX
Color Image Processing: Basics
PPT
05 histogram processing DIP
PDF
Digital Image Processing: Digital Image Fundamentals
PPTX
COM2304: Digital Image Fundamentals - I
PDF
Compression: Images (JPEG)
PPTX
HSI MODEL IN COLOR IMAGE PROCESSING
PPTX
Image compression .
PPTX
Chapter 1 and 2 gonzalez and woods
PPTX
Region based segmentation
PPTX
Chapter 8 image compression
PPTX
PPTX
Hough Transform By Md.Nazmul Islam
Image Restoration (Order Statistics Filters)
IMAGE SEGMENTATION.
Histogram Processing
Spatial Filters (Digital Image Processing)
Erosion and dilation
Digital Image restoration
Vector quantization
Color Image Processing: Basics
05 histogram processing DIP
Digital Image Processing: Digital Image Fundamentals
COM2304: Digital Image Fundamentals - I
Compression: Images (JPEG)
HSI MODEL IN COLOR IMAGE PROCESSING
Image compression .
Chapter 1 and 2 gonzalez and woods
Region based segmentation
Chapter 8 image compression
Hough Transform By Md.Nazmul Islam
Ad

Viewers also liked (15)

PPTX
Image enhancement
PDF
A new approach for generalised unsharp masking alogorithm
PPT
Imagen Filtrado Espacial
PPTX
Contrast limited adaptive histogram equalization
PPT
Image enhancement
PDF
Histogram Equalization(Image Processing Presentation)
ODP
Image Processing with OpenCV
PDF
Level2 Unit 10 Brief
PPTX
Soil pollution
PPT
PPTX
Soil pollution seminar 1
PPT
Soil Pollution
PPTX
Soil pollution
PPTX
Soil pollution ppt
PPT
Spatial filtering
Image enhancement
A new approach for generalised unsharp masking alogorithm
Imagen Filtrado Espacial
Contrast limited adaptive histogram equalization
Image enhancement
Histogram Equalization(Image Processing Presentation)
Image Processing with OpenCV
Level2 Unit 10 Brief
Soil pollution
Soil pollution seminar 1
Soil Pollution
Soil pollution
Soil pollution ppt
Spatial filtering
Ad

Similar to Adaptive unsharp masking (20)

PPTX
Image enhancement
PPTX
image enhancement-POINT AND HISTOGRAM PROCESSING.pptx
PDF
Lecture 4
PPT
Spatial filtering
PDF
Digital Image Processing - Image Enhancement
PDF
Digital image processing - Image Enhancement (MATERIAL)
PPTX
Chapter 3 Image Enhanvement_ComputerVision.pptx
PPTX
2. filtering basics
PPTX
PPTX
Image enhancement lecture
PDF
Image enhancement
PPT
Digital Image Processing UNIT-2.ppt
PPT
Image enhancement ppt nal2
PDF
Lecture 7
PDF
DIP Lecture 7-9.pdf
PPTX
image enhancement image enhancement imag
PPTX
Image enhancement techniques
PDF
DIP_Lecture6.pdf. jdowjwdieehekehdjejrejwhehr
PDF
Image processing, Noise, Noise Removal filters
PPTX
imge enhncement sptil filtering55555.pptx
Image enhancement
image enhancement-POINT AND HISTOGRAM PROCESSING.pptx
Lecture 4
Spatial filtering
Digital Image Processing - Image Enhancement
Digital image processing - Image Enhancement (MATERIAL)
Chapter 3 Image Enhanvement_ComputerVision.pptx
2. filtering basics
Image enhancement lecture
Image enhancement
Digital Image Processing UNIT-2.ppt
Image enhancement ppt nal2
Lecture 7
DIP Lecture 7-9.pdf
image enhancement image enhancement imag
Image enhancement techniques
DIP_Lecture6.pdf. jdowjwdieehekehdjejrejwhehr
Image processing, Noise, Noise Removal filters
imge enhncement sptil filtering55555.pptx

Adaptive unsharp masking

  • 1. ADAPTIVE UNSHARP MASKING Digital Image Processing
  • 2. Contents • What is Unsharp Masking..? • Concept of Operation • Drawbacks • Adaption Algorithm • Advantages of Unsharp Masking
  • 3. Unsharp Masking • Unsharp masking (USM) is an image manipulation technique. • An unsharp mask cannot create additional detail, but it can greatly enhance the appearance of detail by increasing small-scale acutance (the edge contrast of an image). • Normally an "unsharp mask" is used to sharpen an image which can help us to emphasize texture and detail of the image.
  • 4. Concept of Operation • Normally in Unsharp Masking, a highpass filtered, scaled version of an image is added to the image itself. • This will improve the visual appearance of an image significantly by emphasizing its high frequency contents to enhance the edge and detail information in it. • Generally an unsharp mask is a filter that amplifies high- frequency components.
  • 5. • The enhanced image y(n,m) is obtained from the input image x(n,m) as y(n,m) = x(n,m) + ƛz(n,m) • where z(n,m) is the correction signal computed as the output of a linear high pass filter. • ƛ is the positive scaling factor that controls the level of contrast enhancement achieved at the output.
  • 6. hx hy 0 -1 0 0 0 0 0 2 0 -1 2 -1 0 -1 0 0 0 0 Zx=conv(x,hx) Zy=conv(x,hy) z(n,m) = [zx(n,m), zy(n,m)]T y(n,m) = x(n,m) + ƛz(n,m)
  • 7. Zx Zy Original Image(x) Output Image(y)
  • 8. Drawbacks • Even though this method is simple and works well in many applications, it suffers from two main drawbacks. i) The presence of the linear high pass filter makes the system extremely sensitive to noise. This results in perceivable and undesirable distortions in the images. ii) It enhances high-contrast areas much more than areas that do not exhibit high image dynamics. Consequently, some unpleasant overshoot artifacts may appear in the output image.
  • 9. Adaptive Unsharp Masking • In this approach, we introduce a variation of the basic Unsharp Masking scheme that contains an adaptive filter in the correction path. • The objective of the adaptive filter is to emphasize the medium-contrast details in the input image more than large- contrast details such as abrupt edges so as to avoid overshoot effects in the output image. • The adaptive filter does not perform a sharpening operation in smooth areas, and therefore the overall system is more robust to the presence of noise in the input images than traditional approaches.
  • 11. Here we go with the approach as below : y(n,m) = x(n,m) + ƛz(n,m) where ƛ is the positive scaling factor that controls the level of contrast enhancement achieved at the output. ƛ (n,m) = [ƛx(n,m), ƛy(n,m)]T y(n,m) =x(n,m) + ƛx(n,m)zx(n,m)+ ƛy(n,m)zy(n, m)
  • 12. Objective of this approach • In the previous equation, ƛx(n,m) and ƛy (n,m) are the scaling factors for the two components of the correction signal at the (n,m)th pixel. • Our objective is to recursively update these parameters using an adaptation algorithm so as to produce an output image whose local dynamics are increased in the detail areas and left unchanged in the uniform areas. • i,.e., little or no enhancement is applied in smooth areas of the image, maximum enhancement is applied in medium contrast areas, and large contrast areas are only moderately enhanced.
  • 13. Local dynamics • To determine this classification, we first measure the local dynamics of the image. • The local variance computed over a 3 × 3 pixel block is given by :
  • 14. g -1 -1 -1 -1 8 -1 -1 -1 -1
  • 15.
  • 17. • This process is iteratively repeated until we acquire the ‘error(e)’ in the desired range. • When the desired range of error is achieved, we stop the procedure and display the image y which is defined as y(n,m) =x(n,m) + ƛx(n,m)zx(n,m)+ ƛy(n,m)zy(n, m) Original Unsharped Image
  • 18. Advantages of Unsharp Masking • Enhanced apparent sharpness through “edge effects”. • An important advantage of unsharp masking is that it increases the sharpness of the prints. • Reduction of contrast on negatives of excessive contrast. • Improved print shadow detail. • Well known benefits in the printing and graphics arts industries.
  • 19. References: • http://www.ieee.org • Andrea Polesel, Giovanni Ramponi, and V. John Mathews “Image Enhancement via Adaptive Unsharp Masking”, IEEE TRANSACTIONS ON IMAGE PROCESSING • Google Images • MATLAB images