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

Similar documents
Lecture 6: Edge Detection

Lecture 7: Most Common Edge Detectors

Topic 4 Image Segmentation

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

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

Other Linear Filters CS 211A

Biomedical Image Analysis. Point, Edge and Line Detection

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

Image Processing. Traitement d images. Yuliya Tarabalka Tel.

Digital Image Procesing

Digital Image Processing. Image Enhancement - Filtering

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

Digital Image Processing COSC 6380/4393

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

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

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

Filtering and Enhancing Images

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

Chapter 10: Image Segmentation. Office room : 841

Segmentation

Neighborhood operations

Chapter 10 Image Segmentation. Yinghua He

Line, edge, blob and corner detection

Segmentation

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

(10) Image Segmentation

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

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

Chapter - 2 : IMAGE ENHANCEMENT

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

Segmentation and Grouping

Comparison between Various Edge Detection Methods on Satellite Image

Edges and Binary Images

Anno accademico 2006/2007. Davide Migliore

Edge Detection. EE/CSE 576 Linda Shapiro

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

convolution shift invariant linear system Fourier Transform Aliasing and sampling scale representation edge detection corner detection

An Algorithm for Blurred Thermal image edge enhancement for security by image processing technique

SIFT - scale-invariant feature transform Konrad Schindler

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

EECS490: Digital Image Processing. Lecture #19

Digital Image Analysis and Processing

CS5670: Computer Vision

CS4670: Computer Vision Noah Snavely

Image Analysis. Edge Detection

Babu Madhav Institute of Information Technology Years Integrated M.Sc.(IT)(Semester - 7)

Image Processing

Edge detection. Gradient-based edge operators

Edge and corner detection

5. Feature Extraction from Images

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

Edge Detection. CSC320: Introduction to Visual Computing Michael Guerzhoy. René Magritte, Decalcomania. Many slides from Derek Hoiem, Robert Collins

Linear Operations Using Masks

SRCEM, Banmore(M.P.), India

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

Classification of image operations. Image enhancement (GW-Ch. 3) Point operations. Neighbourhood operation

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

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

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

CS4733 Class Notes, Computer Vision

Feature Detectors - Canny Edge Detector

EECS490: Digital Image Processing. Lecture #22

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

Edge Detection Lecture 03 Computer Vision

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

Edge and Texture. CS 554 Computer Vision Pinar Duygulu Bilkent University

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

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

SIMULATIVE ANALYSIS OF EDGE DETECTION OPERATORS AS APPLIED FOR ROAD IMAGES

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

Image Analysis. Edge Detection

DIGITAL IMAGE PROCESSING

IT Digital Image ProcessingVII Semester - Question Bank

Edge detection. Winter in Kraków photographed by Marcin Ryczek

PROCESS > SPATIAL FILTERS

Digital Image Processing. Prof. P.K. Biswas. Department of Electronics & Electrical Communication Engineering

Comparison of Some Motion Detection Methods in cases of Single and Multiple Moving Objects

Idea. Found boundaries between regions (edges) Didn t return the actual region

Edge Detection CSC 767

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

Prof. Feng Liu. Winter /15/2019

What is an edge? Paint. Depth discontinuity. Material change. Texture boundary

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

Region-based Segmentation

Edge detection. Winter in Kraków photographed by Marcin Ryczek

Filtering Images. Contents

Point Operations and Spatial Filtering

Image Enhancement in Spatial Domain (Chapter 3)

Review of Filtering. Filtering in frequency domain

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

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

Improved Simplified Novel Method for Edge Detection in Grayscale Images Using Adaptive Thresholding

Chapter 3: Intensity Transformations and Spatial Filtering

Region & edge based Segmentation

Image Analysis Image Segmentation (Basic Methods)

EDGE BASED REGION GROWING

A Comparative Analysis of Thresholding and Edge Detection Segmentation Techniques

Perception. Autonomous Mobile Robots. Sensors Vision Uncertainties, Line extraction from laser scans. Autonomous Systems Lab. Zürich.

Concepts in. Edge Detection

Image gradients and edges April 11 th, 2017

Transcription:

Ulrik Söderström ulrik.soderstrom@tfe.umu.se 16 Feb 2011 Image Processing Segmentation

What is Image Segmentation? To be able to extract information from an image it is common to subdivide it into background and objects. This is called segmentation Segmentation: Split or separate an image into regions To facilitate recognition, understanding, and region of interests (ROI) processing 2

Region definition Define P as a function operating on a region. For a pixel x, P(x) = true if x satisfies a specific property After applying the function, the image becomes a binary image. Using pixel connectivity definitions, a region can be defined 3

Object definition An object is a set of pixels that have similar relations A certain intensity Situated in an area delimited by a discontinuity of intensity An intensity that has a statistical relation to it s surrounding 4

Overview of Segmentation Edge based segmentation Finding boundary between adjacent regions Threshold based segmentation Finding regions by grouping pixels with similar intensities Region based segmentation Finding regions directly using growing or splitting Motion based segmentation Finding regions by comparing successive frames of a video sequence to identify regions that correspond to moving objects 5

Example 1-dim 6

Example 1-dim 7

Example 1-dim 8

Example 1-dim 9

Example 1-dim 10

Example 1-dim 11

Example 1-dim 12

Example 1-dim 13

Example 1-dim 14

Example 1-dim 15

Discontinuities Point An area with high frequency information in both x and y directions Line An area with high frequency information in one direction and low frequency in the other. Intensity is the same on both sides of the line Edge Separates two areas with different intensities 16

What is an edge? Edges are places in an image that corresponds to object boundaries Edges are pixels where image brightness changes abruptly Brightness vs. Spatial Coordinates 17

What is an edge? An edge is a property attached to an individual pixel and is calculated from the image function behavior in a neighborhood of the pixel It is a vector variable (magnitude of the gradient, direction of an edge) 18

Type of edges Physical Edges Different objects in physical contact Spatial change in material properties Abrupt change in surface orientation Image Edges In general: Boundary between contrasting regions in image Specifically: Abrupt local change in brightness 19

Edge Detection in 1-D Edges can be characterized as either: local extrema of f (x) zero-crossings of f (x) f (x) f (x) f (x) 20

Directional Edge Detection f ( x, y) x T Horizontal operator (finds vertical edges) f ( x, y) y T Vertical operator (finds horizontal edges) f ( x, x y) f ( x, y) cosθ + sinθ y T finds edges perpendicular to the θ direction 21

Edge Detection Edge information in an image is found by looking at the relationship a pixel has with its neighborhoods If a pixel s gray-level value is similar to those around it, there is probably not an edge at that point If a pixel s has neighbors with widely varying gray levels, it may present an edge point 22

Edge Detection Methods Many are implemented with convolution masks and based on discrete approximations to differential operators Differential operations measure the rate of change in the image brightness function Some operators return orientation information. Other only return information about the existence of an edge at each point 23

Designing an edge detector Criteria for an optimal edge detector: Good detection: the optimal detector must minimize the probability of false positives (detecting spurious edges caused by noise), as well as that of false negatives (missing real edges) 24

Good localization: the edges detected must be as close as possible to the true edges Single response: the detector must return one point only for each true edge point; that is, minimize the number of local maxima around the true edge 25

26 Sobel Operator Looks for edges in both horizontal and vertical directions, then combine the information into a single metric The masks are as follows: Edge Magnitude = Edge Direction = 2 2 y x + x y 1 tan = 1 2 1 0 0 0 1 2 1 y = 1 0 1 2 0 2 1 0 1 x

27 Prewitt Operator Similar to the Sobel, with different mask coefficients: Edge Magnitude = Edge Direction = = 1 1 1 0 0 0 1 1 1 y = 1 0 1 1 0 1 1 0 1 x 2 2 y x + x y 1 tan 2 2 y x + x y 1 tan

Laplace Operator Finds edges in both directions directly The mask is: 0 1 0 1 4 1 0 1 0 28

Difference between filter kernels Prewitt & Sobel finds edges in one direction Laplace finds edges in both directions Sobel suppresses noise better than Prewitt Finds more edges 29

Noise Noise is always a factor in images Derivative operators are high-pass filters High-pass filters boost noise Noise create false edges Key concept: Build filters to respond to edges and suppress noise 30

Difference between filter kernels

Sobel operator

Prewitt operator

Laplace operator

Thresholding An object with intensity D o depicted on a background with intensity D b results in a bimodal histogram The area of a segmented object is T A = H ( D) dd 35

Thresholding Source image Histogram 36

Thresholding T=120 T=150 T=170 37

Thresholding The area of the segmented object is less sensitive to errors in threshold level if we chose T to the value where the histogram has a local minimum The local min values can be found by setting the derivative of the histogram equal to zero 38

Thresholding This could be done by applying convolution between [1-1] and the histogram vector This operation is noise sensitive (HPfiltering), so it s a good idea to first apply a LP- filter ( [1 1]/2 ) To make sure that the found value is at the minimum the second derivative can be studied 39

Thresholding f(x) f (x) 40

Thresholding Thresholding T=149 41

Thresholding The derivative method will fail if the hills in the histogram are situated to closely The possible reasons: The image is very noisy The difference in intensity between object and background is low 42

Threshold Segmentation 43

Effect of Illumination on Thresholding 44

Needs of Adaptive Threshold 45

Gray Scale Image Example 46

Histogram 47

Segmented Image 48

Adaptive thresholding Images having uneven illumination makes it difficult to segment using histogram This approach is to divide the original image into sub images and use the thresholding process to each subimage 49

Multimodal Histogram If there are three or more dominant modes in the image histogram, the histogram has to be partitioned by multiple thresholds Multilevel thresholding classifies a point (x,y) as belonging to one object class if T 1 <(x,y) <= T 2 to the other object class if f(x,y) >T 2 and to the background if f(x,y) <=T 1. 50

Gray Scale Image - Multimodal 51

Watershed segmentation A watershed is a ridge dividing areas drained by different rivers Pixel intensities are considered as heights A watershed line divides areas into parts which would collect water that falls on the area 52

Watershed segmentation Distance transform Calculate the geometrical distance to a height Gradients Strong gradients can be watershed lines Markers Internal & External All gradients can create too many regions Only use some gradients 53