Segmentation Lecture 04 Computer Vision

Slides:



Advertisements
Similar presentations
EDGE DETECTION ARCHANA IYER AADHAR AUTHENTICATION.
Advertisements

E.G.M. PetrakisImage Segmentation1 Segmentation is the process of partitioning an image into regions –region: group of connected pixels with similar properties.
Instructor: Mircea Nicolescu Lecture 6 CS 485 / 685 Computer Vision.
Clustering & image segmentation Goal::Identify groups of pixels that go together Segmentation.
Lecture 07 Segmentation Lecture 07 Segmentation Mata kuliah: T Computer Vision Tahun: 2010.
Computer Vision Lecture 16: Region Representation
Segmentation Course web page: vision.cis.udel.edu/~cv May 2, 2003  Lecture 29.
Content Based Image Retrieval
Lecture 6 Image Segmentation
Lecture 4 Edge Detection
Computer Vision Group Edge Detection Giacomo Boracchi 5/12/2007
Canny Edge Detector.
Region Segmentation. Find sets of pixels, such that All pixels in region i satisfy some constraint of similarity.
Edge detection. Edge Detection in Images Finding the contour of objects in a scene.
EE663 Image Processing Edge Detection 2 Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Segmentation by Clustering Reading: Chapter 14 (skip 14.5) Data reduction - obtain a compact representation for interesting image data in terms of a set.
Segmentation (Section 10.2)
Computer Vision Segmentation Marc Pollefeys COMP 256 Some slides and illustrations from D. Forsyth, T. Darrel,...
Segmentation Slides Credit: Jim Rehg, G.Tech. Christopher Rasmussen, UD John Spletzer, Lehigh Also, Slides adopted from material provided by David Forsyth.
Computer Vision - A Modern Approach Set: Segmentation Slides by D.A. Forsyth Segmentation and Grouping Motivation: not information is evidence Obtain a.
Segmentation by Clustering
Computer Vision Lecture 5. Clustering: Why and How.
G52IIP, School of Computer Science, University of Nottingham 1 Edge Detection and Image Segmentation.
CAP 5415 Computer Vision Fall 2004
Chapter 14: SEGMENTATION BY CLUSTERING 1. 2 Outline Introduction Human Vision & Gestalt Properties Applications – Background Subtraction – Shot Boundary.
Digital Image Processing CCS331 Relationships of Pixel 1.
EDGE DETECTION IN COMPUTER VISION SYSTEMS PRESENTATION BY : ATUL CHOPRA JUNE EE-6358 COMPUTER VISION UNIVERSITY OF TEXAS AT ARLINGTON.
Lecture 6: Edge Detection CAP 5415: Computer Vision Fall 2008.
G52IVG, School of Computer Science, University of Nottingham 1 Edge Detection and Image Segmentation.
CS654: Digital Image Analysis Lecture 24: Introduction to Image Segmentation: Edge Detection Slide credits: Derek Hoiem, Lana Lazebnik, Steve Seitz, David.
October 7, 2014Computer Vision Lecture 9: Edge Detection II 1 Laplacian Filters Idea: Smooth the image, Smooth the image, compute the second derivative.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Image Segmentation Shengnan Wang
Digital Image Processing
October 1, 2013Computer Vision Lecture 9: From Edges to Contours 1 Canny Edge Detector However, usually there will still be noise in the array E[i, j],
Course 5 Edge Detection. Image Features: local, meaningful, detectable parts of an image. edge corner texture … Edges: Edges points, or simply edges,
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.
Computer Vision Image Features Instructor: Dr. Sherif Sami Lecture 4.
Digital Image Processing CSC331
April 21, 2016Introduction to Artificial Intelligence Lecture 22: Computer Vision II 1 Canny Edge Detector The Canny edge detector is a good approximation.
Edge Detection Images and slides from: James Hayes, Brown University, Computer Vision course Svetlana Lazebnik, University of North Carolina at Chapel.
K-Means Segmentation.
Course : T Computer Vision
Machine Vision ENT 273 Lecture 4 Hema C.R.
Chapter 10 Image Segmentation
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Segmentation by clustering: mean shift
Lecture: Clustering and Segmentation
TP12 - Local features: detection and description
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 12: Image Segmentation II
Fitting Curve Models to Edges
Edge Detection The purpose of Edge Detection is to find jumps in the brightness function (of an image) and mark them.
Segmentation and Grouping
Jeremy Bolton, PhD Assistant Teaching Professor
Computer Vision Lecture 9: Edge Detection II
Perceiving and Recognizing Objects
CAP 5415 Computer Vision Fall 2012 Dr. Mubarak Shah Lecture-5
Introduction Computer vision is the analysis of digital images
ECE 692 – Advanced Topics in Computer Vision
Canny Edge Detector.
Image Segmentation Image analysis: First step:
Introduction Computer vision is the analysis of digital images
IT472 Digital Image Processing
CAP 5415 Computer Vision Fall 2004
Presentation transcript:

Segmentation Lecture 04 Computer Vision

Material Citations Dr George Stockman Professor Emeritus, Michigan State University Dr Mubarak Shah Professor, University of Central Florida The Robotics Institute Carnegie Mellon University Dr David A. Forsyth Professor, University of Illinois at Urbana- Champaign Dr Kristen Grauman Associate Professor, University of Texas at Austin

Suggested Readings Chapter 10 Linda G. Shapiro and George Stockman, “Computer Vision”, Upper Saddle River, NJ, Prentice Hall, 2001 . Chapter 15 David A. Forsyth and Jean Ponce, “Computer Vision A Modern Approach”, 2nd edition, Prentice Hall, Inc., 2003. Chapter 5 Richard Szeliski , “Computer Vision: Algorithms and Applications”, Springer; 2011.  Chapter 3 Mubarak Shah, “Fundamentals of Computer Vision”.

Recap (Edge Detection) Marr-Hildreth and Canny edge detectors Gaussian smoothing Compute derivatives In x and y directions Find gradient magnitude Threshold gradient magnitude Difference between Marr-Hildreth and Canny Marr-Hildreth use 2nd order derivative Marr-Hildreth thresholds slope of zero-crossings

Marr-Hildreth Edge Detector Image 2g(x,y) Find zero-crossings compute slope Threshold

Canny Edge Detector gx(x,y) gy(x,y) Image Gradient magnitude direction Non-maximum suppression Hysteresis thresholding

Segmentation Thresholding Edge-based methods Region-based techniques Clustering K-Means etc. Graph partitioning Graph cuts etc. Connectivity-preserving Active Contour Model etc. And more

Segmentation – Some applications Object detection Pedestrian detection Face detection Brake light detection Locate objects in satellite images (roads, forests, crops, etc.) Medical imaging Locate tumors and other pathologies Measure tissue volumes Diagnosis, study of anatomical structure Surgery planning Virtual surgery simulation Intra-surgery navigation

Segmentation – Some applications Recognition Tasks Face recognition Fingerprint recognition Iris recognition Traffic control systems Video surveillance

Segmentation - Example application Object Recognition using region properties Training For all training samples of each model object Segment the image Compute region properties (features) Recognition Given an image of unknown object, Compute its feature vector Compare with the training set

Segmentation - Example application MPEG4 Compression - Object Based Compression Advantages of OBC High compression ratio Allows insertion deletion of objects How does it work? Find objects (Object Segmentation) Code objects and their locations Build mosaics of globally static objects Render scene at receiver

Region Segmentation

Layer Representation

Segmentation Find set of regions R1, R2, ….,Rn such that All pixels in region i satisfy some similarity constraint

Similarity Constraints All pixels in any sub-image must have the same gray levels All pixels in any sub-image must not differ more than some threshold The standard deviation of gray levels in any sub-image must be small

Simple Segmentation

Image Histogram Histogram graphs the number of pixels with a particular gray level as a function of the image of gray levels. gray level number of pixels

Segmentation using Histogram - Simple case

Segmentation using Histogram - Simple case

Realistic Histograms Bimodal Histograms – Having two peaks Not realistic Real (noise)

Realistic Histograms Smooth out noise Convolve histogram by averaging or 1D Gaussian filter peak valley Identify peaks and valleys by detecting local maxima and local minima

Segmentation using Histogram Compute the histogram of a given image Smooth the histogram by averaging peaks and valleys in the histogram Detect good peaks by applying thresholds at the valleys Segment the image into several binary images using thresholds at the valleys Apply connected component algorithm to each binary image and find connected regions.

Good Peaks Peakiness = Sharpness of a peak = Smaller this ratio -sharper the peak. When ration = 1, it’s a rectangle Sharpness of a peak = Ht. of valley to ht. of peak = W = Width of the peak in grey level range from valley to valley P = Height of the peak Va, Vb = Height of valleys N = Number of pixels in the image covered by the peak If peakiness is greater then some threshold then it will be used for segmentation

Segmentation using Histograms Select the valleys as thresholds Apply threshold to histogram Label the pixels within the range of a threshold with same label, i.e., a, b, c … or 1, 2, 3 …

Segmentation using Histograms Have only used the grey level information for segmentation Histograms do not give any spatial information For connected group of pixels we need to apply connected component algorithm

Connectedness x 4 connected 8 connected 6 connected

Connected Components Disjoint segments with same labels need to be split may be added to segment c

Recursive Connected Component Algorithm Scan the binary image left to right, top to bottom If there is an unlabeled pixel with a value of ‘1’ assign a new label to it Recursively check the neighbors of the pixel in step 2 and assign the same label if there are unlabeled with a value of ‘1’ Stop when all the pixels of value ‘1’ have been labeled

Example - Detecting Finger Tips (marked white)

Example - Segmenting a bottle image 93 peaks

Example - Segmenting a bottle image Smoothed histogram (averaging using mask Of size 5) 54 peaks (once smoothing) After peakiness 7 Smoothed histogram 21 peaks (twice) After peakiness 7 Smoothed histogram 11 peaks (three times) After peakiness 4

Example - Segmenting a bottle image Region from Peak 1 (0,40) Region from Peak 2 (40, 116) Region from Peak 3 (116,243) Region from Peak 4 (243,255)

How to determine the three main intensities? Example - Segmenting Kristen Grauman, University of Texas at Austin How to determine the three main intensities? Kristen Grauman, University of Texas at Austin

Segmentation and Grouping Purpose Obtain a compact representation from an image/motion sequence/set of tokens Tokens: Whatever we need to group (pixels, points, surface elements, etc.) Major approaches Forming image segments by grouping (or clustering) Collect together tokens that “belong together” Fitting a model - Fitting a line to collection of points and associating the lines - Associate a model with tokens (e.g. correspondence between pixels of the two shots of same scene) - Issues Which model? Which token goes to which element?

Segmentation and Grouping Partitioning: Top down segmentation – Decomposition of large sets into smaller ones according to their eligibility to the selected model (or criterion) • Decompose an image into regions that have coherent color or texture • Decompose a video sequence into segments of video showing about the same stuff (static area) from same view point – Tokens belong together because they lie on the same object Grouping: Bottom up segmentation – Tokens belong together because they are locally coherent

Basic ideas of grouping in humans Human visual illusions Figure-ground discrimination Grouping can be seen in terms of allocating some elements to a figure, some to ground It is difficult to differentiate between figure and ground

Basic ideas of grouping in humans Human visual illusions Gestalt properties Gestalt: A whole or a group Muller-Lyer effect: Elements in a collection of elements can have properties that result from relationships Gestalt Qualitat: The set of relationship that makes it a group Gestalt factors: A series of factors affect whether elements should be grouped together A human visual system uses them for grouping Muller-Lyer effect

Gestalt factors Not grouped Proximity Similarity Common fate Similar motion tendency Some criteria that tend to cause tokens to be grouped.

Gestalt factors Similarity Some criteria that tend to cause tokens to be grouped. http://chicagoist.com/attachments/chicagoist_alicia/GEESE.jpg http://wwwdelivery.superstock.com/WI/223/1532/PreviewComp/SuperStock_1532R-0831.jpg

Gestalt factors Symmetry Some criteria that tend to cause tokens to be grouped. http://seedmagazine.com/content/article/beauty_is_in_the_processing-time_of_the_beholder/

Gestalt factors Proximity Some criteria that tend to cause tokens to be grouped. http://www.capital.edu/CapitalError.aspx?aspxerrorpath=/Resources/Images/outside6_035.jpg

Gestalt factors Common Fate Some criteria that tend to cause tokens to be grouped. Image credit: Arthus-Bertrand (via F. Durand)

Gestalt factors Parallelism Symmetry Continuity Closure Parallel curves or tokens tend to be grouped together Tokens or curves that lead symmetric groups tend to be grouped together Tokens that lead to continuous curves tend to be grouped together More such Tokens or curves that tend to lead to closed curves tend to be grouped together

Visual illusions - Grouping in humans Occlusions and their effects Can you understand what this picture is about? Hint: There are five numerals Occlusion cues seem to be very important in grouping

Visual illusions - Grouping in humans What numbers do you see? but easy in this Continuity factor can be used

Visual illusions - Grouping in humans Illusory contours; an object appears to be occluding

Visual illusions - Grouping in humans Elevator buttons with high probability to arrive at the wrong floor was high Elevator buttons with high probability to arrive at the right floor - Only because buttons are properly segmented