Computer Graphics and Image Processing (CIS-601).

Slides:



Advertisements
Similar presentations
Face Recognition Sumitha Balasuriya.
Advertisements

1 Machine Learning: Lecture 10 Unsupervised Learning (Based on Chapter 9 of Nilsson, N., Introduction to Machine Learning, 1996)
Principal Component Analysis (PCA) for Clustering Gene Expression Data K. Y. Yeung and W. L. Ruzzo.
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.
Image Denoising using Locally Learned Dictionaries Priyam Chatterjee Peyman Milanfar Dept. of Electrical Engineering University of California, Santa Cruz.
Relevance Feedback Content-Based Image Retrieval Using Query Distribution Estimation Based on Maximum Entropy Principle Irwin King and Zhong Jin Nov
Content Based Image Clustering and Image Retrieval Using Multiple Instance Learning Using Multiple Instance Learning Xin Chen Advisor: Chengcui Zhang Department.
EE 290A: Generalized Principal Component Analysis Lecture 6: Iterative Methods for Mixture-Model Segmentation Sastry & Yang © Spring, 2011EE 290A, University.
EE 7730 Image Segmentation.
1Ellen L. Walker Segmentation Separating “content” from background Separating image into parts corresponding to “real” objects Complete segmentation Each.
© University of Minnesota Data Mining for the Discovery of Ocean Climate Indices 1 CSci 8980: Data Mining (Fall 2002) Vipin Kumar Army High Performance.
Segmentation and Clustering. Segmentation: Divide image into regions of similar contentsSegmentation: Divide image into regions of similar contents Clustering:
University of CreteCS4831 The use of Minimum Spanning Trees in microarray expression data Gkirtzou Ekaterini.
Segmentation Divide the image into segments. Each segment:
Image Segmentation. Introduction The purpose of image segmentation is to partition an image into meaningful regions with respect to a particular application.
Slide 1 EE3J2 Data Mining Lecture 16 Unsupervised Learning Ali Al-Shahib.
Clustering.
Segmentation and Clustering. Déjà Vu? Q: Haven’t we already seen this with snakes?Q: Haven’t we already seen this with snakes? A: no, that was about boundaries,
Feature Subset Selection using Minimum Cost Spanning Trees Mike Farah Supervisor: Dr. Sid Ray.
Computer Vision I Instructor: Prof. Ko Nishino. Today How do we recognize objects in images?
Smart Traveller with Visual Translator for OCR and Face Recognition LYU0203 FYP.
Clustering Ram Akella Lecture 6 February 23, & 280I University of California Berkeley Silicon Valley Center/SC.
Thresholding Thresholding is usually the first step in any segmentation approach We have talked about simple single value thresholding already Single value.
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 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.
CSE 185 Introduction to Computer Vision Pattern Recognition.
Machine Vision for Robots
BACKGROUND LEARNING AND LETTER DETECTION USING TEXTURE WITH PRINCIPAL COMPONENT ANALYSIS (PCA) CIS 601 PROJECT SUMIT BASU FALL 2004.
Image Segmentation Seminar III Xiaofeng Fan. Today ’ s Presentation Problem Definition Problem Definition Approach Approach Segmentation Methods Segmentation.
Hierarchical Distributed Genetic Algorithm for Image Segmentation Hanchuan Peng, Fuhui Long*, Zheru Chi, and Wanshi Siu {fhlong, phc,
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.
CSE 185 Introduction to Computer Vision Pattern Recognition 2.
Image Classification 영상분류
Cluster analysis 포항공과대학교 산업공학과 확률통계연구실 이 재 현. POSTECH IE PASTACLUSTER ANALYSIS Definition Cluster analysis is a technigue used for combining observations.
Remote Sensing Supervised Image Classification. Supervised Image Classification ► An image classification procedure that requires interaction with the.
Chapter 10, Part II Edge Linking and Boundary Detection The methods discussed in the previous section yield pixels lying only on edges. This section.
Data Extraction using Image Similarity CIS 601 Image Processing Ajay Kumar Yadav.
Map of the Great Divide Basin, Wyoming, created using a neural network and used to find likely fossil beds See:
MACHINE LEARNING 8. Clustering. Motivation Based on E ALPAYDIN 2004 Introduction to Machine Learning © The MIT Press (V1.1) 2  Classification problem:
Unsupervised Learning. Supervised learning vs. unsupervised learning.
Digital Image Processing
Non-Photorealistic Rendering and Content- Based Image Retrieval Yuan-Hao Lai Pacific Graphics (2003)
Levels of Image Data Representation 4.2. Traditional Image Data Structures 4.3. Hierarchical Data Structures Chapter 4 – Data structures for.
Cluster Analysis Potyó László. Cluster: a collection of data objects Similar to one another within the same cluster Similar to one another within the.
By Timofey Shulepov Clustering Algorithms. Clustering - main features  Clustering – a data mining technique  Def.: Classification of objects into sets.
Image Segmentation in Color Space By Anisa Chaudhary.
A NOVEL METHOD FOR COLOR FACE RECOGNITION USING KNN CLASSIFIER
Supervisor: Nakhmani Arie Semester: Winter 2007 Target Recognition Harmatz Isca.
CSSE463: Image Recognition Day 23 Midterm behind us… Midterm behind us… Foundations of Image Recognition completed! Foundations of Image Recognition completed!
Chapter 13 (Prototype Methods and Nearest-Neighbors )
Digital Image Processing
Cluster Analysis Dr. Bernard Chen Assistant Professor Department of Computer Science University of Central Arkansas.
Robotics Chapter 6 – Machine Vision Dr. Amit Goradia.
Non-parametric Methods for Clustering Continuous and Categorical Data Steven X. Wang Dept. of Math. and Stat. York University May 13, 2010.
Color Image Segmentation Mentor : Dr. Rajeev Srivastava Students: Achit Kumar Ojha Aseem Kumar Akshay Tyagi.
Cluster Analysis What is Cluster Analysis? Types of Data in Cluster Analysis A Categorization of Major Clustering Methods Partitioning Methods.
Unsupervised Learning
Scatter-plot Based Blind Estimation of Mixed Noise Parameters
Introduction to Data Mining
CSSE463: Image Recognition Day 21
Map of the Great Divide Basin, Wyoming, created using a neural network and used to find likely fossil beds See:
Fall 2012 Longin Jan Latecki
Object Recognition Today we will move on to… April 12, 2018
Fast color texture recognition using chromaticity moments
Text Categorization Berlin Chen 2003 Reference:
CSSE463: Image Recognition Day 23
EM Algorithm and its Applications
Presentation transcript:

Computer Graphics and Image Processing (CIS-601)

Image Segmentation by Clustering (Using Mahalanobis Distance) - Manjit Chintapalli

What is Image Segmentation ? To humans, an image is not just a random collection of pixels; it is a meaningful arrangement of regions and objects. There also exits a variety of images: natural scenes, paintings, etc. Despite the large variations of these images, humans have no problem to interpret them.

Image Segmentation ? (Contd..) Image segmentation is the first step in image analysis and pattern recognition. It is a critical and essential component of image analysis system, is one of the most difficult tasks in image processing, and determines the quality of the final result of analysis.

The Process… Image segmentation is the process of dividing an image into different regions such that each region is homogeneous.

Image Segmentation methods

Image segmentation methods can be categorized as follows (this is not an exhaustive list): Histogram thresholding Edge-based approaches Region-based approaches Hybrid: consider both edges and regions.

Continued… Segmentation of texture by PCA Segmentation of texture with moments

Color Image Segmentation Image segmentation based on color Image segmentation based on color We use clustering to segment an image according to color features We use clustering to segment an image according to color features

Clustering ? Clustering is a common step to get a segmentation In the data space, clusters are regarded as regions of similar data points

Clustering…. Similar data points grouped together into clusters.

Clustering… Most popular clustering algorithms suffer from two major drawbacks First, the number of clusters is predefined, which makes them inadequate for batch processing of huge image databases Secondly, the clusters are represented by their centroid and built using an Euclidean distance therefore inducing generally an hyperspheric cluster shape, which makes them unable to capture the real structure of the data. This is especially true in the case of color clustering where clusters are arbitrarily shaped

Clustering Algorithms K-means K-means K-medoids K-medoids Hierarchical Clustering Hierarchical Clustering There are many other algorithms used for clustering. There are many other algorithms used for clustering.

K-means Clustering Algorithm Step 1: Choose K cluster centers: c¹(1),c²(1),c³(1)….. Step 2: At the kth iterative step distribute the samples among the K cluster domains, using the relation for all x in S(j), if |x – Cj (k)| < |x – Cj (k)| Step 3: Compute the new cluster centers

Algorithm continued … Step 4: If the algorithm has converged and the procedure is terminated. Otherwise go to Step 2 S(j): contains data points in RGB space x: is the data point in an iteration C(j): is the center of the cluster

How the problem was approached ? First the images are read from the directory. First the images are read from the directory. Then each image is transformed into a 3-D RGB space. Then each image is transformed into a 3-D RGB space. K-means clustering using Mahanalobis distance and Euclidean distance was applied. K-means clustering using Mahanalobis distance and Euclidean distance was applied.

Continued….. Next, the mean color of each cluster is calculated. Next, the mean color of each cluster is calculated. Then it is transformed back from 3-D space. Then it is transformed back from 3-D space. Result : Segmented image Result : Segmented image

Mahalanobis Distance M.D. is a very useful way of determining the ”similarity” of a set of values from an ”unknown”: sample to a set of values measured from a collection of ”known” samples M.D. is a very useful way of determining the ”similarity” of a set of values from an ”unknown”: sample to a set of values measured from a collection of ”known” samples Superior to Euclidean distance because it takes distribution of the points (correlations) into account Superior to Euclidean distance because it takes distribution of the points (correlations) into account Traditionally to classify observations into different groups Traditionally to classify observations into different groups

Mahalanobis vs. other classical statistical approaches It takes into account not only the average value but also its variance and the covariance of the variables measured It takes into account not only the average value but also its variance and the covariance of the variables measured It compensates for interactions (covariance) between variables It compensates for interactions (covariance) between variables It is dimensionless It is dimensionless

Mahalanobis Distance D t (x) = (x – m t ) S -1 t (x – m t )` D t (x) = (x – m t ) S -1 t (x – m t )` Mahalanobis Distance

Euclidean Distance The Euclidean distance is the straight- line distance between two pixels The Euclidean distance is the straight- line distance between two pixels Euc dist = √((x1 - x2)² + (y1 - y2)²), where (x1,y1) & (x2,y2) are two pixel points or two data points Euc dist = √((x1 - x2)² + (y1 - y2)²), where (x1,y1) & (x2,y2) are two pixel points or two data points

After executing the program… Original Images

More images…

During execution… The images are transformed into 3-D RGB space The images are transformed into 3-D RGB space K-means clustering is applied which groups data points with similar color into clusters K-means clustering is applied which groups data points with similar color into clusters Example:

Continued… The data points with minimum mahalanobis distance are grouped together into clusters. The data points with minimum mahalanobis distance are grouped together into clusters. After grouping into clusters, the mean color of the cluster is taken and mapped back into the image After grouping into clusters, the mean color of the cluster is taken and mapped back into the image

The program was executed with different number of clusters The program was executed with different number of clusters The same program was run with Euclidean distance for distance between data points The same program was run with Euclidean distance for distance between data points Continued…

Segmented Images

Segmented with 4 clusters Original Image Segmented with 6 clusters

Original Image 2 clusters 4 Clusters 6 Clusters

Original Image 4 Clusters 2 Clusters 6 Clusters

Mahalanobis vs. Euclidean

4 clusters Mahalanobis 4 clusters Euclidean Original Image

6 Clusters Mahalanobis 6 Clusters Euclidean More detailed description using Mahalanobis

Original Image 6 Clusters Mahalanobis 6 Clusters Euclidean Image more clear than Euclidean

Mahalanobis vs. Euclidean Result : Using Mahalanobis distance in the k- means clustering proved to be better than Euclidean distance. Using Mahalanobis distance in the k- means clustering proved to be better than Euclidean distance. This is because the Mahalanobis considers the covariance between variables. This is because the Mahalanobis considers the covariance between variables.

Conclusion The program runs with all jpeg images and takes a lot of time to run for larger images. The program runs with all jpeg images and takes a lot of time to run for larger images. This is due to the calculation of the inverse of the covariance matrix for the Mahalanobis distance. This is due to the calculation of the inverse of the covariance matrix for the Mahalanobis distance. The results show that Image segmentation using Mahalanobis distance works and is better than Euclidean distance. The results show that Image segmentation using Mahalanobis distance works and is better than Euclidean distance.

The End