Binary Image processing بهمن 92

Slides:



Advertisements
Similar presentations
Binary Image Analysis Selim Aksoy Department of Computer Engineering Bilkent University
Advertisements

Table of Contents 9.5 Some Basic Morphological Algorithm
Document Image Processing
Course Syllabus 1.Color 2.Camera models, camera calibration 3.Advanced image pre-processing Line detection Corner detection Maximally stable extremal regions.
CDS 301 Fall, 2009 Image Visualization Chap. 9 November 5, 2009 Jie Zhang Copyright ©
Chapter 9: Morphological Image Processing
Some Basic Morphological Algorithm
Course Syllabus 1.Color 2.Camera models, camera calibration 3.Advanced image pre-processing Line detection Corner detection Maximally stable extremal regions.
Each pixel is 0 or 1, background or foreground Image processing to
Introduction to Morphological Operators
September 10, 2013Computer Vision Lecture 3: Binary Image Processing 1Thresholding Here, the right image is created from the left image by thresholding,
Provides mathematical tools for shape analysis in both binary and grayscale images Chapter 13 – Mathematical Morphology Usages: (i)Image pre-processing.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 9 Morphological Image Processing Chapter 9 Morphological.
Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.
Chapter 9 Morphological Image Processing. Preview Morphology: denotes a branch of biology that deals with the form and structure of animals and planets.
Morphological Image Processing Spring 2006, Jen-Chang Liu.
Lectures 10&11: Representation and description
Binary Image Analysis. YOU HAVE TO READ THE BOOK! reminder.
EE465: Introduction to Digital Image Processing 1 What is in Common?
2007Theo Schouten1 Morphology Set theory is the mathematical basis for morphology. Sets in Euclidic space E 2 (or rather Z 2 : the set of pairs of integers)
E.G.M. PetrakisBinary Image Processing1 Binary Image Analysis Segmentation produces homogenous regions –each region has uniform gray-level –each region.
Lecture 5. Morphological Image Processing. 10/6/20152 Introduction ► ► Morphology: a branch of biology that deals with the form and structure of animals.
MATHEMATICAL MORPHOLOGY I.INTRODUCTION II.BINARY MORPHOLOGY III.GREY-LEVEL MORPHOLOGY.
Chapter 9.  Mathematical morphology: ◦ A useful tool for extracting image components in the representation of region shape.  Boundaries, skeletons,
Chap 3 : Binary Image Analysis. Counting Foreground Objects.
CS 6825: Binary Image Processing – binary blob metrics
Course Syllabus 1.Color 2.Camera models, camera calibration 3.Advanced image pre-processing Line detection Corner detection Maximally stable extremal regions.
September 23, 2014Computer Vision Lecture 5: Binary Image Processing 1 Binary Images Binary images are grayscale images with only two possible levels of.
Morphological Processing
Digital Image Processing CCS331 Relationships of Pixel 1.
Morphological Image Processing
Introduction Image geometry studies rotation, translation, scaling, distortion, etc. Image topology studies, e.g., (i) the number of occurrences.
Chapter 3 cont’d. Binary Image Analysis. Binary image morphology (nonlinear image processing)
1 Regions and Binary Images Hao Jiang Computer Science Department Sept. 25, 2014.
Digital Image Processing CSC331 Morphological image processing 1.
CS654: Digital Image Analysis Lecture 4: Basic relationship between Pixels.
Morphological Image Processing การทำงานกับรูปภาพด้วยวิธีมอร์โฟโลจิคัล
Mathematical Morphology
Low level Computer Vision 1. Thresholding 2. Convolution 3. Morphological Operations 4. Connected Component Extraction 5. Feature Extraction 1.
References Books: Chapter 11, Image Processing, Analysis, and Machine Vision, Sonka et al Chapter 9, Digital Image Processing, Gonzalez & Woods.
CS654: Digital Image Analysis
Nottingham Image Analysis School, 23 – 25 June NITS Image Segmentation Guoping Qiu School of Computer Science, University of Nottingham
CDS 301 Fall, 2008 Image Visualization Chap. 9 November 11, 2008 Jie Zhang Copyright ©
EE 4780 Morphological Image Processing. Bahadir K. Gunturk2 Example Two semiconductor wafer images are given. You are supposed to determine the defects.
1 Overview representing region in 2 ways in terms of its external characteristics (its boundary)  focus on shape characteristics in terms of its internal.
Morphological Image Processing Robotics. 2/22/2016Introduction to Machine Vision Remember from Lecture 12: GRAY LEVEL THRESHOLDING Objects Set threshold.
 Mathematical morphology is a tool for extracting image components that are useful in the representation and description of region shape, such as boundaries,
TOPIC 12 IMAGE SEGMENTATION & MORPHOLOGY. Image segmentation is approached from three different perspectives :. Region detection: each pixel is assigned.
Machine Vision ENT 273 Hema C.R. Binary Image Processing Lecture 3.
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.
Lecture(s) 3-4. Morphological Image Processing. 3/13/20162 Introduction ► ► Morphology: a branch of biology that deals with the form and structure of.
Chapter 6 Skeleton & Morphological Operation. Image Processing for Pattern Recognition Feature Extraction Acquisition Preprocessing Classification Post.
Morphological Image Processing (Chapter 9) CSC 446 Lecturer: Nada ALZaben.
Morphological Image Processing
Sheng-Fang Huang Chapter 11 part I.  After the image is segmented into regions, how to represent and describe these regions? ◦ In terms of its external.
Digital Image Processing CP-7008 Lecture # 09 Morphological Image Processing Fall 2011.
Binary Image Analysis Gokberk Cinbis
Binary Image Processing
Computer Vision Lecture 5: Binary Image Processing
Morphological Operations
Binary Image Analysis used in a variety of applications:
CS Digital Image Processing Lecture 5
Department of Computer Engineering
Morphological Image Processing
ECE 692 – Advanced Topics in Computer Vision
Computer and Robot Vision I
Computer and Robot Vision I
CS654: Digital Image Analysis
Binary Image Analysis used in a variety of applications:
Presentation transcript:

Binary Image processing بهمن 92 Chapter 2 Binary Image processing بهمن 92

Binary Image Processing Basic thresholding Geometric Properties of binary images Projection Run-Length coding Binary algorithms

Morphological operators Dilation and Erosion Opening and Closing The Hit or Miss Transform Some basic Morphological algorithms Boundary Detection Region Filling Thinning and Thickening

Thresholding

روشهای مختلف آستانه يابی

An example of Thresholding Original Image

خصوصيات هندسی تصوير الگوريتمهای متعددی برای آستانه يابی ارائه شده اند. تعدادی از اين الگوريتمها را در فصل های بعدی مفصلا بر رسی خواهيم کرد.

خصوصيات هندسی تصوير Note that in a binary image B[i,j] = 1 or 0

محل قرار گرفتن يک شئي در تصوير محل قرار گرفتن يك شئي در تصوير نقش مهمي در بسياري از كاربرد ها دارد. در اغلب كاربرد هاي صنعتي بعلت ثابت بودن محل دوربين و اجسام ،‌ محل شئي عملا موقعيت مكاني آنرا تعيين ميكند.

محل قرار گرفتن يک شئي در تصوير مساحت تصوير باينری

محل قرار گرفتن يک شئي در تصوير

تعرِيف ممان های مختلف برای يک تصوير باينری

تعرِيف ممان های مختلف برای يک تصوير باينری

دوری از مرکز Eccentricity  

جهت يک شئي Object Orientation θ θ زاويه بين محور x و محوری که دارای کمترين ممان است (محور نشان دهنده جهت شئي) را نشان ميدهد.

جهت يک شئي Object orientation

جهت يک شئي Object orientation

Projection انعکاس یک تصویر باینری در جهت x , y مساوی حاصل جمع تعداد یک های تصویر باینری در این جهت ها. یکی از کاربرد های انعکاس، تفکیک سطر های نوشتار یا متون برای OCR است. از آنجاییکه مکان یک شیی با استفاده از ممان درجه اول محاسبه میشود، میتوان با استفاده از افکنش (projection) ممان درجه اول و بنابراین محل شیی را بدست آورد. ،

Projection (Application in OCR systems) با استفاده از انعکاس سطری تفکيک سطرها بآساني امکان پذير است. در هر سطر با استفاده از انعکاس ستونی , ميتوانيم حروف را از هم تفکيک کنيم. حروف تفکيک شده , بعدا برای تشخيص به نرم افزاز OCR ارسال ميشود.

Run length Encoding از اين روش برای فشرده سازی اطلاعات باينری و همچنين برای نمايش تصاوير باينری استفاده ميشود.

Run length Encoding

Run length Encoding (An example)

Boundary, Interior and Surround Pixels

An algorithm for connected component labeling

An algorithm for connected component labeling

Size filter for noise removal Note that all objects (connected components) smaller that 10 pixels are removed

Size filter for noise removal The effect of selecting bad Threshold, See that the point on top of i is removed

The Euler Number, A simple mean for object classification Number of components E = C – H در بسياری از کاربرد ها , عدد اولر بعنوان يک خصيصه شئي مورد استفاده قرار ميگيرد. و ميتواند برای تشخيص تعداد معدودی از حروف و يا علايم بکار رود. اين خصيصه مستقل از دوران , انتقال و بزرگ نمائي عمل ميکند. Number of holes

Region Boundary

A Boundary detection algorithm 1. Find the starting point s εS for the region. You can use a scan from left to right and top to bottom of the image. 2. Let c be the current pixel in boundary tracking. set c = s and let the 4-neighbor to the west of s be 3. Let the eight 8-neighbor of c starting at b in clockwise order be n1 (point b), n2, …, n8. Find ni for the first i that is in S. // in above fig: point n5 // 4. Set c = ni and b = ni-1 => // In above fig: c = n5 , b = n4 // 5. Repeat step 3 and 4 until c = s // Until returning to the starting point/

Some more basic definitions مساحت Area : حاصل جمع تعداد پيکسل های يک شئی

Some more basic definitions (Compactness) گرد گونگي :

Some more basic definitions (Compactness) گرد گونگي :

Some more basic definitions (Compactness)

Some more basic definitions (Compactness)

Distance Measures

Distance Measures

Distance Measures Euclidean Distance City Block Chess board

The Skeleton of a Region یک راه توصیف یک شکل دوبعدی نمایش آن توسط یک گراف است. اسکلت یک شکل را میتوان به یک گراف تبدیل کرد. الگوریتم پیدا کردن گراف از این نظر حائز اهمیت است.

The Skeleton of a Region

The Skeleton of a Region

The Skeleton of a Region

The Skeleton of a Region يک بر آمدگی کوچک در مرز باعث بروز تغييرات زيادی در شکل استخوان ميشود.

Thinning روشی که طي آن يک تصوير باينری را به استخوان آن تبديل ميکنند. برای تبدیل شدن یک شئی باینری به نسخه استخوان آن برقراری شرایط زیر الزامی است. نواحی متصل در یک تصویر به ساختار های خطوط تبدیل شوند. استخوان حاصله باید بطور 8 گانه متصل باشد. محل تقریبی نقاط انتهائی استخوان را باید ذخیره کنیم. تعداد شاخه های کوچکی که ممکن است در شکل نهائی استخوان وجود داشته باشد به حد اقل برسد.

Thinning, an Iterative algorithm در آخرين تکرار چون هيچ پيکسلی تغيير نميکند , حلقه تکرار متوقف ميشود.

Two example of Thinning (Skeleton Extraction) Pixels on Right and bellow Pixels on Left and Top

A Thinning Algorithm در این الگوریتم نقاط روی شئی 1 و نقاط زمینه صفر فرض شده اند. یک نقطه روی لبه شئی یا یک پیکسل واقع بر روی contour نقطه ای است که مقدارش 1 باشد و حد اقل یکی از همسایگی آن (همسایگی 8 گانه) صفر باشد. Repeat Step 1 (A few pixels are marked) Step 2 (Some other pixels are marked) Until no more pixel can be marked during either Step 1 or Step 2

The Thinning Algorithm – Step 1

The Thinning Algorithm – Step 2 Pixels on left side P2 P8 P4 P6

How the Thinning algorithm works Repeat Step 1 (Mark pixels on the right and bellow side) Step 2 (Mark pixels on left and up side) Until no more pixel can be marked during either Step 1 or Step 2

تجزيه و تحليل الگوريتمThinning

تجزيه و تحليل الگوريتم

Expanding and Shrinking Expanding : Change a pixel 0 to 1, if any neighbor of that pixel is 1 Shrinking: Change a pixel 1 to 0, if any neighbor of that pixel is 0

Expanding and Shrinking حفره ها

Expanding and Shrinking در هر دو الگوريتم فوق , پس از چک کردن هر پيکسلی از تصوير اصلي , اگر قرار باشد که آن پيکسل حذف و ِا اضافه بشود , ابتدا آن پيکسل علامت زده ميشود . در محاسبات مرحله بعد , پِیکسل های علامت زده شده در محاسبات در نظر گرفته نميشوند. بلکه , پس از پايان الگوريتم , در مورد الگوريتم Expansion پيکسل های علامت زده شده , به تصوير اصلی اضافه ميشوند در مورد الگوريتم Shrinking پيکسل های علامت زده شده , از تصوير اصلی حذف ميشوند.

Expanding and Shrinking پر کردن حفره ها b: One time expansion of (a) c: One time shrinking of (b) d: One time Shrinking of (c) e: One time expansion of (d ) (a) (b) (c ) حذف نويز (e) (d)