Image segmentation by clustering in the color space CIS581 Final Project Student: Qifang Xu Advisor: Dr. Longin Jan Latecki.

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

Segmentation in color space using clustering Student: Yijian Yang Advisor: Longin Jan Latecki.
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.
電腦視覺 Computer and Robot Vision I Chapter2: Binary Machine Vision: Thresholding and Segmentation Instructor: Shih-Shinh Huang 1.
COLORCOLOR A SET OF CODES GENERATED BY THE BRAİN How do you quantify? How do you use?
Data Mining Techniques: Clustering
Texture Segmentation Based on Voting of Blocks, Bayesian Flooding and Region Merging C. Panagiotakis (1), I. Grinias (2) and G. Tziritas (3)
AlgirdasBeinaravičius Gediminas Mazrimas Salman Mosslem.
Image Indexing and Retrieval using Moment Invariants Imran Ahmad School of Computer Science University of Windsor – Canada.
EE 7730 Image Segmentation.
Region Segmentation. Find sets of pixels, such that All pixels in region i satisfy some constraint of similarity.
Segmentation and Clustering. Segmentation: Divide image into regions of similar contentsSegmentation: Divide image into regions of similar contents Clustering:
Content-Based Image Indexing Joel Ponianto Supervisor: Dr. Sid Ray.
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.
Image Segmentation A Hybrid Method Using Clustering & Region Growing
Contrast Enhancement Crystal Logan Mentored by: Dr. Lucia Dettori Dr. Jacob Furst.
Visual Querying By Color Perceptive Regions Alberto del Bimbo, M. Mugnaini, P. Pala, and F. Turco University of Florence, Italy Pattern Recognition, 1998.
Cliff Rhyne and Jerry Fu June 5, 2007 Parallel Image Segmenter CSE 262 Spring 2007 Project Final Presentation.
Image Segmentation Using Region Growing and Shrinking
Content-Based Image Retrieval using the EMD algorithm Igal Ioffe George Leifman Supervisor: Doron Shaked Winter-Spring 2000 Technion - Israel Institute.
Computer Vision - A Modern Approach Set: Segmentation Slides by D.A. Forsyth Segmentation and Grouping Motivation: not information is evidence Obtain a.
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.
CS 376b Introduction to Computer Vision 04 / 02 / 2008 Instructor: Michael Eckmann.
Clustering methods Course code: Pasi Fränti Speech & Image Processing Unit School of Computing University of Eastern Finland Joensuu,
Computer Vision Lecture 5. Clustering: Why and How.
Hierarchical Distributed Genetic Algorithm for Image Segmentation Hanchuan Peng, Fuhui Long*, Zheru Chi, and Wanshi Siu {fhlong, phc,
Digital Image Processing In The Name Of God Digital Image Processing Lecture8: Image Segmentation M. Ghelich Oghli By: M. Ghelich Oghli
CSIE Dept., National Taiwan Univ., Taiwan
CSE 185 Introduction to Computer Vision Pattern Recognition 2.
Algirdas Beinaravičius Gediminas Mazrimas Salman Mosslem.
Data Extraction using Image Similarity CIS 601 Image Processing Ajay Kumar Yadav.
Motion Analysis using Optical flow CIS750 Presentation Student: Wan Wang Prof: Longin Jan Latecki Spring 2003 CIS Dept of Temple.
Unsupervised Learning. Supervised learning vs. unsupervised learning.
CS654: Digital Image Analysis
Non-Photorealistic Rendering and Content- Based Image Retrieval Yuan-Hao Lai Pacific Graphics (2003)
Computer Graphics and Image Processing (CIS-601).
Clustering.
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.
CSSE463: Image Recognition Day 23 Midterm behind us… Midterm behind us… Foundations of Image Recognition completed! Foundations of Image Recognition completed!
Introduction Segmentation plays an important part in computer vision and image processing applications. Its goal is to find regions that represent objects.
Digital Image Processing
Image Similarity Presented By: Ronak Patel Guided By: Dr. Longin Jan Latecki.
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.
Image Processing Intro2CS – week 6 1. Image Processing Many devices now have cameras on them Lots of image data recorded for computers to process. But.
1 Kernel Machines A relatively new learning methodology (1992) derived from statistical learning theory. Became famous when it gave accuracy comparable.
Cluster Analysis What is Cluster Analysis? Types of Data in Cluster Analysis A Categorization of Major Clustering Methods Partitioning Methods.
Gaussian Mixture Model classification of Multi-Color Fluorescence In Situ Hybridization (M-FISH) Images Amin Fazel 2006 Department of Computer Science.
COMP24111 Machine Learning K-means Clustering Ke Chen.
EE368 Final Project Spring 2003
CSSE463: Image Recognition Day 21
Clustering and Segmentation
COMP 9517 Computer Vision Segmentation 7/2/2018 COMP 9517 S2, 2017.
Computer Vision Lecture 12: Image Segmentation II
Image Segmentation Techniques
Content-Based Image Retrieval
Content-Based Image Retrieval
Fall 2012 Longin Jan Latecki
CSSE463: Image Recognition Day 23
Ke Chen Reading: [7.3, EA], [9.1, CMB]
Image Segmentation.
CSSE463: Image Recognition Day 23
CSSE463: Image Recognition Day 23
EM Algorithm and its Applications
Image Segmentation Using Region Growing and Shrinking
Presentation transcript:

Image segmentation by clustering in the color space CIS581 Final Project Student: Qifang Xu Advisor: Dr. Longin Jan Latecki

Content  Introduction  Project Algorithm  Project program  Experiments and results  Conclusion

Introduction  Image segmentation is to find objects or meaningful part of objects.  Two types of segmentation methods  homogeneity  contrast  Image segmentation techniques  region growing and shrinking  clustering methods  Boundary detection

Clustering Techniques  Segment an image by grouping each elements based on some measure of similarity  Domain spaces  spatial domain (row-column (rc) space)  color space  histogram spaces  other complex feature space

Clustering Algorithms  Basic idea 1. Iteratively divide the space of interest into regions by median. 2. stop when the specific criteria is reached. k-means clustering  Recursive region splitting algorithm standard technique 1. compute histograms for each component of interest (red, green, blue) 2. select a best threshold to split the image into two regions 3. Repeat 1 and 2, until no new regions can be created

Project Algorithm  A combination of the k-medoid algorithm and classification tree’s techniques  Feature space: RGB  Computation time is linear to the number of feature vectors  Flow chart for the project

Project program (1)  Main file: rgbcluster.m firstauto3(inputFileName, mnp, percent) inputFileName: image for segmentation mnp: Minimal number of points in each cluster percent: parameter that delays clustering of points in a margin region. Value: Normal value: output: a set of clusters

Project program (2)  Color index each entry: R G B weights weight is the number of pixels for this color function [colorWeights] = getStat(data, map) colorWeights = map; [row, col] = size(map); for i = 1:row tmp = find(data==i); colorWeights(i, col+1) = length(tmp); end return;

Project program (3)  Means meanR = meanG = meanB =

Codes for find rgb mean function [mn] = find_mean(data) [row, col] = size(data); sumR = 0; sumG = 0; sumB = 0; count = 0; for i = 1:row sumR = sumR + data(i, 1) * data(i, col); sumG = sumG + data(i, 2) * data(i, col); sumB = sumB + data(i, 3) * data(i, col); count = count + data(i, col); end thisMean(1) = sumR / count; thisMean(2) = sumG / count; thisMean(3) = sumB / count; mn = thisMean; return;

Project program (4)  Distance: Euclidean distance between two points  Codes function [dist] = dist2pt(x, y) dist = sqrt((x(1)-y(1))^2 + (x(2)-y(2))^2 + (x(3)-y(3))^2); return;

Project program (5)  Split2.m (provided by Dr. Latecki) [lmainindex,rmainindex,ldata,ldist,rdata,rdist,cluster,no,centroid] = split2(data,dist,a,mainindex,scale,mnp,percentage,cluster,no,centroid)

Project program (6)  recurauto1.m: recursively split data into clusters (provided by Dr. Latecki) 1. distance histogram (myhist) 2. threshold (evo2) 3. split (split2) 4. find left distance, go to left branch 5. find right distance, go to right branch 6. no new split, stop  Unclustered points assigned to the clusters with closest distance to the centroids.

Experiments and results  Rgb pictures  Cherry flowers  House  tiger  airplane  car  people

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

Results 2 Mnp: 10, percent 0.05, cluster number: 9 Mnp: 50, percent 0.05, cluster number: 3 Original pictures Segmented pictures

Results 3 Original pictures segmented pictures Mnp: 10, percent: 0.05, cluster number: 11 Mnp: 30 Percent: 0.05 Cluster number: 4

Image size: 2MB, mnp: 30, cluster number: 5

Mnp: 30, Cluster number: 4 Mnp:10, cluster number: 15 Original picture

Results movies

Conclusion  Advantages  no predefined cluster number  user interactive  computation time  Disadvantages  spatial information lost  Cannot deal with noise or outliers