DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)

Slides:



Advertisements
Similar presentations
Computational Biology, Part 23 Biological Imaging II Robert F. Murphy Copyright  1996, 1999, All rights reserved.
Advertisements

Spatial Filtering (Chapter 3)
Image Processing Lecture 4
Chapter 3 Image Enhancement in the Spatial Domain.
CDS 301 Fall, 2009 Image Visualization Chap. 9 November 5, 2009 Jie Zhang Copyright ©
Chapter 9: Morphological Image Processing
Introduction to Morphological Operators
Morphological Image Processing Md. Rokanujjaman Assistant Professor Dept of Computer Science and Engineering Rajshahi University.
Image Filtering CS485/685 Computer Vision Prof. George Bebis.
CS443: Digital Imaging and Multimedia Filters Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University Spring 2008 Ahmed Elgammal Dept.
Computer Vision Basics Image Terminology Binary Operations Filtering Edge Operators.
Image Analysis Preprocessing Arithmetic and Logic Operations Spatial Filters Image Quantization.
CS 376b Introduction to Computer Vision 02 / 26 / 2008 Instructor: Michael Eckmann.
Lecture 5. Morphological Image Processing. 10/6/20152 Introduction ► ► Morphology: a branch of biology that deals with the form and structure of animals.
Digital Image Processing CCS331 Relationships of Pixel 1.
Morphological Image Processing
Filtering and Enhancing Images. Major operations 1. Matching an image neighborhood with a pattern or mask 2. Convolution (FIR filtering)
Lecture 03 Area Based Image Processing Lecture 03 Area Based Image Processing Mata kuliah: T Computer Vision Tahun: 2010.
Image Processing Edge detection Filtering: Noise suppresion.
AdeptSight Image Processing Tools Lee Haney January 21, 2010.
Lecture Two for teens.
1 Regions and Binary Images Hao Jiang Computer Science Department Sept. 25, 2014.
Course 2 Image Filtering. Image filtering is often required prior any other vision processes to remove image noise, overcome image corruption and change.
Digital Image Processing CSC331 Morphological image processing 1.
Visual Computing Computer Vision 2 INFO410 & INFO350 S2 2015
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering March 9, 2004 Prof. Charlene Tsai.
CS654: Digital Image Analysis
CDS 301 Fall, 2008 Image Visualization Chap. 9 November 11, 2008 Jie Zhang Copyright ©
1 Mathematic Morphology used to extract image components that are useful in the representation and description of region shape, such as boundaries extraction.
Morphological Image Processing Robotics. 2/22/2016Introduction to Machine Vision Remember from Lecture 12: GRAY LEVEL THRESHOLDING Objects Set threshold.
TOPIC 12 IMAGE SEGMENTATION & MORPHOLOGY. Image segmentation is approached from three different perspectives :. Region detection: each pixel is assigned.
BYST Morp-1 DIP - WS2002: Morphology Digital Image Processing Morphological Image Processing Bundit Thipakorn, Ph.D. Computer Engineering Department.
Machine Vision ENT 273 Hema C.R. Binary Image Processing Lecture 3.
Image Visualization. Outline 9.1. Image Data Representation 9.2. Image Processing and Visualization 9.3. Basic Imaging Algorithms Contrast Enhancement.
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
Grauman Today: Image Filters Smooth/Sharpen Images... Find edges... Find waldo…
Lecture(s) 3-4. Morphological Image Processing. 3/13/20162 Introduction ► ► Morphology: a branch of biology that deals with the form and structure of.
Morphological Image Processing
Non-linear filtering Example: Median filter Replaces pixel value by median value over neighborhood Generates no new gray levels.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Image Enhancement in the Spatial Domain.
Image Subtraction Mask mode radiography h(x,y) is the mask.
Digital Image Processing CP-7008 Lecture # 09 Morphological Image Processing Fall 2011.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Digital Image Processing Lecture 10: Image Restoration
IMAGE ENHANCEMENT TECHNIQUES
ECE 692 – Advanced Topics in Computer Vision
HIT and MISS.
Introduction to Morphological Operators
Spatial Filtering - Enhancement
Image Enhancement.
Histogram Histogram is a graph that shows frequency of anything. Histograms usually have bars that represent frequency of occuring of data. Histogram has.
Fundamentals of Image Processing A Seminar on By Alok K. Watve
Image Enhancement in the Spatial Domain
Binary Image Analysis used in a variety of applications:
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
CS Digital Image Processing Lecture 5
Digital Image Fundamentals
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Linear filtering.
Digital Image Processing
Morphological Image Processing
Department of Computer Engineering
Binary Image Analysis: Part 2 Readings: Chapter 3:
Morphological Operators
Grey Level Enhancement
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
Digital Filters.
Binary Image Analysis used in a variety of applications:
Morphological Filters Applications and Extension Morphological Filters
Presentation transcript:

DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.) MANAS KUMAR RAY Department of Computer Application B.B.College,Asansol

Image definition Image definition: A 2D function obtained by sensing a scene F(x,y), F(x1,x2), F(x) F - intensity, grey level x,y - spatial co-ordinates No. of grey levels, L = 2B B = no. of bits

Monochromatic images Image processing - static images - time t is constant Monochromatic static image - continuous image function f(x,y) arguments - two co-ordinates (x,y) Digital image functions - represented by matrices co-ordinates = integer numbers Cartesian (horizontal x axis, vertical y axis) OR (row, column) matrices Monochromatic image function range lowest value - black highest value - white Limited brightness values = gray levels

Chromatic images Colour Represented by vector not scalar Red, Green, Blue (RGB) Green Red Green

Morphological Operators Structuring Element Erosion Dilation Opening Closing Outlook: Hit-and-miss Operation, Thinning, Thickening

Structuring Element (Kernel) Structuring Elements can have varying sizes Usually, element values are 0,1 and none(!) Structural Elements have an origin For thinning, other values are possible Empty spots in the Structuring Elements are don’t care’s! Box Disc

Erosion Erosion is the set of all points in the image, where the structuring element “fits into”. Consider each foreground pixel in the input image If the structuring element fits in, write a “1” at the origin of the structuring element! Simple application of pattern matching Erosion shrinks foreground, enlarges Background Input: Binary Image (Gray value) Structuring Element, containing only 1s

Example of erosion White = 0, black = 1, dual property, image as a result of erosion gets darker

Example: Erosion Erosion is an important morphological operation Applied Structuring Element:

Example for Erosion Input image 1 1 Structuring Element Output Image

Example for Erosion Input image 1 1 Structuring Element Output Image

Example for Erosion Input image 1 1 Structuring Element Output Image

Example for Erosion Input image 1 1 Structuring Element Output Image 1

Example for Erosion Input image 1 1 Structuring Element Output Image 1

Example for Erosion Input image 1 1 Structuring Element Output Image 1

Example for Erosion Input image 1 1 Structuring Element Output Image 1

Erosion on Gray Value Images Images get darker!

Counting Coins Counting coins is difficult because they touch each other Solution: Erosion separates them

Dilation Dilation is the set of all points in the image, where the structuring element “touches” the foreground. Consider each pixel in the input image If the structuring element touches the foreground image, write a “1” at the origin of the structuring element! Dilation enlarges foreground, shrinks background Input: Binary Image Structuring Element, containing only 1s!!

Example: Dilation Dilation is an important morphological operation Applied Structuring Element:

Example for Dilation 1 1 1 Input image Structuring Element 1 Structuring Element Output Image 1

Example for Dilation 1 1 1 Input image Structuring Element 1 Structuring Element Output Image 1

Example for Dilation 1 1 1 Input image Structuring Element 1 Structuring Element Output Image 1

Example for Dilation 1 1 1 Input image Structuring Element 1 Structuring Element Output Image 1

Example for Dilation 1 1 1 Input image Structuring Element 1 Structuring Element Output Image 1

Example for Dilation 1 1 1 Input image Structuring Element 1 Structuring Element Output Image 1

Example for Dilation 1 1 1 Input image Structuring Element 1 Structuring Element Output Image 1

Example for Dilation 1 1 1 Input image Structuring Element 1 Structuring Element Output Image 1

Dilation Example Image get lighter, more uniform intensity

Dilation on Gray Value Images More uniform intensity

Edge Detection Edge Detection Dilate input image Subtract input image from dilated image Edges remain

Opening Similar to Erosion Erosion next dilation Spot and noise removal Less destructive Erosion next dilation the same structuring element for both operations. Input: Binary Image Structuring Element, containing only 1s

Opening Structuring element: 3x3 square

Closing Similar to Dilation Removal of holes Tends to enlarge regions, shrink background Closing is defined as a Dilatation, followed by an Erosion using the same structuring element for both operations. Dilation next erosion Input: Binary Image Structuring Element, containing only 1s

Closing Structuring element: 3x3 square

Hit-and-Miss Brief Description General binary morphological operation that can be used to look for particular patterns in an image. A tool for shape detection Basic operation for binary morphology Almost all the other binary morphological operators can be derived from Hit-and-Miss Transform.

A: image, B: structuring element Thinning How It Works Thinning is the dual of thickening. Thickening the foreground is equivalent to thinning the background. The operator is normally applied repeatedly until it causes no further changes to the image. A: image, B: structuring element

Thinning

A: image, B: structuring element Thickening How It Works The thickened image consists of the original image plus any additional foreground pixels switched on by the hit-and-miss transform. Thickening is the dual of thinning. Thinning the foreground is equivalent to thickening the background. The operator is normally applied repeatedly until it causes no further changes to the image. c.f. The operations may only be applied for a limited number of iterations. A: image, B: structuring element

Filters We will mainly focus on two types of filters: Smoothing (low-pass) Sharpening (high-pass)

Smoothing Filters (low-pass) Useful for reducing noise and eliminating small details. The elements of the mask must be positive. Sum of mask elements is 1 (after normalization). Gaussian

Smoothing filters – Example input image smoothed image

Sharpening Filters (high-pass) Useful for highlighting fine details. The elements of the mask contain both positive and negative weights. Sum of mask elements is 0. 1st derivative of Gaussian 2nd derivative

Sharpening Filters - Example The results of sharpening might contain negative values (i.e., re-map them to [0, 255]) input image sharpened image (for better visualization, the original image is added to the sharpened image)

Common Smoothing Filters Averaging Gaussian Median filtering (non-linear)

Smoothing Filters: Averaging

Smoothing filters: Gaussian The weights are samples of a 2D Gaussian function: σ = 1.4 mask size is a function of σ:

Smoothing filters: Gaussian (cont’d) σ controls the amount of smoothing As σ increases, more samples must be obtained to represent the Gaussian function accurately. σ = 3

Smoothing filters: Gaussian (cont’d)

Smoothing Filters: Median Filtering (cont’d) Replace each pixel by the median in a neighborhood around the pixel. The size of the neighborhood controls the amount of smoothing.

Thank You