Image Segmentation by Clustering using Moments by, Dhiraj Sakumalla.

Slides:



Advertisements
Similar presentations
Applications of one-class classification
Advertisements

Segmentation by Morphological Watersheds
Clustering Basic Concepts and Algorithms
Clustering & image segmentation Goal::Identify groups of pixels that go together Segmentation.
Image Segmentation Image segmentation (segmentace obrazu) –division or separation of the image into segments (connected regions) of similar properties.
Lecture 07 Segmentation Lecture 07 Segmentation Mata kuliah: T Computer Vision Tahun: 2010.
Chapter 4: Linear Models for Classification
Assessment. Schedule graph may be of help for selecting the best solution Best solution corresponds to a plateau before a high jump Solutions with very.
Image Indexing and Retrieval using Moment Invariants Imran Ahmad School of Computer Science University of Windsor – Canada.
Quadtrees, Octrees and their Applications in Digital Image Processing
Shape Detection and Recognition. Outline Motivation – Biological Perception Segmentation Shape Detection and Analysis Overview Project – Markov Shape.
EE 7730 Image Segmentation.
Region Segmentation. Find sets of pixels, such that All pixels in region i satisfy some constraint of similarity.
Segmentation Divide the image into segments. Each segment:
Fast Image Replacement Using Multi-Resolution Approach Chih-Wei Fang and Jenn-Jier James Lien Robotics Lab Department of Computer Science and Information.
Visual Querying By Color Perceptive Regions Alberto del Bimbo, M. Mugnaini, P. Pala, and F. Turco University of Florence, Italy Pattern Recognition, 1998.
Computer Vision - A Modern Approach Set: Segmentation Slides by D.A. Forsyth Segmentation and Grouping Motivation: not information is evidence Obtain a.
Radial-Basis Function Networks
Entropy and some applications in image processing Neucimar J. Leite Institute of Computing
Introduction --Classification Shape ContourRegion Structural Syntactic Graph Tree Model-driven Data-driven Perimeter Compactness Eccentricity.
Chapter 10: Image Segmentation
Methods in Medical Image Analysis Statistics of Pattern Recognition: Classification and Clustering Some content provided by Milos Hauskrecht, University.
CS 376b Introduction to Computer Vision 04 / 02 / 2008 Instructor: Michael Eckmann.
Machine Vision for Robots
BACKGROUND LEARNING AND LETTER DETECTION USING TEXTURE WITH PRINCIPAL COMPONENT ANALYSIS (PCA) CIS 601 PROJECT SUMIT BASU FALL 2004.
Chapter 9.  Mathematical morphology: ◦ A useful tool for extracting image components in the representation of region shape.  Boundaries, skeletons,
Computer Vision Lecture 5. Clustering: Why and How.
G52IIP, School of Computer Science, University of Nottingham 1 Edge Detection and Image Segmentation.
Hierarchical Distributed Genetic Algorithm for Image Segmentation Hanchuan Peng, Fuhui Long*, Zheru Chi, and Wanshi Siu {fhlong, phc,
CSIE Dept., National Taiwan Univ., Taiwan
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.
DEVELOPMENT OF ALGORITHM FOR PANORAMA GENERATION, AND IMAGE SEGMENTATION FROM STILLS OF UNDERVEHICLE INSPECTION Balaji Ramadoss December,06,2002.
Cluster analysis 포항공과대학교 산업공학과 확률통계연구실 이 재 현. POSTECH IE PASTACLUSTER ANALYSIS Definition Cluster analysis is a technigue used for combining observations.
Digital Image Processing CCS331 Relationships of Pixel 1.
Quadtrees, Octrees and their Applications in Digital Image Processing.
Digital Image Processing Lecture 18: Segmentation: Thresholding & Region-Based Prof. Charlene Tsai.
November 13, 2014Computer Vision Lecture 17: Object Recognition I 1 Today we will move on to… Object Recognition.
Chapter 10, Part II Edge Linking and Boundary Detection The methods discussed in the previous section yield pixels lying only on edges. This section.
G52IVG, School of Computer Science, University of Nottingham 1 Edge Detection and Image Segmentation.
Data Extraction using Image Similarity CIS 601 Image Processing Ajay Kumar Yadav.
Segmentation: Region Based Methods Region-based methods –iterative methods based on region merging and/or splitting based on the degree of similarity of.
Pixel Connectivity Pixel connectivity is a central concept of both edge- and region- based approaches to segmentation The notation of pixel connectivity.
Introduction --Classification Shape ContourRegion Structural Syntactic Graph Tree Model-driven Data-driven Perimeter Compactness Eccentricity.
CS654: Digital Image Analysis
Computer Graphics and Image Processing (CIS-601).
2005/12/021 Content-Based Image Retrieval Using Grey Relational Analysis Dept. of Computer Engineering Tatung University Presenter: Tienwei Tsai ( 蔡殿偉.
Levels of Image Data Representation 4.2. Traditional Image Data Structures 4.3. Hierarchical Data Structures Chapter 4 – Data structures for.
Chap 7 Image Segmentation. Edge-Based Segmentation The edge information is used to determine boundaries of objects Pixel-based direct classification methods.
Image Segmentation by Histogram Thresholding Venugopal Rajagopal CIS 581 Instructor: Longin Jan Latecki.
Machine Learning Queens College Lecture 7: Clustering.
Digital Image Processing
Evaluation of Image Segmentation algorithms By Dr. Rajeev Srivastava.
Image Segmentation Image segmentation (segmentace obrazu)
November 5, 2013Computer Vision Lecture 15: Region Detection 1 Basic Steps for Filtering in the Frequency Domain.
Basic Theory (for curve 01). 1.1 Points and Vectors  Real life methods for constructing curves and surfaces often start with points and vectors, which.
Image Segmentation Nitin Rane. Image Segmentation Introduction Thresholding Region Splitting Region Labeling Statistical Region Description Application.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Color Image Segmentation Mentor : Dr. Rajeev Srivastava Students: Achit Kumar Ojha Aseem Kumar Akshay Tyagi.
May 2003 SUT Color image segmentation – an innovative approach Amin Fazel May 2003 Sharif University of Technology Course Presentation base on a paper.
Unsupervised Classification
Course : T Computer Vision
Computer Vision Lecture 13: Image Segmentation III
DIGITAL SIGNAL PROCESSING
Mean Shift Segmentation
Computer Vision Lecture 12: Image Segmentation II
Computer Vision Lecture 16: Texture II
Fall 2012 Longin Jan Latecki
Object Recognition Today we will move on to… April 12, 2018
A Block Based MAP Segmentation for Image Compression
Presentation transcript:

Image Segmentation by Clustering using Moments by, Dhiraj Sakumalla

What is segmentation? It is to distinguish objects from background Types of segmentation edge based region based In the present project we use region based segmentation.

Region based Segmentation A region-based method usually proceeds as follows: the image is partitioned into connected regions by grouping neighboring pixels of similar intensity levels. Adjacent regions are then merged under some criterion involving perhaps homogeneity or sharpness of region boundaries. Overstringent criteria create fragmentation; lenient ones overlook blurred boundaries and overmerge.

Clustering Clustering is a classification technique. It involves grouping similar data together. Given a vector of N measurements describing each pixel or group of pixels (i.e., region) in an image, a similarity of the measurement vectors and therefore their clustering in the N-dimensional measurement space implies similarity of the corresponding pixels or pixel groups. Therefore, clustering in measurement space is an indicator of similarity of image regions, and is used for segmentation purposes

Techniques used for clustering Kmeans Kmediods Hierarchical Here we use the KMeans algorithm.

Abstract Texture segmentation is one of the early steps towards identifying surfaces and objects in an image. In this paper a moment based texture segmentation algorithm is presented. The moments in small windows of the image are used as texture features which are then used to segment the textures. The algorithm has successfully segmented binary images as well as a number of gray level texture images.

The basic algorithm. Step 1: To break the image into blocks. Step 2: Compute moments for each block. Step 3: Obtain texture feature by applying a transformation..

Step 4: Perform an unsupervised clustering of the image. Step 5: Classify every pixel in the image according to its features

Techniques Used For computing texture features Moments Nonlinear Transformation For clustering KMeans

Computing the Moments Our algorithm uses the moments of an image to compute texture features. The (p+q)th order moments of a function of two variables f(x,y) with respect to the origin (0,0) are defined as :Σµ m pq = Σx Σy f(x,y) x p y q The central moments are defined as µ pq = Σx Σy (x-x’)p(y-y’) f(x,y)

where, x’ = m 10 /m 00 and y’ = m 01 /m 00 And the normalized moments are given by ŋ pq = µ pq /µ 00 In this way seven 2D moments are calculated and are applied to each block of the image.

Thus each block now has seven values in the output matrix. The moments alone are not sufficient to obtain good texture features in certain images. For this we apply a non-linear transformation function on each output.

which is given by, abs(tanh(M k (a,b) – M’)) where M k is the kth moment of a,b and M’ is the mean of the moments

Implemantation First the image is broken into blocks. The size of the block is important. As the window size gets larger, more global features are detected. This suggests that the choice of window size could possibly be tied to the contents of the image. The images with larger texture tokens would require larger window sizes whereas finer textures would require smaller windows. The size of the block taken here ranges between 3 and 8.

Kmeans Kmeans clustering finds a grouping of the measurements that minimizes the within-cluster sum-of- squares. In this method, each measurement, represented by a vector of length N, is grouped so that it is assigned to one of a fixed number of clusters. The number of clusters is determined by the number of seeds given as the second argument of KMeans. Measurements are transferred from one cluster to another when doing so decreases the within-cluster distances. The algorithm stops when no more transfers can occur. Here we will demonstrate the application of KMeans clustering to a simple image segmentation problem. Consider the problem of programmatically manipulating individual red beans in a fragment of the "beans" image.

Matlab function used for breaking into blocks is im2col We use sliding window as an option here.what this does is rather than take distinct wiindows of size m*n it takes in each pixel individually and and takes in the pixels around it. Each block thus obtained are processed by function

The second step is to compute the moments. The function mention above does this. It takes in each block and computes the seven moments of this. Then to this the non linear transformation is applied. the output of this would then be a matrix with dimensions m*n

where, m is the total number of pixels in the image n is the corresponding moment values to each pixel.

The third step is to cluster the output matrix from the above step. the clustering algorithm used here is the Kmeans algorithm. this algorithm requires us to specify the number of clusters required. the distance calculations between the centriod and the points are done using euclidean and mahalanobis distance

However it is observed that using Euclidean distance yields better results than Mahalanobis.

The final step in this project is to classify the pixels according to its cluster. This is done assigning a particular graylevel to each cluster and then remapping it to the original image. The matlab function used here is col2im which reconstructs the matrix from the blocks obtained from im2col.

Results The segmentation has been performed on various images both gray and color.

original 4 clusters

original 4 clusters

original block size 5 block size 10

original 3 clusters 2 clusters

original 4 clusters

original 5 clusters

original 4 clusters

orignal 4 clusters

orignal 4 clusters diff window

Original 4 clusters 5 clusters

Conclusions This project dealt with segmenting an image based on texture using moments. From the results of this project three things could be observed 1. The size of the initial block of image. The image initial block should be smaller for images with finer textures and bigger for images with coarse textures

2. The number of moments to be considered. In this projects seven moments were taken and the results were not very satisfactory. May be fewer moments like 5 or 6 would give a better result.

3. The output is dependent on the efficiency of the clustering algorithm and the number of clusters are to be given before hand.

References omputerVision/moment-paper.pdf gitalimage/UsersGuide/7.5.html gitalimage/UsersGuide/7.5.html