Image Segmentation. Introduction The purpose of image segmentation is to partition an image into meaningful regions with respect to a particular application.

Slides:



Advertisements
Similar presentations
Image Segmentation Longin Jan Latecki CIS 601. Image Segmentation Segmentation divides an image into its constituent regions or objects. Segmentation.
Advertisements

Texture. Limitation of pixel based processing Edge detection with different threshold.
November 12, 2013Computer Vision Lecture 12: Texture 1Signature Another popular method of representing shape is called the signature. In order to compute.
E.G.M. PetrakisImage Segmentation1 Segmentation is the process of partitioning an image into regions –region: group of connected pixels with similar properties.
Clustering & image segmentation Goal::Identify groups of pixels that go together Segmentation.
Automatic Thresholding
LING 111 Teaching Demo By Tenghui Zhu Introduction to Edge Detection Image Segmentation.
Image Segmentation Image segmentation (segmentace obrazu) –division or separation of the image into segments (connected regions) of similar properties.
電腦視覺 Computer and Robot Vision I Chapter2: Binary Machine Vision: Thresholding and Segmentation Instructor: Shih-Shinh Huang 1.
Computer Vision Lecture 16: Region Representation
Segmentation and Region Detection Defining regions in an image.
Content Based Image Retrieval
Lecture 6 Image Segmentation
EE 7730 Image Segmentation.
Chapter 10 Image Segmentation.
Course Website: Digital Image Processing Image Segmentation: Thresholding.
1 Learning to Detect Objects in Images via a Sparse, Part-Based Representation S. Agarwal, A. Awan and D. Roth IEEE Transactions on Pattern Analysis and.
Segmentation Divide the image into segments. Each segment:
Chapter 10 Image Segmentation.
CSE 803 Fall 2008 Stockman1 Ch 10 Image Segmentation Ideally, partition an image into regions corresponding to real world objects.
CS292 Computational Vision and Language Visual Features - Colour and Texture.
CS292 Computational Vision and Language Segmentation and Region Detection.
Thresholding Thresholding is usually the first step in any segmentation approach We have talked about simple single value thresholding already Single value.
DIGITAL IMAGE PROCESSING Instructors: Dr J. Shanbehzadeh M.Yekke Zare M.Yekke Zare ( J.Shanbehzadeh M.Yekke Zare )
Context-dependent Detection of Unusual Events in Videos by Geometric Analysis of Video Trajectories Longin Jan Latecki
Image processing Lecture 4.
Tal Mor  Create an automatic system that given an image of a room and a color, will color the room walls  Maintaining the original texture.
Image Segmentation CIS 601 Fall 2004 Longin Jan Latecki.
Image Segmentation by Clustering using Moments by, Dhiraj Sakumalla.
Image segmentation by clustering in the color space CIS581 Final Project Student: Qifang Xu Advisor: Dr. Longin Jan Latecki.
Chapter 10: Image Segmentation
Digital Image Processing In The Name Of God Digital Image Processing Lecture8: Image Segmentation M. Ghelich Oghli By: M. Ghelich Oghli
CS 6825: Binary Image Processing – binary blob metrics
Lecture 6-1CS251: Intro to AI/Lisp II I can see clearly now May 4th, 1999.
Texture. Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result.
Segmentation.
CSE 185 Introduction to Computer Vision Pattern Recognition 2.
Chap. 9: Image Segmentation Jen-Chang Liu, Motivation Segmentation subdivides an image into its constituent regions or objects Example: 生物細胞在影像序列中的追蹤.
Digital Image Processing Lecture 18: Segmentation: Thresholding & Region-Based Prof. Charlene Tsai.
Chapter 10 Image Segmentation.
Image Segmentation Chapter 10.
Chapter 10, Part II Edge Linking and Boundary Detection The methods discussed in the previous section yield pixels lying only on edges. This section.
EECS 274 Computer Vision Segmentation by Clustering II.
Pixel Connectivity Pixel connectivity is a central concept of both edge- and region- based approaches to segmentation The notation of pixel connectivity.
Image Segmentation and Edge Detection Digital Image Processing Instructor: Dr. Cheng-Chien LiuCheng-Chien Liu Department of Earth Sciences National Cheng.
CS654: Digital Image Analysis
Computer Graphics and Image Processing (CIS-601).
Image Segmentation by Histogram Thresholding Venugopal Rajagopal CIS 581 Instructor: Longin Jan Latecki.
Image Segmentation Dr. Abdul Basit Siddiqui. Contents Today we will continue to look at the problem of segmentation, this time though in terms of thresholding.
Digital Image Processing
Machine Vision ENT 273 Regions and Segmentation in Images Hema C.R. Lecture 4.
Evaluation of Image Segmentation algorithms By Dr. Rajeev Srivastava.
Image Segmentation Image segmentation (segmentace obrazu)
Thresholding Foundation:. Thresholding In A: light objects in dark background To extract the objects: –Select a T that separates the objects from the.
1 Review and Summary We have covered a LOT of material, spending more time and more detail on 2D image segmentation and analysis, but hopefully giving.
Color Image Segmentation Mentor : Dr. Rajeev Srivastava Students: Achit Kumar Ojha Aseem Kumar Akshay Tyagi.
Machine Vision ENT 273 Lecture 4 Hema C.R.
IMAGE SEGMENTATION USING THRESHOLDING
COMP 9517 Computer Vision Segmentation 7/2/2018 COMP 9517 S2, 2017.
DIGITAL SIGNAL PROCESSING
Image Segmentation – Edge Detection
Mean Shift Segmentation
Computer Vision Lecture 16: Texture II
Fall 2012 Longin Jan Latecki
Digital Image Processing
Ch 10 Image Segmentation Ideally, partition an image into regions corresponding to real world objects. CSE 803 Fall 2012.
Chapter 10 – Image Segmentation
Image Segmentation.
Image Segmentation.
Presentation transcript:

Image Segmentation

Introduction The purpose of image segmentation is to partition an image into meaningful regions with respect to a particular application The segmentation is based on measurements taken from the image and might be greylevel, colour, texture, depth or motion 2

Image Segmentation Segmentation divides an image into its constituent regions or objects. Segmentation of non trivial images is one of the difficult task in image processing. Still under research. Segmentation accuracy determines the eventual success or failure of computerized analysis procedure.

Segmentation Algorithms Segmentation algorithms are based on one of two basic properties of intensity values discontinuity and similarity. First category is to partition an image based on abrupt changes in intensity, such as edges in an image. Second category are based on partitioning an image into regions that are similar according to a predefined criteria. Histogram thresholding approach falls under this category.

 Domain spaces  spatial domain (row-column (rc) space)  histogram spaces  color space  other complex feature space

image segmentation Applications of image segmentation include Identifying objects in a scene for object-based measurements such as size and shape Identifying objects in a scene for object-based measurements such as size and shape Identifying objects in a moving scene for object-based video compression (MPEG4) Identifying objects in a moving scene for object-based video compression (MPEG4) Identifying objects which are at different distances from a sensor using depth measurements from a laser range finder enabling path planning for a mobile robots Identifying objects which are at different distances from a sensor using depth measurements from a laser range finder enabling path planning for a mobile robots 6

Example 1 Segmentation based on greyscale Segmentation based on greyscale Very simple ‘model’ of greyscale leads to inaccuracies in object labelling Very simple ‘model’ of greyscale leads to inaccuracies in object labelling 7

Example 2 Segmentation based on texture Segmentation based on texture Enables object surfaces with varying patterns of grey to be segmented Enables object surfaces with varying patterns of grey to be segmented 8

9

Example 3 Segmentation based on motion Segmentation based on motion The main difficulty of motion segmentation is that an intermediate step is required to (either implicitly or explicitly) estimate an optical flow field The main difficulty of motion segmentation is that an intermediate step is required to (either implicitly or explicitly) estimate an optical flow field The segmentation must be based on this estimate and not, in general, the true flow The segmentation must be based on this estimate and not, in general, the true flow 10

11

Example 4 Segmentation based on depth Segmentation based on depth This example shows a range image, obtained with a laser range finder This example shows a range image, obtained with a laser range finder A segmentation based on the range (the object distance from the sensor) is useful in guiding mobile robots A segmentation based on the range (the object distance from the sensor) is useful in guiding mobile robots 12

Introduction to image segmentation 13 Original image Range image Segmented image

Histograms Histogram are constructed by splitting the range of the data into equal-sized bins (called classes). Then for each bin, the number of points from the data set that fall into each bin are counted. Vertical axis: Frequency (i.e., pixel counts for each bin) Horizontal axis: Response variable In image histograms the pixels form the horizontal axis

Thresholding - Foundation Suppose that the gray-level histogram corresponds to an image f(x,y) composed of dark objects on the light background, in such a way that object and background pixels have gray levels grouped into two dominant modes. One obvious way to extract the objects from the background is to select a threshold ‘T’ that separates these modes. Then any point (x,y) for which f(x,y) < T is called an object point, otherwise, the point is called a background point.

Example

Gray Scale Image - bimodal Image of a Finger Print with light background

Segmented Image Image after Segmentation

Bimodal Histogram If two dominant modes characterize the image histogram, it is called a bimodal histogram. Only one threshold is enough for partitioning the image. If for example an image is composed of two types of dark objects on a light background, three or more dominant modes characterize the image histogram.

Multimodal Histogram In such a case the histogram has to be partitioned by multiple thresholds. Multilevel thresholding classifies a point (x,y) as belonging to one object class if T1 < (x,y) <= T2, if T1 < (x,y) <= T2, to the other object class to the other object class if f(x,y) > T2 if f(x,y) > T2 and to the background and to the background if f(x,y) <= T1. if f(x,y) <= T1.

Thresholding Bimodal Histogram Basic Global Thresholding: 1)Select an initial estimate for T 1)Select an initial estimate for T 2)Segment the image using T. This will produce two groups of pixels. G1 consisting of all pixels with gray level values >T and G2 consisting of pixels with values T and G2 consisting of pixels with values <=T. 3)Compute the average gray level values mean1 and mean2 for the pixels in regions G1 and G2. 3)Compute the average gray level values mean1 and mean2 for the pixels in regions G1 and G2. 4)Compute a new threshold value 4)Compute a new threshold value T=(1/2)(mean1 +mean2) T=(1/2)(mean1 +mean2) 5)Repeat steps 2 through 4 until difference in T in successive iterations is smaller than a predefined parameter T0. 5)Repeat steps 2 through 4 until difference in T in successive iterations is smaller than a predefined parameter T0. Basic 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 above said thresholding process to each of the sub images.

Thresholding multimodal histograms A method based on Discrete Curve Evolution is to find thresholds in the histogram. The histogram is treated as a polyline and is simplified until a few vertices remain. Thresholds are determined by vertices that are local minima.

Discrete Curve Evolution (DCE) u v w u v w It yields a sequence: P=P 0,..., P m P i+1 is obtained from P i by deleting the vertices of P i that have minimal relevance measure K(v, P i ) = |d(u,v)+d(v,w)-d(u,w)| >

Example

Thresholding – Colour Images In colour images each pixel is characterized by three RGB values. Here we construct a 3D histogram, and the basic procedure is analogous to the method used for one variable. Histograms plotted for each of the colour values and threshold points are found.

Displaying objects in the Segmented Image The objects can be distinguished by assigning an arbitrary pixel value or average pixel value to the regions separated by thresholds.

Experiments by Venugual Rajagupal Type of images used: 1) Two Gray scale image having bimodal histogram structure. 1) Two Gray scale image having bimodal histogram structure. 2) Gray scale image having multi-modal histogram structure. 2) Gray scale image having multi-modal histogram structure. 3) Colour image having bimodal histogram structure. 3) Colour image having bimodal histogram structure.

Gray Scale Image - bimodal Image of rice with black background

Segmented Image Image after segmentation Image histogram of rice

Gray Scale Image - Multimodal Original Image of lena

Multimodal Histogram Histogram of lena

Segmented Image Image after segmentation – we get a outline of her face, hat, shadow etc

Colour Image - bimodal Colour Image having a bimodal histogram

Histogram Histograms for the three colour spaces

Segmented Image Segmented image – giving us the outline of her face, hand etc

Clustering in Color Space Each image point is mapped to a point in a color space, e.g.: Color(i, j) = (R (i, j), G(i, j), B(i, j)) The points in the color space are grouped to clusters. The clusters are then mapped back to regions in the image.

Results 1 Mnp: 30, percent 0.05, cluster number 4 Mnp : 20, percent 0.05, cluster number 7 Original pictures segmented pictures

CSE 803 Fall 2008 Stockman38 K-means clustering as before: vectors can contain color+texture

CSE 803 Fall 2008 Stockman39 K-means

CSE 803 Fall 2008 Stockman40 Segments formed by K-means

CSE 803 Fall 2008 Stockman 41 Segmentation via region-growing (aggregation) Pixels, or patches, at the lowest level are combined when similar in a hierarchical fashion

CSE 803 Fall 2008 Stockman42 Decision: combine neighbors? Neighboring pixel or region

CSE 803 Fall 2008 Stockman43 Aggregation decision

CSE 803 Fall 2008 Stockman44 Representation of regions

CSE 803 Fall 2008 Stockman45 Chain codes for boundaries

CSE 803 Fall 2008 Stockman46 Quad trees divide into quadrants M=mixed; E=empty; F=full

CSE 803 Fall 2008 Stockman47 Can segment 3D images also Oct trees subdivide into 8 octants Same coding: M, E, F used Software available for doing 3D image processing and differential equations using octree representation. Can achieve large compression factor.

48 Conclusion Segmentation algorithms generally are based on one of 2 basis properties of intensity values discontinuity : to partition an image based on sharp changes in intensity (such as edges) discontinuity : to partition an image based on sharp changes in intensity (such as edges) similarity : to partition an image into regions that are similar according to a set of predefined criteria. similarity : to partition an image into regions that are similar according to a set of predefined criteria.