Lecture 5 Automatic Thresholding. 2 Edge Detection Methods  Separate Background vs. Foreground Gaussian Noise  noisy signal  Most automatic thresholding.

Slides:



Advertisements
Similar presentations
QR Code Recognition Based On Image Processing
Advertisements

E.G.M. PetrakisImage Segmentation1 Segmentation is the process of partitioning an image into regions –region: group of connected pixels with similar properties.
Prénom Nom Document Analysis: Document Image Processing Prof. Rolf Ingold, University of Fribourg Master course, spring semester 2008.
July 27, 2002 Image Processing for K.R. Precision1 Image Processing Training Lecture 1 by Suthep Madarasmi, Ph.D. Assistant Professor Department of Computer.
Image Segmentation Image segmentation (segmentace obrazu) –division or separation of the image into segments (connected regions) of similar properties.
Computer Vision Lecture 16: Region Representation
5. 1 Model of Image degradation and restoration
Introduction to Morphological Operators
Hough Transform Reading Watt, An edge is not a line... How can we detect lines ?
Edge Detection CSE P 576 Larry Zitnick
EE 7730 Image Segmentation.
Thresholding Otsu’s Thresholding Method Threshold Detection Methods Optimal Thresholding Multi-Spectral Thresholding 6.2. Edge-based.
Chapter 10 Image Segmentation.
1Ellen L. Walker Segmentation Separating “content” from background Separating image into parts corresponding to “real” objects Complete segmentation Each.
Announcements Mailing list: –you should have received messages Project 1 out today (due in two weeks)
Edge Detection Today’s reading Forsyth, chapters 8, 15.1
Chapter 10 Image Segmentation.
Fitting a Model to Data Reading: 15.1,
Segmentation (Section 10.3 & 10.4) CS474/674 – Prof. Bebis.
Edge Detection Today’s readings Cipolla and Gee –supplemental: Forsyth, chapter 9Forsyth Watt, From Sandlot ScienceSandlot Science.
Lecture 10: Robust fitting CS4670: Computer Vision Noah Snavely.
E.G.M. PetrakisBinary Image Processing1 Binary Image Analysis Segmentation produces homogenous regions –each region has uniform gray-level –each region.
כמה מהתעשייה? מבנה הקורס השתנה Computer vision.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean Hall 5409 T-R 10:30am – 11:50am.
October 8, 2013Computer Vision Lecture 11: The Hough Transform 1 Fitting Curve Models to Edges Most contours can be well described by combining several.
FEATURE EXTRACTION FOR JAVA CHARACTER RECOGNITION Rudy Adipranata, Liliana, Meiliana Indrawijaya, Gregorius Satia Budhi Informatics Department, Petra Christian.
October 14, 2014Computer Vision Lecture 11: Image Segmentation I 1Contours How should we represent contours? A good contour representation should meet.
Chap 3 : Binary Image Analysis. Counting Foreground Objects.
S EGMENTATION FOR H ANDWRITTEN D OCUMENTS Omar Alaql Fab. 20, 2014.
Digital Image Processing
Chap. 9: Image Segmentation Jen-Chang Liu, Motivation Segmentation subdivides an image into its constituent regions or objects Example: 生物細胞在影像序列中的追蹤.
Image Processing Edge detection Filtering: Noise suppresion.
Course 13 Curves and Surfaces. Course 13 Curves and Surface Surface Representation Representation Interpolation Approximation Surface Segmentation.
Digital Image Processing Lecture 18: Segmentation: Thresholding & Region-Based Prof. Charlene Tsai.
Image Segmentation and Morphological Processing Digital Image Processing in Life- Science Aviad Baram
Chapter 10 Image Segmentation.
AdeptSight Image Processing Tools Lee Haney January 21, 2010.
CS654: Digital Image Analysis Lecture 25: Hough Transform Slide credits: Guillermo Sapiro, Mubarak Shah, Derek Hoiem.
CS654: Digital Image Analysis
Many slides from Steve Seitz and Larry Zitnick
Image Segmentation by Histogram Thresholding Venugopal Rajagopal CIS 581 Instructor: Longin Jan Latecki.
Course 8 Contours. Def: edge list ---- ordered set of edge point or fragments. Def: contour ---- an edge list or expression that is used to represent.
Image Registration Advanced DIP Project
主講者 : 陳建齊. Outline & Content 1. Introduction 2. Thresholding 3. Edge-based segmentation 4. Region-based segmentation 5. conclusion 2.
Digital Image Processing
Machine Vision ENT 273 Regions and Segmentation in Images Hema C.R. Lecture 4.
Image Segmentation Image segmentation (segmentace obrazu)
Digital Image Processing Lecture 17: Segmentation: Canny Edge Detector & Hough Transform Prof. Charlene Tsai.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Machine Vision ENT 273 Hema C.R. Binary Image Processing Lecture 3.
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.
Lecture 10 Chapter 5: Image Restoration. Image restoration Image restoration is the process of recovering the original scene from the observed scene which.
: Chapter 13: Finding Basic Shapes 1 Montri Karnjanadecha ac.th/~montri Image Processing.
Machine Vision ENT 273 Lecture 4 Hema C.R.
Image Representation and Description – Representation Schemes
SIFT Scale-Invariant Feature Transform David Lowe
Chapter 10 Image Segmentation
Miguel Tavares Coimbra
Detection of discontinuity using
Lecture 7: Image alignment
A special case of calibration
Fitting Curve Models to Edges
Image Processing, Leture #12
Digital Image Processing
Binary Image processing بهمن 92
Video Compass Jana Kosecka and Wei Zhang George Mason University
Edge Detection Today’s readings Cipolla and Gee Watt,
Finding Basic Shapes Hough Transforms
Calibration and homographies
Presentation transcript:

Lecture 5 Automatic Thresholding

2 Edge Detection Methods  Separate Background vs. Foreground Gaussian Noise  noisy signal  Most automatic thresholding algorithms rely on a measurement of “peak” and “valley”

3 Mode Method Algorithm: 1. Find 2 highest local maximum in histogram that are at some minimum distance apart. Suppose these occur at gray values g i,g j 2. Find the lowest point g k between g i,g j 3. Peakiness P = min(H(g i ),H(g j ))/H(g k ) How big is peak? 4. Look at each P l (g i,g j,g k ) l = 1,2,3,…., M. Choose P l that is Maximum Theshold = g k - valley

4 Mode Method Many Objects m objects, m+1 peaks 2 objects, 3 peaks

5 P-Tile Method For example: area the mouse occupies is fixed = 20% 100

6 P-Tile Method Add the heights until get 20% Area = 100 x 100 pixel 2 = pixel 2 20% = 2000 pixels Only in industry, controlled environment

7 Iterative Threshold Selection Algorithm 3.2: 1. Select an initial estimate of threshold T T = Av. Image Intensity 2. Use T to partition image into R 1, R 2 3. Calculate mean I :     for R 1, R 2 4. New T = 1/2 (     ) 5. Repeat 2-4 until     do not change

8 An example of an image with uneven illumination which is not amenable to regular thresholding Original Image Histogram if OriginalSimulated uneven illumination Box with uneven illuminationHistogram of box with uneven illumination Box thresholded at approximate Valley of histogram, T=72

9 Adaptive Thresholding Separate image into smaller regions & threshold each region independently

10 Based on Second Difference Separate image into smaller regions & threshold each region independently Original image 3-D plot of originalHistogram of Original Thresholded origial, T=85 Approximated planar function Thresholded origial, T=165 Plot of Different between Original and fitted plane Normalized imageHistrogram of normalized image Threshold result, T=110

11 Thinning

12 Thinning - Requirement 1. Connected regions must remain connected “no-break” should not be

13 Thinning - Requirement 2. Minimally 8-connected - “line” 3. Endline location maintained should not be

14 Thinning - Requirement 4. Result should approximate media lines skeleton 5. Extraneous Branches - minimum

15 Medial Axis Transform Example of the medial axis transform

16 Medial Axis Transform Example of the medial axis transform on a noisy image

17 Expanding and Shrinking

18 Expanding and Shrinking Preprocessing - whatever you do to get rid of noise

19 Last year quiz  To find equation of line- use all data & best fit AB = C B = [A T A] -1 A T C A T A B = A T C y i = mx i + b

20 Last year quiz I(x,y) = c 1 x 2 + c 2 x + c 3 xy + c 4 y + c 5 y 2 + c 6 AC = I C = [A T A] -1 A T I A T A C = A T I (x,y) (0,0) (-1,-1) (-1,0) (-1,1) (-1,0) (1,-1) (x+1,y) - (1,0) (1,-1) Given I(x,y) - 9 values I(0,0) = C 6 I(1,0) = C 1 +C 2 +C 6

21 Rubber Sheet Inspection

22

23 Paper Inspection

24 min error regression -sensitive to noise

25 Hough Technique for Line Detection y = m 2 x + b 2 y = m 1 x + b 1 y i = mx i + b known unknown

26 Hough Technique for Line Detection b = -10 … 10 m = -2 … 2 y = mx + b 1 = 1m + b 2 = 2m + b 3 = 3m + b 4 = 4m + b Given x i,y i Voting Algorithm b m