3-D Computer Vision CSc 83020 – Ioannis Stamos 3-D Computer Vision CSc 83020 Binary Images Horn (Robot Vision): pages 46-64.

Slides:



Advertisements
Similar presentations
3-D Computational Vision CSc Image Processing II - Fourier Transform.
Advertisements

3-D Computer Vision CSc83020 / Ioannis Stamos  Revisit filtering (Gaussian and Median)  Introduction to edge detection 3-D Computater Vision CSc
Morphology The shape of things to come Courtesy Luca Galuzzi (Lucag)
電腦視覺 Computer and Robot Vision I
Robust statistical method for background extraction in image segmentation Doug Keen March 29, 2001.
Document Image Processing
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.
電腦視覺 Computer and Robot Vision I Chapter2: Binary Machine Vision: Thresholding and Segmentation Instructor: Shih-Shinh Huang 1.
Digital Image Processing Lecture 12: Image Topology
September 10, 2013Computer Vision Lecture 3: Binary Image Processing 1Thresholding Here, the right image is created from the left image by thresholding,
EE 7730 Image Segmentation.
1 Binary Image Analysis Binary image analysis consists of a set of image analysis operations that are used to produce or process binary images, usually.
Objective of Computer Vision
Clustering Color/Intensity
Objective of Computer Vision
3-D Computer Vision CSc Feature Detection and Grouping.
Binary Image Analysis. YOU HAVE TO READ THE BOOK! reminder.
Photometric Stereo & Shape from Shading
E.G.M. PetrakisBinary Image Processing1 Binary Image Analysis Segmentation produces homogenous regions –each region has uniform gray-level –each region.
Chapter 6: Center of Gravity and Centroid
1. Binary Image B(r,c) 2 0 represents the background 1 represents the foreground
CS 376b Introduction to Computer Vision 04 / 02 / 2008 Instructor: Michael Eckmann.
Digital Image Processing
Machine Vision for Robots
8D040 Basis beeldverwerking Feature Extraction Anna Vilanova i Bartrolí Biomedical Image Analysis Group bmia.bmt.tue.nl.
Tessellation Data Structures
Recap CSC508.
8D040 Basis beeldverwerking Feature Extraction Anna Vilanova i Bartrolí Biomedical Image Analysis Group bmia.bmt.tue.nl.
CS 6825: Binary Image Processing – binary blob metrics
Digital Image Fundamentals II 1.Image modeling and representations 2.Pixels and Pixel relations 3.Arithmetic operations of images 4.Image geometry operation.
Medical Imaging Dr. Mohammad Dawood Department of Computer Science University of Münster Germany.
September 23, 2014Computer Vision Lecture 5: Binary Image Processing 1 Binary Images Binary images are grayscale images with only two possible levels of.
Chapter 10, Part II Edge Linking and Boundary Detection The methods discussed in the previous section yield pixels lying only on edges. This section.
Introduction Image geometry studies rotation, translation, scaling, distortion, etc. Image topology studies, e.g., (i) the number of occurrences.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
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 Lecture 5: Pixels Relationships.
Image Segmentation by Histogram Thresholding Venugopal Rajagopal CIS 581 Instructor: Longin Jan Latecki.
CS 376b Introduction to Computer Vision 02 / 11 / 2008 Instructor: Michael Eckmann.
Low level Computer Vision 1. Thresholding 2. Convolution 3. Morphological Operations 4. Connected Component Extraction 5. Feature Extraction 1.
Course14 Dynamic Vision. Biological vision can cope with changing world Moving and changing objects Change illumination Change View-point.
References Books: Chapter 11, Image Processing, Analysis, and Machine Vision, Sonka et al Chapter 9, Digital Image Processing, Gonzalez & Woods.
Digital Image Processing
Digital Topology CIS 601 Fall 2004 Longin Jan Latecki.
Nottingham Image Analysis School, 23 – 25 June NITS Image Segmentation Guoping Qiu School of Computer Science, University of Nottingham
CS 376b Introduction to Computer Vision 02 / 12 / 2008 Instructor: Michael Eckmann.
Image Segmentation Nitin Rane. Image Segmentation Introduction Thresholding Region Splitting Region Labeling Statistical Region Description Application.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Thresholding Foundation:. Thresholding In A: light objects in dark background To extract the objects: –Select a T that separates the objects from the.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 11 Representation and.
Course 3 Binary Image Binary Images have only two gray levels: “1” and “0”, i.e., black / white. —— save memory —— fast processing —— many features of.
Color Image Segmentation Mentor : Dr. Rajeev Srivastava Students: Achit Kumar Ojha Aseem Kumar Akshay Tyagi.
Relationship between pixels Neighbors of a pixel – 4-neighbors (N,S,W,E pixels) == N 4 (p). A pixel p at coordinates (x,y) has four horizontal and vertical.
Digital Image Processing CCS331 Relationships of Pixel 1.
Computer Graphics CC416 Lecture 04: Bresenham Line Algorithm & Mid-point circle algorithm Dr. Manal Helal – Fall 2014.
IMAGE REPRESENTATION 1. 2 IMAGE REPRESENTATION MEANS CONVERSION OF ANALOG IMAGE INTO DIGITAL IMAGE THIS CONVERSION OF ANALOG(3D) TO DIGITAL (2D) TAKES.
Image Sampling and Quantization
Course : T Computer Vision
COMP 9517 Computer Vision Binary Image Analysis 4/15/2018
图像处理技术讲座(3) Digital Image Processing (3) Basic Image Operations
CSE 554 Lecture 1: Binary Pictures
Computer Vision Lecture 5: Binary Image Processing
OBJECT RECOGNITION – BLOB ANALYSIS
Binary Image processing بهمن 92
Computer and Robot Vision I
Computer and Robot Vision I
Computer and Robot Vision I
Presentation transcript:

3-D Computer Vision CSc – Ioannis Stamos 3-D Computer Vision CSc Binary Images Horn (Robot Vision): pages

3-D Computer Vision CSc – Ioannis Stamos Binary Images Binary Image b(x,y): Obtained from Gray-Level (or other image) g(x,y) By Thresholding. Characteristic Function: 1 g(x,y) < T b(x,y)= 0 g(x,y) >= T 1)Geometrical Properties 2)Discrete Binary Images 3)Multiple objects 4)Sequential and Iterative Processing.

3-D Computer Vision CSc – Ioannis Stamos Selecting the Threshold (T) g(x,y) HISTOGRAM h(i) T i (intensity) BIMODAL b(x,y)

3-D Computer Vision CSc – Ioannis Stamos Histogram Thresholding T

3-D Computer Vision CSc – Ioannis Stamos Geometric Properties Assume: 1) b(x,y) is continuous 2) Only one object y x b(x,y)

3-D Computer Vision CSc – Ioannis Stamos Geometric Properties Assume: 1) b(x,y) is continuous 2) Only one object y x b(x,y) Area: (Zeroth Moment)

3-D Computer Vision CSc – Ioannis Stamos Geometric Properties Assume: 1) b(x,y) is continuous 2) Only one object y x b(x,y) Area: (Zeroth Moment) Position: “Center” (x,y) of Area (First Moment)

3-D Computer Vision CSc – Ioannis StamosOrientation Difficult to define! We use axis of least second moment (x,y) r ρ θ axis y x

3-D Computer Vision CSc – Ioannis StamosOrientation Difficult to define! We use axis of least second moment For mass distribution: Axis of minimum Inertia. (x,y) r ρ θ axis y x Minimize:

Orientation Difficult to define! We use axis of least second moment For mass distribution: Axis of minimum Inertia. (x,y) r ρ θ axis y x Minimize: Equation of Axis: y=mx+b ??? 0<= m <= infinity We use: ( ρ, θ) finite. Find ( ρ, θ) that minimize E for a given b(x,y)

3-D Computer Vision CSc – Ioannis Stamos We can show that: So:

3-D Computer Vision CSc – Ioannis Stamos We can show that: So: Using dE/dρ=0 we get:

3-D Computer Vision CSc – Ioannis Stamos We can show that: So: Using dE/dρ=0 we get: Note: Axis passes through center (x,y)!! So, change coordinates: x’=x-x, y’=y-y

3-D Computer Vision CSc – Ioannis Stamos We can show that: So: Using dE/dρ=0 we get: Note: Axis passes through center (x,y)!! So, change coordinates: x’=x-x, y’=y-y We get: Second Moments w.r.t. (x, y)

3-D Computer Vision CSc – Ioannis Stamos We can show that: So: Using dE/dρ=0 we get: Note: Axis passes through center (x,y)!! So, change coordinates: x’=x-x, y’=y-y We get: Second Moments w.r.t. (x, y) Mistake in your handout.

3-D Computer Vision CSc – Ioannis Stamos Using dE/dθ=0, we get: tan(2θ)=b/(a-c) 2θ b a-c

3-D Computer Vision CSc – Ioannis Stamos Using dE/dθ=0, we get: tan(2θ)=b/(a-c) So: 2θ b a-c

3-D Computer Vision CSc – Ioannis Stamos Using dE/dθ=0, we get: tan(2θ)=b/(a-c) So: Solutions with positive sign may be used to find θ that minimizes E (why??). Emin/Emax -> (ROUDNESS of the OBJECT). 2θ b a-c

3-D Computer Vision CSc – Ioannis Stamos Discrete Binary Images bij: value at pixel in row i & column j O j (y) m i (x) n

3-D Computer Vision CSc – Ioannis Stamos Discrete Binary Images bij: value at pixel in row i & column j. Assume pixel area is 1. Area: Position (Center of Area): O j (y) m i (x) n

3-D Computer Vision CSc – Ioannis Stamos Discrete Binary Images bij: value at pixel in row i & column j. Assume pixel area is 1. Area: Position (Center of Area): O j (y) m i (x) n Second Moments.

3-D Computer Vision CSc – Ioannis Stamos Discrete Binary Images (cont) Note: a’,b’,c’ are second moments w.r.t ORIGIN a,b,c (w.r.t “center”) can be found from (a’,b’,c’,x,y,A). Note: UPDATE (a’,b’,c’,x,y,A) during RASTER SCAN.

3-D Computer Vision CSc – Ioannis Stamos Multiple Objects Need to SEGMENT image into separate COMPONENTS (regions). Connected Component: Maximal Set of Connected Points: B A Points A and B are connected: Path exists between A and B along which b(x,y) is constant.

3-D Computer Vision CSc – Ioannis Stamos Connected Components Label all pixels that are connected 4-way connected8-way connected

3-D Computer Vision CSc – Ioannis Stamos Region Growing Algorithm (Connected Component Labeling)  Start with “seed” point where bij=1.  Assign LABEL to seed point.  Assign SAME LABEL to its NEIGHBORS (b=1).  Assign SAME LABEL to NEIGHBORS of NEIGHBORS. Terminates when a component is completely labeled. Then pick another UNLABELED seed point.

3-D Computer Vision CSc – Ioannis Stamos What do we mean by NEIGHBORS? Connectedness 4-Connectedness (4-c) 8-Connectedness (8-c) Neither is perfect!

3-D Computer Vision CSc – Ioannis Stamos What do we mean by NEIGHBORS? Jordan’s Curve Theorem: Closed curve -> 2 connected regions B1O1B1 O2 O4 O3B2 B1 (4-c) Hole without closed curve!

What do we mean by NEIGHBORS? Jordan’s Curve Theorem: Closed curve -> 2 connected regions B1O1B1 O2 O4 O3B2 B1 BOB O O OB BB (4-c) Hole without closed curve! (8-c) Connected background with closed ring!

3-D Computer Vision CSc – Ioannis Stamos Solution: Introduce Assymetry Use: or BO1B O2 O1B BB (a)(b) Using (a) Two separate line segments. Hexagonal Tesselation Above assymetry makes SQUARE grid like HEXAGONAL grid.

3-D Computer Vision CSc – Ioannis Stamos Sequential Labeling Algorithm A BD C Raster Scan Note: B,C,D are already labeled

3-D Computer Vision CSc – Ioannis Stamos Sequential Labeling Algorithm A BD C Raster Scan Note: B,C,D are already labeled 0 XX X a. Label(A) = background 1 XD X b. Label(A) = label(D)

3-D Computer Vision CSc – Ioannis Stamos Sequential Labeling Algorithm A BD C Raster Scan Note: B,C,D are already labeled 1 00 C c. Label(A) = label(C) 1 B0 0 d. Label(A) = label(B) 1 B0 C d. If Label(B) = label(C ), then Label(A)=Label(B)= Label(C)

3-D Computer Vision CSc – Ioannis Stamos Sequential Labeling Algorithm A BD C Raster Scan Note: B,C,D are already labeled 0 XX X a. Label(A) = background 1 XD X b. Label(A) = label(D) 1 00 C c. Label(A) = label(C) 1 B0 0 d. Label(A) = label(B) 1 B0 C d. If Label(B) = label(C ), then Label(A)=Label(B)= Label(C)

3-D Computer Vision CSc – Ioannis Stamos Sequential Labeling (Cont.) What if B & C are labeled but label(B) label(C) ?

3-D Computer Vision CSc – Ioannis Stamos Sequential Labeling (Cont.) What if B & C are labeled but label(B) label(C) ? ?

3-D Computer Vision CSc – Ioannis Stamos Sequential Labeling (Cont.) Solution: Let: Label(A)=Label(B) =2 & create an EQUIVALENCE TABLE. Resolve Equivalences in SECOND PASS. 73,6,4 21 …