Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.

Slides:



Advertisements
Similar presentations
Patient information extraction in digitized X-ray imagery Hsien-Huang P. Wu Department of Electrical Engineering, National Yunlin University of Science.
Advertisements

電腦視覺 Computer and Robot Vision I
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
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.
September 10, 2013Computer Vision Lecture 3: Binary Image Processing 1Thresholding Here, the right image is created from the left image by thresholding,
CS 376b Introduction to Computer Vision 04 / 08 / 2008 Instructor: Michael Eckmann.
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
Computer Vision Basics Image Terminology Binary Operations Filtering Edge Operators.
A Novel 2D To 3D Image Technique Based On Object- Oriented Conversion.
Binary Image Analysis. YOU HAVE TO READ THE BOOK! reminder.
E.G.M. PetrakisBinary Image Processing1 Binary Image Analysis Segmentation produces homogenous regions –each region has uniform gray-level –each region.
VEHICLE NUMBER PLATE RECOGNITION SYSTEM. Information and constraints Character recognition using moments. Character recognition using OCR. Signature.
Chapter 10: Image Segmentation
1. Binary Image B(r,c) 2 0 represents the background 1 represents the foreground
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Computer and Robot Vision I Chapter 7 Conditioning and Labeling Presented by: 傅楸善 & 呂建明 指導教授 : 傅楸善 博士.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Machine Vision for Robots
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
G52IIP, School of Computer Science, University of Nottingham 1 Edge Detection and Image Segmentation.
Chap 3 : Binary Image Analysis. Counting Foreground Objects.
S EGMENTATION FOR H ANDWRITTEN D OCUMENTS Omar Alaql Fab. 20, 2014.
CS 6825: Binary Image Processing – binary blob metrics
University of Kurdistan Digital Image Processing (DIP) Lecturer: Kaveh Mollazade, Ph.D. Department of Biosystems Engineering, Faculty of Agriculture,
CS 376b Introduction to Computer Vision 02 / 22 / 2008 Instructor: Michael Eckmann.
September 23, 2014Computer Vision Lecture 5: Binary Image Processing 1 Binary Images Binary images are grayscale images with only two possible levels of.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
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.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Introduction Image geometry studies rotation, translation, scaling, distortion, etc. Image topology studies, e.g., (i) the number of occurrences.
CS 376b Introduction to Computer Vision 03 / 21 / 2008 Instructor: Michael Eckmann.
CS654: Digital Image Analysis
1 Research Question  Can a vision-based mobile robot  with limited computation and memory,  and rapidly varying camera positions,  operate autonomously.
Computer Vision Introduction to Digital Images.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Computer and Robot Vision II Chapter 20 Accuracy Presented by: 傅楸善 & 王林農 指導教授 : 傅楸善 博士.
CS 376b Introduction to Computer Vision 02 / 11 / 2008 Instructor: Michael Eckmann.
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.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
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.
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.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Digital Image Processing (DIP)
Computer and Robot Vision I
Mean Shift Segmentation
Computer Vision Lecture 5: Binary Image Processing
Binary Image Analysis: Part 1 Readings: Chapter 3: 3.1, 3.4, 3.8
Binary Image Analysis: Part 1 Readings: Chapter 3: 3.1, 3.4, 3.8
Computer and Robot Vision I
Computer Vision Chapter 4
Computer and Robot Vision I
Computer and Robot Vision I
Department of Computer Engineering
Chapter 6 Neighborhood Operators
Computer and Robot Vision I
Computer and Robot Vision I
Computer and Robot Vision I
Presentation transcript:

Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C. Computer and Robot Vision I Chapter 2 Binary Machine Vision: Thresholding and Segmentation Presented by: 傅楸善 & 翁丞世 指導教授 : 傅楸善 博士

DC & CV Lab. CSIE NTU 2.1 Introduction to detect the objects, the input image is often simplified binary value 1: considered part of object binary value 0: background pixel binary machine vision: generation and analysis of binary image

DC & CV Lab. CSIE NTU 2.2 Thresholding if r: row, c: column I: grayscale intensity, B: binary intensity T: intensity threshold

DC & CV Lab. CSIE NTU 2.2 Thresholding

DC & CV Lab. CSIE NTU 2.2 Thresholding

DC & CV Lab. CSIE NTU 2.2 Thresholding

DC & CV Lab. CSIE NTU 2.2 Thresholding The question of thresholding is a question of the automatic determination of the threshold value.

DC & CV Lab. CSIE NTU 2.2 Thresholding histogram m spans each gray level value e.g #: operator counts the number of elements in a set

2.2 Thresholding DC & CV Lab. CSIE NTU bits source image histogram of left image

DC & CV Lab. CSIE NTU 2.2 Thresholding

DC & CV Lab. CSIE NTU 2.2 Thresholding

DC & CV Lab. CSIE NTU 2.2 Thresholding

DC & CV Lab. CSIE NTU 2.2 Thresholding

DC & CV Lab. CSIE NTU 2.2 Thresholding

DC & CV Lab. CSIE NTU 2.2 Thresholding Minimizes a criterion function Minimize the within-group variance Minimize the Kullback information distance

DC & CV Lab. CSIE NTU Minimizing Within-Group Variance : histogram probabilities of gray values : the spatial domain of the image

DC & CV Lab. CSIE NTU Minimizing Within-Group Variance Given threshold t, divide histogram into two parts. Part 1 is the left hand side of the histogram. Part 2 is the right hand side of the histogram.

DC & CV Lab. CSIE NTU Minimizing Within-Group Variance Within-group variance : weighted sum of group variances find which minimizes

DC & CV Lab. CSIE NTU Minimizing Within-Group Variance

DC & CV Lab. CSIE NTU Minimizing Within-Group Variance

DC & CV Lab. CSIE NTU find which maximizes constant minimize

DC & CV Lab. CSIE NTU 2.2 Thresholding

DC & CV Lab. CSIE NTU Minimizing Within-Group Variance

2.2.2 Minimizing Kullback Information Distance DC & CV Lab. CSIE NTU Gaussian distribution

DC & CV Lab. CSIE NTU Minimizing Kullback Information Distance : mean of distribution

DC & CV Lab. CSIE NTU Minimizing Kullback Information Distance minimize the Kullback directed divergence mixture distribution of the two Gaussians in histogram:

2.2.2 Minimizing Kullback Information Distance DC & CV Lab. CSIE NTU minimize constant

2.2.2 Minimizing Kullback Information Distance DC & CV Lab. CSIE NTU

2.2.2 Minimizing Kullback Information Distance DC & CV Lab. CSIE NTU find the *t the minimize H

DC & CV Lab. CSIE NTU Minimizing Kullback Information Distance

DC & CV Lab. CSIE NTU Minimizing Kullback Information Distance Left dark line: Otsu Right dark line: Kittler-Illingworth

DC & CV Lab. CSIE NTU 2.3 Connected Components Labeling Connected Components labeling is a grouping operation. Connected Component labeling is one image-processing technique that can make a unit change from pixel to region.

DC & CV Lab. CSIE NTU Connected Components Operators

DC & CV Lab. CSIE NTU Connected Components Operators Two 1-pixels and belong to the same connected component if there is a sequence of 1-pixels of where and is a neighbor of for

DC & CV Lab. CSIE NTU Connected Components Operators source binary image Connected components labeling with 4-adjacency Connected components labeling with 8-adjacency

DC & CV Lab. CSIE NTU Connected Components Algorithms All the algorithms process a row of the image at a time All the algorithms assign new labels to the first pixel of each component and attempt to propagate the label of a pixel to right or below neighbors

DC & CV Lab. CSIE NTU Connected Components Algorithms What label should be assigned to pixel A? How to keep track of the equivalence of two or more labels? How to use the equivalence information to complete processing?

DC & CV Lab. CSIE NTU Connected Components Algorithms An Iterative Algorithm The Classical Algorithm A Space-Efficient Two-Pass Algorithm with a Local Equivalence Table *An Efficient Run-Length Implementation of the Local Table Method

DC & CV Lab. CSIE NTU An Iterative Algorithm Step 1. initialization of each pixel to a unique label Step 2. iteration of top-down followed by bottom-up passes Step3. repeat step 2 until no change

DC & CV Lab. CSIE NTU An Iterative Algorithm

DC & CV Lab. CSIE NTU The Classical Algorithm performs label propagation as above when two different labels propagate to the same pixel, the smaller label propagates and equivalence entered into table resolve equivalence classes by DFS (Depth-First Search) second pass performs a translation

DC & CV Lab. CSIE NTU The Classical Algorithm

DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU The Classical Algorithm main problem: global equivalence table may be too large for memory

DC & CV Lab. CSIE NTU A Space-Efficient Two-Pass Algorithm That Uses a Local Equivalence Table Small table stores only equivalences from current preceding line Relabel each line with equivalence labels when equivalence detected

DC & CV Lab. CSIE NTU A Space-Efficient Two-Pass Algorithm That Uses a Local Equivalence Table

DC & CV Lab. CSIE NTU An Efficient Run-Length Implementation of the Local Table Method A run-length encoding of a binary image is a list of contiguous typically horizontal runs of 1-pixels.

DC & CV Lab. CSIE NTU run 1run 2 run 7 run number

DC & CV Lab. CSIE NTU An Efficient Run-Length Implementation of the Local Table Method

DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU An Efficient Run-Length Implementation of the Local Table Method

DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU An Efficient Run-Length Implementation of the Local Table Method

DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU An Efficient Run-Length Implementation of the Local Table Method

DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU An Efficient Run-Length Implementation of the Local Table Method

DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU 2.4 Signature Segmentation and Analysis Signature analysis perform a unit change from the pixel to the region or segment. Signature: histogram of the nonzero pixels of the resulting masked image projections can be vertical, horizontal, diagonal, circular…

DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU 2.4 Signature Segmentation and Analysis vertical projection of a segment: column between horizontal projection: row between vertical and horizontal projection define a rectangle and

DC & CV Lab. CSIE NTU 2.4 Signature Segmentation and Analysis

DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU 2.4 Signature Segmentation and Analysis 1. segment the vertical and horizontal projections 2. treat each rectangular subimage as the image

DC & CV Lab. CSIE NTU 2.4 Signature Segmentation and Analysis OCR: Optical Character Recognition MICR: Magnetic Ink Character Recognition

DC & CV Lab. CSIE NTU 2.4 Signature Segmentation and Analysis Diagonal projections: : from upper left to lower right : from upper right to lower left object area: sum of all the projections values in the segment

DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU 2.5 Summary Create binary image by thresholding. Find out connected component on binary image. Generate signature segmentation by projection.

DC & CV Lab. CSIE NTU Project due Oct. 6 Write a program to generate: a binary image (threshold at 128) a histogram connected components (regions with + at centroid, bounding box)