Image Processing. BITS Pilani. Dr Jagadish Nayak. Dubai Campus

Similar documents
Edge detection. Stefano Ferrari. Università degli Studi di Milano Elaborazione delle immagini (Image processing I)

EECS490: Digital Image Processing. Lecture #19

Chapter 10 Image Segmentation. Yinghua He

Biomedical Image Analysis. Point, Edge and Line Detection

Digital Image Processing. Image Enhancement - Filtering

Chapter 10: Image Segmentation. Office room : 841

Segmentation algorithm for monochrome images generally are based on one of two basic properties of gray level values: discontinuity and similarity.

Topic 4 Image Segmentation

PERFORMANCE ANALYSIS OF CANNY AND OTHER COMMONLY USED EDGE DETECTORS Sandeep Dhawan Director of Technology, OTTE, NEW YORK

Image Processing. Traitement d images. Yuliya Tarabalka Tel.

Digital Image Procesing

Lecture 7: Most Common Edge Detectors

Line, edge, blob and corner detection

Edge detection. Gradient-based edge operators

Outlines. Medical Image Processing Using Transforms. 4. Transform in image space

Edge and local feature detection - 2. Importance of edge detection in computer vision

Segmentation and Grouping

Lecture: Edge Detection

Other Linear Filters CS 211A

CS334: Digital Imaging and Multimedia Edges and Contours. Ahmed Elgammal Dept. of Computer Science Rutgers University

Chapter 3: Intensity Transformations and Spatial Filtering

Computer Vision. Image Segmentation. 10. Segmentation. Computer Engineering, Sejong University. Dongil Han

Image Segmentation Image Thresholds Edge-detection Edge-detection, the 1 st derivative Edge-detection, the 2 nd derivative Horizontal Edges Vertical

Image Processing

Lecture 6: Edge Detection

CS534: Introduction to Computer Vision Edges and Contours. Ahmed Elgammal Dept. of Computer Science Rutgers University

Neighborhood operations

Sharpening through spatial filtering

Multimedia Computing: Algorithms, Systems, and Applications: Edge Detection

Ulrik Söderström 16 Feb Image Processing. Segmentation

(10) Image Segmentation

Edge detection. Convert a 2D image into a set of curves. Extracts salient features of the scene More compact than pixels

JNTUWORLD. 4. Prove that the average value of laplacian of the equation 2 h = ((r2 σ 2 )/σ 4 ))exp( r 2 /2σ 2 ) is zero. [16]

Edge Detection. Announcements. Edge detection. Origin of Edges. Mailing list: you should have received messages

Comparison between Various Edge Detection Methods on Satellite Image

Computer Vision I. Announcement. Corners. Edges. Numerical Derivatives f(x) Edge and Corner Detection. CSE252A Lecture 11

SECTION 5 IMAGE PROCESSING 2

Digital Image Analysis and Processing

Edge Detection Lecture 03 Computer Vision

Computer Vision I. Announcements. Fourier Tansform. Efficient Implementation. Edge and Corner Detection. CSE252A Lecture 13.

Image Understanding Edge Detection

Filtering and Enhancing Images

Local Image preprocessing (cont d)

SURVEY ON IMAGE PROCESSING IN THE FIELD OF DE-NOISING TECHNIQUES AND EDGE DETECTION TECHNIQUES ON RADIOGRAPHIC IMAGES

Digital Image Processing COSC 6380/4393

EECS490: Digital Image Processing. Lecture #20

Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong)

Filtering Images. Contents

CS 490: Computer Vision Image Segmentation: Thresholding. Fall 2015 Dr. Michael J. Reale

C E N T E R A T H O U S T O N S C H O O L of H E A L T H I N F O R M A T I O N S C I E N C E S. Image Operations II

Final Review. Image Processing CSE 166 Lecture 18

EDGE BASED REGION GROWING

Edge Detection. CSE 576 Ali Farhadi. Many slides from Steve Seitz and Larry Zitnick

Image Analysis. Edge Detection

How and what do we see? Segmentation and Grouping. Fundamental Problems. Polyhedral objects. Reducing the combinatorics of pose estimation

Edge Detection. CS664 Computer Vision. 3. Edges. Several Causes of Edges. Detecting Edges. Finite Differences. The Gradient

Edge Detection. EE/CSE 576 Linda Shapiro

BIM472 Image Processing Image Segmentation

Introduction to Digital Image Processing

Image Enhancement in Spatial Domain (Chapter 3)

1. What are the derivative operators useful in image segmentation? Explain their role in segmentation.

EE795: Computer Vision and Intelligent Systems

CHAPTER 3 IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN

Edge Detection. Today s reading. Cipolla & Gee on edge detection (available online) From Sandlot Science

the most common approach for detecting meaningful discontinuities in gray level. we discuss approaches for implementing

Announcements. Edges. Last Lecture. Gradients: Numerical Derivatives f(x) Edge Detection, Lines. Intro Computer Vision. CSE 152 Lecture 10

Chapter - 2 : IMAGE ENHANCEMENT

Point Operations and Spatial Filtering

Image features. Image Features

Image Segmentation. Schedule. Jesus J Caban 11/2/10. Monday: Today: Image Segmentation Topic : Matting ( P. Bindu ) Assignment #3 distributed

Operators-Based on Second Derivative double derivative Laplacian operator Laplacian Operator Laplacian Of Gaussian (LOG) Operator LOG

Practical Image and Video Processing Using MATLAB

Lesson 6: Contours. 1. Introduction. 2. Image filtering: Convolution. 3. Edge Detection. 4. Contour segmentation

Image Analysis. Edge Detection

Digital Image Processing, 3rd ed.

What Are Edges? Lecture 5: Gradients and Edge Detection. Boundaries of objects. Boundaries of Lighting. Types of Edges (1D Profiles)

Feature Detectors - Sobel Edge Detector

CHAPTER 4 EDGE DETECTION TECHNIQUE

Anno accademico 2006/2007. Davide Migliore

Algorithms for Edge Detection and Enhancement for Real Time Images: A Comparative Study

Vehicle Image Classification using Image Fusion at Pixel Level based on Edge Image

EEM 463 Introduction to Image Processing. Week 3: Intensity Transformations

Sobel Edge Detection Algorithm

A Comparative Analysis of Thresholding and Edge Detection Segmentation Techniques

Concepts in. Edge Detection

CS 4495 Computer Vision. Linear Filtering 2: Templates, Edges. Aaron Bobick. School of Interactive Computing. Templates/Edges

Announcements. Edge Detection. An Isotropic Gaussian. Filters are templates. Assignment 2 on tracking due this Friday Midterm: Tuesday, May 3.

EECS490: Digital Image Processing. Lecture #22

ECEN 447 Digital Image Processing

CMPUT 206. Introduction to Digital Image Processing

Comparative Analysis of Various Edge Detection Techniques in Biometric Application

Edge Detection (with a sidelight introduction to linear, associative operators). Images

Digital Image Processing. Image Enhancement in the Spatial Domain (Chapter 4)

CS4733 Class Notes, Computer Vision

Edge detection. Goal: Identify sudden. an image. Ideal: artist s line drawing. object-level knowledge)

A Comparative Assessment of the Performances of Different Edge Detection Operator using Harris Corner Detection Method

Lecture 4: Image Processing

A Robust Method for Circle / Ellipse Extraction Based Canny Edge Detection

Lecture 3 - Intensity transformation

Point and Spatial Processing

Transcription:

Image Processing BITS Pilani Dubai Campus Dr Jagadish Nayak

Image Segmentation BITS Pilani Dubai Campus

Fundamentals Let R be the entire spatial region occupied by an image Process that partitions R into n sub-regions R1,R,R3.Rn, such that. 1. n R i R (Segmentation must be complete) i1. 3 4 5 R i is a connected set i 1,, 3, 4,...n (Points in the region must be connected in some predefined sense ) R i R j for all (Regions must be disjoint) and Q( R i ) TRUE for i 1,, 3,...,n (Property satisfied by all the pixels) Q( R i R j ) i FALSE for j i j any adjacent Two adjacent regions must be different in the sense predicate Q regions R i and R j

Fundamentals

METHODS There are two approaches Discontinuity based Identification of Isolated points Edges lines Similarity based Threshold operation Region growing Region splitting and merging

Detection of isolated points The Laplacian operator is given by f ( x, y ) x f y f The corresponding mask is 0 1 0 1-4 1 0 1 0 This is only for the vertical and horizontal directions Consider the one with diagonal direction, we get a mask

Detection of isolated points Apply this mask on the image, using spatial mask processing Example 1 1 1 1-8 1 1 1 1 4 7 6 1 1 1 4 7 6 3 5 4 1 1 1 3 4 0 3 4 5 6 6 4 3 5 4 1 1 1x4 1x7 1x6 1x -8x5 1x4 1x1 1x1 1x 1-8 1 1 1 1 Sum = 4+7+6+-40+4+1+1+ = -13

Detection of isolated points If the absolute value of sum is greater than some positive threshold value,then that value is considered to be a point. value is set to 1 and all the other values are set to 0 Threshold can be any value based on the selection Consider an example, where threshold value is 90% of the highest absolute value of the image.

Detection of isolated points X-ray image of the turbine blade Result of convolving with the mask Applying threshold to detect single point

Detection of lines Laplacian mask can be used The Laplacian, used for point detection, is isotropic and has no direction information. Detecting the lines in specific direction is of interest. Following masks are used for detecting lines -1-1 -1-1 -1-1 -1-1 -1-1 -1-1 -1-1 -1-1 -1-1 -1-1 -1-1 -1-1 Horizontal +45 o Vertical -45 o

Detection of lines Constant intensity area yield zero response Let R 1,R,R 3 and R 4 be the responses of the masks belongs to Horizontal, +45 o vertical, -45 o respectively. When the image is filtered using all these 4 masks If, at a given point in the image R k > R j, for all j k That point is said to be more likely associated with the linein the direction of the mask k Example, if at a point in the image, R 1 > R for j=,3,4 that particular point is said to be more likely associated with the horizontal line.

Detection of lines Let us apply Laplacian in the image. 1 1 1 1-8 1 1 1 1 Original image Magnitude section of the Laplacian. Positive and ve double line effect.

Detection of lines Absolute value of the Laplacian Positive value of the Laplacian Thinner lines considerably useful

Detection of lines Now let us apply an line detection operator, which detects horizontal lines. -1-1 -1-1 -1-1 Original image Result of processing with horizontal line detector mask

Detection of lines Zoomed view

Detection of lines Horizontal line detected image with all negative values set to zero. Horizontal line detected image with applied threshold

Detection of edges. Different types of edges 50 50 50 00 00 00 150 150 150 100 100 100 50 50 50 0 0 100 00 300 400 500 600 0 0 100 00 300 400 500 600 0 0 100 00 300 400 500 600

Detection of edges.

Detection of edges. Detects the presence of edge at a point in an image Zero crossings can be used for locating the centers of thick edges. Sign can be used to detect edge is in darker side or brighter side,produces two edges

Detection of edges. Profile without any noiise Profile with Gaussian noise with zero mean an 0.1 standard dev 0.1 std 10 std

Detection of edges As we have seen edges can be detected using first order or second order derivatives. Let us start with the first order derivatives Let us find the edge strength and direction at a location (x,y) in an image f. Let us define the gradient as g ) g f f x y This vector points in the direction of the greatest rate of change of f at location (x,y). f f, defined as grad( f vector x y

Detection of edges The magnitude (length) of vector M( x,y ) mag( f ) The image which we get is a gradient image g denoted as M(x,y) The direction of the gradient vector is given by the angle. ( x,y ) tan 1 g g x y x The direction of an edge at an arbitrary point (x,y) is orthogonal to the direction, α(x,y), of the gradient vector at any point. g f y ( measured w.r.t g x g x axis y )

Detection of edges Example Each square is a pixel Let the gray pixel be 0 and white pixel be 1. Let us get the partial derivative along x and y direction.

Detection of edges To get partial derivative in x direction Subtract the pixels in the top row of the neighborhood from the pixels in the bottom row We get g x 0 1 1 0 0 1 0 0 0 f ( 0 0 ) ( 0 1) ( 0 1) x

Detection of edges To get partial derivative in y direction Subtract the pixels in the left column from the pixels in the right column. 0 1 1 0 0 1 0 0 0 We get g x f ( 1 0 ) ( 1 0 ) ( 0 0 ) y

Detection of edges At the point of question, we get f g g M( x,y ) x y f f x y and ( x,y ) 45 o Which is same as 135 o measured from the +ve axis

Detection of edges Edge at a point is orthogonal to the gradient vector at that point. So direction of the angle of the edge in this example is (α-90o)=45o All edge points in the example shown below have same gradient so the entire segment is in the same direction.

Gradient operator Gradient is computed by partial derivatives f/ x and f/ y at every pixel location in the image. For a digital quantity partial derivative is given by f ( x,y ) g f ( x 1,y ) f ( x,y ) x x f ( x,y ) g f ( x,y 1) f ( x,y ) y y The above two equations can be implemented using 1D masks as

Gradient operator When the diagonal edge is required D mask is required Roberts cross-gradient operator is one of the first attempt. Consider 3x3 sub-image. z 1 z z 3 z 4 z 5 z 6 z 7 z 8 z 9 Roberts operator based on implementing the diagonal differences. f g ( z z ) x 9 5-1 0 0-1 x 0-1 -1 0 f g ( z z ) y 8 6 y Not useful for computing the edge direction. The mask which is symmetric bot the center point is preferred

Gradient operator Simplest 3x3 mask is f g ( z z z ) ( z z z ) x 7 8 9 7 8 9 x f g ( z z z ) ( z z z ) y 3 6 9 1 4 7 y Corresponding mask is called as Prewitt operator -1-1 1 0 0 0 1 1 1 A slight variation used weight of in the center coefficient -1-1 0 0 0 1 1-1 0 1-1 0 1-1 0 1-1 0 1-0 -1 0 1 Which is called as Sobel operator.

Gradient operator For the strongest responses along the diagonal direction, the modified Prewitt and Sobel masks are given by.

Gradient operator (Example) Original image (The intensity values scaled between [0 1] g x component of the sobel mask g y component of the sobel mask The gradient image g x + g y

Marr- Hildreth edge detector Earlier method does not makes use of edge characteristics or noise before applying the edge detection operator. Marr-Hildreth addresses this issue They developed operators which changes its size based on the blurry edges and sharply focused fine details. The operator, which fulfill this requirement is the filter G As we have seen earlier is Laplacian operator x y G is D Gaussian function G( x,y ) e Where σ is standard deviation x y

The expression for This expression is called as Laplacian of Gaussian (LoG) Marr- Hildreth edge detector G 4 1 1 y x y x y x y x y x e y x x,y ) G( e y e x e y y e x x y x,y ) G( x x,y ) G( x,y ) G(

Marr- Hildreth edge detector

Marr- Hildreth edge detector Marr-Hildreth algorithm consist of convolving the LoG filter with an input image, f(x,y) g( x,y ) [ G( x,y )] x,y ) Then, find the zero crossings of g(x,y) to determine the location of the edges in f(x,y). These are linear process, we can write above as g( x,y ) G( x,y ) This indicates, smooth the image first with a Gaussian filter and then compute the Laplacian of the result. f f ( ( x,y )

Marr- Hildreth edge detector Following are the steps used Step1: Filter the input image with an nxn Gaussian low pass filter obtained by sampling. G( x,y ) e x y Step: Compute Laplacian of the image resulting from above step using 3x3 mask 1 1 1 1-8 1 1 1 1 Step3: Find the zero crossings of the image from the above step.

Marr- Hildreth edge detector What should be the size of the Gaussian filter mask nxn, Most of the volume of Gaussian surface lies between ±3σ, so n is a smallest odd integer greater than or equal to 6σ Mask smaller than this will tend to truncate the LOG function. How do we find the zero crossings Consider 3x3 neighborhood across p, Zero crossing at p implies that signs of at least two of its opposing neighbor pixels must differ. + + - - p + + - -

Marr- Hildreth edge detector (Example) Original image

Marr- Hildreth edge detector (Example) Result of step 1 and, using σ=4 and n=5

Marr- Hildreth edge detector (Example) Zero crossings in 3x3 with a threshold value 0

Marr- Hildreth edge detector (Example) Result of using a threshold approximately equal to 4% of the maximum value of the LoG image.

The canny edge detector This complex algorithm is superior to the algorithms seen so far. It is based on the following objectives. Low error rate : edges are as close as possible to true edges. Edge point should be well localized : distance between the point marked as an edge by the detector and the center of the true edge should be minimum. Single edge point response : Detector should not identify multiple edge pixels where only a single edge point exist.

The canny edge detector

The canny edge detector