Image Processing Segmentation 1.Process of partitioning a digital image into multiple segments (sets of pixels). 2. Clustering pixels into salient image.

Slides:



Advertisements
Similar presentations
Spatial Filtering (Chapter 3)
Advertisements

Spatial Filtering.
EDGE DETECTION ARCHANA IYER AADHAR AUTHENTICATION.
Instructor: Mircea Nicolescu Lecture 6 CS 485 / 685 Computer Vision.
DREAM PLAN IDEA IMPLEMENTATION Introduction to Image Processing Dr. Kourosh Kiani
Sliding Window Filters and Edge Detection Longin Jan Latecki Computer Graphics and Image Processing CIS 601 – Fall 2004.
Image Segmentation Region growing & Contour following Hyeun-gu Choi Advisor: Dr. Harvey Rhody Center for Imaging Science.
6/9/2015Digital Image Processing1. 2 Example Histogram.
Chapter 10 Image Segmentation.
Machinen Vision and Dig. Image Analysis 1 Prof. Heikki Kälviäinen CT50A6100 Lectures 8&9: Image Segmentation Professor Heikki Kälviäinen Machine Vision.
EE663 Image Processing Edge Detection 2 Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Lappeenranta University of Technology (Finland)
Edge Detection Phil Mlsna, Ph.D. Dept. of Electrical Engineering
Segmentation (Section 10.2)
Chapter 10 Image Segmentation.
Lecture 2: Image filtering
The Segmentation Problem
Machinen Vision and Dig. Image Analysis 1 Prof. Heikki Kälviäinen CT50A6100 Lectures 8&9: Image Segmentation Professor Heikki Kälviäinen Machine Vision.
Edge Detection Hao Huy Tran Computer Graphics and Image Processing CIS 581 – Fall 2002 Professor: Dr. Longin Jan Latecki.
Chapter 10: Image Segmentation
G52IIP, School of Computer Science, University of Nottingham 1 Edge Detection and Image Segmentation.
Lecture 16 Image Segmentation 1.The basic concepts of segmentation 2.Point, line, edge detection 3.Thresh holding 4.Region-based segmentation 5.Segmentation.
University of Kurdistan Digital Image Processing (DIP) Lecturer: Kaveh Mollazade, Ph.D. Department of Biosystems Engineering, Faculty of Agriculture,
Chap. 9: Image Segmentation Jen-Chang Liu, Motivation Segmentation subdivides an image into its constituent regions or objects Example: 生物細胞在影像序列中的追蹤.
© by Yu Hen Hu 1 ECE533 Digital Image Processing Image Segmentation.
Introduction to Image Processing Grass Sky Tree ? ? Sharpening Spatial Filters.
Edges. Edge detection schemes can be grouped in three classes: –Gradient operators: Robert, Sobel, Prewitt, and Laplacian (3x3 and 5x5 masks) –Surface.
Introduction to Image Processing
Joonas Vanninen Antonio Palomino Alarcos.  One of the objectives of biomedical image analysis  The characteristics of the regions are examined later.
Chapter 10 Image Segmentation.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 10 Segmentation Chapter.
SHINTA P. Juli What are edges in an image? Edge Detection Edge Detection Methods Edge Operators Matlab Program.
Chapter 10, Part II Edge Linking and Boundary Detection The methods discussed in the previous section yield pixels lying only on edges. This section.
Chapter 4 Image Segmentation
Chapter 10, Part I.  Segmentation subdivides an image into its constituent regions or objects.  Image segmentation methods are generally based on two.
Chapter 10 Image Segmentation 國立雲林科技大學 電子工程系 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: ext. 4337
Spatial Filtering.
CS654: Digital Image Analysis Lecture 24: Introduction to Image Segmentation: Edge Detection Slide credits: Derek Hoiem, Lana Lazebnik, Steve Seitz, David.
EE 4780 Edge Detection.
COMP322/S2000/L171 Robot Vision System Major Phases in Robot Vision Systems: A. Data (image) acquisition –Illumination, i.e. lighting consideration –Lenses,
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Sejong Univ. Edge Detection Introduction Simple Edge Detectors First Order Derivative based Edge Detectors Compass Gradient based Edge Detectors Second.
Chapter 9: Image Segmentation
Evaluation of Image Segmentation algorithms By Dr. Rajeev Srivastava.
Edges and Lines Readings: Chapter 10:
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities May 2, 2005 Prof. Charlene Tsai.
Image Segmentation Prepared by:- Prof. T.R.Shah Mechatronics Engineering Department U.V.Patel College of Engineering, Ganpat Vidyanagar.
Lecture 04 Edge Detection Lecture 04 Edge Detection Mata kuliah: T Computer Vision Tahun: 2010.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Thresholding Foundation:. Thresholding In A: light objects in dark background To extract the objects: –Select a T that separates the objects from the.
Digital Image Processing
Digital Image Processing Week V Thurdsak LEAUHATONG.
Digital Image Processing CSC331
Chapter 10: Image Segmentation The whole is equal to the sum of its parts. Euclid The whole is greater than the sum of its parts. Max Wertheimer.
1 Edge Operators a kind of filtering that leads to useful features.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
EDGE DETECTION Dr. Amnach Khawne. Basic concept An edge in an image is defined as a position where a significant change in gray-level values occur. An.
Digital Image Processing (DIP)
Edge Detection Phil Mlsna, Ph.D. Dept. of Electrical Engineering Northern Arizona University.
Chapter 10 Image Segmentation
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Image Segmentation – Detection of Discontinuities
Image Segmentation – Edge Detection
Computer Vision Lecture 9: Edge Detection II
ECE 692 – Advanced Topics in Computer Vision
Lecture 10 Image sharpening.
a kind of filtering that leads to useful features
a kind of filtering that leads to useful features
Image Segmentation Image analysis: First step:
Digital Image Processing
Presentation transcript:

Image Processing Segmentation 1.Process of partitioning a digital image into multiple segments (sets of pixels). 2. Clustering pixels into salient image regions, i.e., regions corresponding to individual surfaces, objects, or natural parts of objects.

Image Processing Segmentation 3.Used to locate objects and boundaries (lines, curves, etc.) in images. 4.Process of assigning a label to every pixel in an image such that pixels with the same label share certain visual characteristics.

Image Processing Segmentation Two of the most common techniques: thresholdingand edge finding

Image Processing Segmentation Two of the most common techniques: thresholding edge finding

Image Processing B. Detection of discontinuities The objects in image: Three basic types of gray-level discontinuities in a digital image: points, lines. edges. The original image:

Image Processing The common way run a mask through the image R = f(x-1, y-1) * M 1 + f(x, y-1) * M 2 + f(x+1, y-1) * M 3 + f(x-1, y) * M 4 + f(x, y) * M 5 + f(x+1, y) * M 6 + f(x-1, y+1)* M 7 + f(x, y+1)* M 8 + f(x+1, y+1)* M 9

Image Processing The common way run a mask through the image R = f(x-1, y-1) * M 1 + f(x, y-1) * M 2 + f(x+1, y-1) * M 3 + f(x-1, y) * M 4 + f(x, y) * M 5 + f(x+1, y) * M 6 + f(x-1, y+1)* M 7 + f(x, y+1)* M 8 + f(x+1, y+1)* M 9 Select some threshold . If |R(x,y)|  then (x,y) to belong to object (background).

Image Processing Example a) b) Original and segmented images: a)Mask H 8 b)Threshold = 2 If R(x,y)  2 Then g(x,y) = 1 Else g(x,y) = 0 H8=H8=

Image Processing Line detection A masks are usualy used for detection of isolated points in an image are:

Image Processing Example of line detection The original I image and segmented image I o with horizotal mask

Image Processing Example of line detection The original I image and segmented image I 45 with 45 o mask

Image Processing Example of line detection The original I image and segmented image I v with vertical mask

Image Processing Example of line detection The original I image and segmented image I 135 with 135 o mask

Image Processing Example of line detection The original I image and segmented image I 8 with H 8 mask

Image Processing Formula: Set (x,y): R=0 for k=1 to 3 for q=1 to 3 R = R + f(x+k-2,y+q-2)*M(k,q) If R   Then g(x,y) = 255(object) Else g(x,y) = 0(non-object) 1  x  ImageWidth 1  y  ImageHeight

Image Processing Egde detection:

Image Processing Egde detection:

Image Processing Gradient-based procedure:

Image Processing Gradient-based procedure: The function f(x) is defined as horizontal gray-level of the image. The first derivative f’(x) is positive at the point of transition into and out of the ramp as moving from left to right along the profile.

Image Processing Gradient-based procedure: A point M is being an edge point if its two-dimention first order derivative is greater than a specified threshold. 

Image Processing Gradient-based procedure: If using the second- derivative to define the edge points in an image as the zero crossing of its second derivative.

Image Processing Gradient-based procedure: The signs of second derivative can be used to determine an edge pixel lies on the dark or light side of an edge

Image Processing Gradient-based procedure: The zero crossing property of the second derivative is quite useful for locating the centers of thick edges.

Image Processing Gradient-based procedure: The first is gradient vector of an image f(x, y), and The second is quantity (magnitude) of gradient vector

Image Processing The Prewitt gradient vector for detecting x-direction (y- direction) and the Prewitt gradient vectors for detecting diagonal edges: G x = (W 2 + W 3 + W 6 ) – (W 4 + W 7 + W 8 ) G y = (W 6 + W 8 + W 9 ) – (W 1 + W 2 + W 4 ) G x = (W 7 + W 8 + W 9 ) – (W 1 + W 2 + W 3 ) G y = (W 3 + W 6 + W 9 ) – (W 1 + W 4 + W 7 )

Image Processing The general formula for i = 2 to Height-1 for j = 2 to Width-1 { t1 = 0 t2 = 0 for p = 1 to 3 for q = 1 to 3 { t1 = t1 + G 1 [p, q] * f[i+p-2, j+q-2] t2 = t2 + G 2 [p, q] * f[i+p-2, j+q-2]} ts = Abs(t1) + Abs(t2) if ts >  thenQ[i,j] = 1 elseQ[i,j] = 0 }}

Image Processing Example W For the window W from image I, caculating the value R(3,3) = |Dx*W| + |Dy*W| = |-6+12| + |-6+12| = 12 For all pixels of I, except boundary of I, we have matrix R: If using threshold at 10:

Image Processing The Prewitt gradient vector for detecting x-direction (y- direction) and the Prewitt gradient vectors for detecting diagonal edges:

Image Processing The Sobel gradient vector for detecting x- direction and y-direction edges: G 1 = (W 2 + 2W 3 + W 6 ) – (W 4 + 2W 7 + W 8 ) G 2 = (W 6 + 2W 9 + W 8 ) – (W 2 + 2W 1 + W 4 ) G x = (W 7 + 2W 8 + W 9 ) – (W 1 + 2W 2 + W 3 ) G y = (W 3 + 2W 6 + W 9 )– (W 1 + 2W 4 + W 7 ) The Sobel gradient vector for detecting diagonal edges :

Image Processing ExamplesofSobelfilter

Second-order derivative: The Laplacian

Image Processing Second-order derivative: The Laplacian The Laplacian is not used in its original form for edge detection (because of sensitive to noise). The Laplacian is combined with smoothing as a precursor to finding edges via zero-crossing.