CSE 554 Lecture 1: Binary Pictures

Similar documents
Introduction to Medical Imaging. Signal Processing Basics. Strange Effects. Ever tried to reduce the size of an image and you got this?

3-Dimensions. 3-Dimensions. 3D Shapes. Recognise 3-D Shapes and know their properties. 2 Dimensional. 3 Dimensional. Exercise 1

EECE 301 Signals & Systems Prof. Mark Fowler

Lab 12. Speed Control of a D.C. motor. Controller Design

Pacing Guide for Kindergarten Version GLE Checks for Understanding Vocabulary Envision Textbook Materials

2. Doodle-Offs: This is everything you ll need to kit out your 3Doodler workshop and facilitate some great. 2 x power strips and extension cords

Logic Design 2013/9/26. Outline. Implementation Technology. Transistor as a Switch. Transistor as a Switch. Transistor as a Switch

More Fun with D/A Converters

Red Room Poetry. Find out more at redroomcompany.org

Computer Graphics (CS/ECE 545) Lecture 7: Morphology (Part 2) & Regions in Binary Images (Part 1)

WPCA AMEREN ESP. SEMINAR Understanding ESP Controls. By John Knapik. 2004, General Electric Company

ISO INTERNATIONAL STANDARD

Introduction to Digital Signal Processing

Graph coloring. Kempe s algorithm removes nodes with < K edges

In this project you ll learn how to create a game in which you have to save the Earth from space monsters.

ANALYSIS ON THE COVERAGE CHARACTERISTICS OF GLONASS CONSTELLATION

Common Collector & Common Base Amplifier Circuits

Digital Signal Processing, Fall 2009

Lecture 19: Common Emitter Amplifier with Emitter Degeneration.

Content Skills Assessments Lessons. Assessments 9/1/2012

Memory Management. Memory Management. Chapter 11. Memory Management Techniques. I. Single Contiguous. II. Overlays. Advantages: Disadvantages:

Characteristics of BJT-2

Prototype based languages

TALLINN UNIVERSITY OF TECHNOLOGY. IRO0140 Advanced Space Time-Frequency Signal Processing. Individual Work

RClamp2451ZA. Ultra Small RailClamp 1-Line, 24V ESD Protection

3G Evolution. OFDM Transmission. Outline. Chapter: Subcarriers in Time Domain. Outline

Switches- and Indicators. Switches Unlimited Contact: Phone: * Fax:

Engineering 1620: High Frequency Effects in BJT Circuits an Introduction Especially for the Friday before Spring Break

On parameters determination of multi-port equivalent scheme for multi-winding traction transformers

NMR Part IV, Apodization and Zero Filling

Signals and Systems Fourier Series Representation of Periodic Signals

FAN A, 1.2V Low Dropout Linear Regulator for VRM8.5. Features. Description. Applications. Typical Application.

Defeating a Scarcity Mindset

cos The points in an Argand diagram which represent the numbers (iii) Write down a polynomial equation of degree 5 which is satisfied by w.

A Quadrature Signals Tutorial: Complex, But Not Complicated. by Richard Lyons

DETERMINATION OF ELECTRONIC DISTANCE MEASUREMENT ZERO ERROR USING KALMAN FILTER

EMA5 / UMA5N / FMA5A. V CC -50V -100mA 2.2kW 47kW I C(MAX.) R 1 R 2. Datasheet

SGM8621/2/3/4 250µA, 3MHz, Rail-to-Rail I/O CMOS Operational Amplifiers

DTA123E series V CC I C(MAX.) R 1 R 2. 50V 100mA 2.2k 2.2k. Datasheet. PNP -100mA -50V Digital Transistors (Bias Resistor Built-in Transistors)

1/24/2017. Electrical resistance

Safety Technique. Multi-Function Safety System SAFEMASTER M Output Module With Output Contacts BG 5912

ESX10-10x-DC24V-16A-E electronic circuit protector

US6H23 / IMH23 V CEO 20V V EBO 12V. 600mA R k. Datasheet. Outline Parameter Tr1 and Tr2 TUMT6 SMT6

Precast Products Manual

ESE535: Electronic Design Automation. Today. Topological Worst-Case Delay. Topological Worst-Case Delay. Topological Worst-Case Delay.

QUESTIONS & SOLUTIONS OF AIEEE 2011

ALD2722E/ALD2722 DUAL EPAD LOW POWER CMOS OPERATIONAL AMPLIFIER ADVANCED LINEAR DEVICES, INC.

4.5 COLLEGE ALGEBRA 11/5/2015. Property of Logarithms. Solution. If x > 0, y > 0, a > 0, and a 1, then. x = y if and only if log a x = log a y.

SGM8631/2/3/4 470µA, 6MHz, Rail-to-Rail I/O CMOS Operational Amplifiers

SGM721/2/3/4 970µA, 10MHz, Rail-to-Rail I/O CMOS Operational Amplifiers

SGM Ω, 300MHz Bandwidth, Dual, SPDT Analog Switch

Low Cross-Polarization Slab Waveguide Filter for Narrow-Wall Slotted Waveguide Array Antenna with High Gain Horn

RECOMMENDATION ITU-R M.1828

90 and 180 Phase Shifter Using an Arbitrary Phase-Difference Coupled-line Structure

Geometrical Design Concept for Panoramic 3D Video Acquisition

Color Space 1: RGB Color Space. Color Space 2: HSV. RGB Cube Easy for devices But not perceptual Where do the grays live? Where is hue and saturation?

CENTER LINES OF OPTICAL CONNECTOR NOTE 2 CENTER LINES OF OPTICAL CONNECTOR CFP2-BASELINE-DRAWING 1L A3-B1-SW006 1/15 DETAIL B A16

CAUTION: Do not install damaged parts!!!

Assembly Instructions for Model: VMAA18

GV60 VALORSTAT PLUS OPERATING INSTRUCTIONS. VALORSTAT PLUS GV60 Electronic Ignition Remote Control

ALD2726E/ALD2726 DUAL EPAD ULTRA MICROPOWER CMOS OPERATIONAL AMPLIFIER ADVANCED LINEAR DEVICES, INC.

Identifying Basic Level Entities in a Data Graph

IMP528 IMP528. High-Volt 220 V PP Driv. ive. Key Features. Applications. Block Diagram

j e c t s A m P r o a z i n g P h o t o A guide to running your own 10 week after-school photography club

ALD2724E/ALD2724 DUAL EPAD PRECISION HIGH SLEW RATE CMOS OPERATIONAL AMPLIFIER ADVANCED LINEAR DEVICES, INC.

7. Morphological operations on binary images

Introduction to computer vision. Image Color Conversion. CIE Chromaticity Diagram and Color Gamut. Color Models

LNA IN GND GND GND GND IF OUT+ IF OUT- 7. Product Description. Ordering Information. GaAs HBT GaAs MESFET InGaP HBT

ME 6406 MACHINE VISION. Georgia Institute of Technology

Art Mapping. I=Introduced R=Rehearsed M=Mastered A=Applied

A new technique for distance measurement of between vehicles to vehicles by plate car using image processing

Test Results of a Digital Beamforming GPS Receiver in a Jamming Environment Alison Brown and Neil Gerein, NAVSYS Corporation

Photoshop 01. Introduction to Computer Graphics UIC / AA/ AD / AD 205 / F05/ Sauter.../documents/photoshop_01.pdf

Topic 8 Integration. Exercise 8.2 The fundamental theorem of integral calculus. TOPIC 8 Integration EXERCISE

CH 7. Synchronization Techniques for OFDM Systems

EMD3 / UMD3N / IMD3A V CC I C(MAX.) R 1 R 2. 50V 100mA. 10k. 10k. 50V 100mA. 10k. 10k. Datasheet

SGM8051/2/4 SGM8053/5 250MHz, Rail-to-Rail Output CMOS Operational Amplifiers

SITE DATA INFORMATION T DRAWING INDEX

Consolidated Financial Results for the Year Ended March, 2017 and Forecast for the FY2017

RETURN TO MAIN MENU ver-increasing computer calculation speed used for games such as Tomb Raider

SGM8521/2/4 150kHz, 4.7µA, Rail-to-Rail I/O CMOS Operational Amplifiers

Hand Independence III - Pachelbel s Canon in D

4-H Action Exhibits. All participants take an equal role in planning and doing the Action Exhibit.

Main idea. Register Allocation. Interference graph. Register allocation. Interference graph. Interference graph

Migration ATV11 - ATV12

Computer Vision. Howie Choset Introduction to Robotics

Maintain Your F5 Solution with Fast, Reliable Support

Chapter 2 Fundamentals of OFDM

Pip Ahoy! Song Lyrics

Finger print Recognization. By M R Rahul Raj K Muralidhar A Papi Reddy

Register Allocation. Xiao Jia April 25 th, 2012

Global Register Allocation

Narrow-wall slotted waveguide array antenna with low cross-polarization filter

SECTION ONE: SOCIAL ENTREpRENEURSHIP BEGINS WITH YOU

QUAD PRECISION HIGH SPEED MICROPOWER TIMER

AN MIP APPROACH TO THE U-LINE BALANCING PROBLEM WITH PROPORTIONAL WORKER THROUGHPUT. Reyhan Erin Magna PowerTrain Troy, Michigan

IMAGE PROCESSING FOR EVERYONE

The Trouton Rankine Experiment and the End of the FitzGerald Contraction

Minimum Spanning Tree. EECS 214, Fall 2017

CATTLE FINISHING RETURN

Transcription:

CSE 554 Lctur 1: Binary Picturs Fall 2016 CSE554 Binary Picturs Sli 1

Gomtric Forms Continuous forms Dfin by mathmatical functions Curvs Surfacs E.g.: parabolas, splins, subivision surfacs 2 y x z Sin[ x] Sin[ y] Discrt forms Disjoint lmnts with connctivity rlations E.g.: polylins, triangl surfacs, pixls an voxls Polylin Triangl surfacs CSE554 Binary Picturs Sli 2 Pixls Voxls

Digital Picturs Ma up of iscrt points associat with colors Imag: 2D array of pixls 2D Imag CSE554 Binary Picturs Sli 3

Digital Picturs Color rprsntations Low High Grayscal: 1 valu rprsnting grays from black (lowst valu) to whit (highst valu) Grayscal 8-bit (0-255), 16-bit, tc. RGB: 3 valus ach rprsnting colors from black (lowst valu) to pur r, grn, or blu (highst valu). Low R Low G Low B High R High G High B 24-bit (0-255 in ach color) XYZ, HSL/HSV, CMYK, tc. RGB B R G CSE554 Binary Picturs Sli 4

Digital Picturs Ma up of iscrt points associat with colors Volum: 3D array of voxls Voxl 3D Volum CSE554 Binary Picturs Sli 5

Binary Picturs A grayscal pictur with 2 colors: black (0) an whit (1) Th st of 1 or 0 pixls (voxls) is call objct or backgroun A blocky gomtry Backgroun Objct Analogy: Lgo, Mincraft CSE554 Binary Picturs Sli 6

Binary Picturs Cration Procssing CSE554 Binary Picturs Sli 7

Sgmntation Sparating objct from backgroun in a grayscal pictur A simpl mtho: thrsholing by pixl (voxl) color All pixls (voxls) with color abov a thrshol is st to 1 Grayscal pictur Thrshol binary pictur CSE554 Binary Picturs Sli 8

Sgmntation Sparating objct from backgroun in a grayscal pictur A simpl mtho: thrsholing by pixl (voxl) color Othr mthos: K-mans clustring Watrsh Rgion growing Snaks an Lvl st Graph cut Mor tails covr in Computr Vision cours CSE554 Binary Picturs Sli 9

Rastrization Filling th intrior of a shap by pixls or voxls Known as scan-convrsion, or pixlization / voxlization Mor tails covr in Computr Graphics cours 2D Polygon Binary Pictur CSE554 Binary Picturs Sli 10

Binary Picturs Cration Procssing CSE554 Binary Picturs Sli 11

Binary Picturs Rmoving islans an hols Smoothing jagg bounaris CSE554 Binary Picturs Sli 12

Rmoving Islans & Hols Obsrvations: Islans (hols) of th objct ar hols (islans) of th backgroun Islans (hols) ar not as wll-connct as th objct (backgroun). Tak th largst 2 connct componnts of th objct Invrt th largst connct componnt of th backgroun CSE554 Binary Picturs Sli 13

Connct Componnts Dfinition A maximum st of pixls (voxls) in th objct or backgroun, such that any two pixls (voxls) in th st ar connct by a path of connct pixls (voxls) CSE554 Binary Picturs Sli 14

Connct Componnts How many connct componnts ar thr in th objct? What about backgroun? CSE554 Binary Picturs Sli 15

Connctivity (2D) Two pixls ar connct if thir squars shar: A common g 4-connctivity Two connct pixls All pixls connct to x x A common vrtx 8-connctivity 4-connctivity x 8-connctivity CSE554 Binary Picturs Sli 16

Connctivity (2D) Objct: 8-connctivity (1 comp) Objct: 4-connctivity (4 comp) CSE554 Binary Picturs Sli 17

Connctivity (2D) What connctivity shoul b us for th backgroun? Objct: 8-connctivity (1 comp) Backgroun: 8-connctivity (1 comp) Objct: 4-connctivity (4 comp) Backgroun: 4-connctivity (2 comp) Paraox: a clos curv os not isconnct th backgroun, whil an opn curv os. CSE554 Binary Picturs Sli 18

Connctivity (2D) Diffrnt connctivity for objct (O) an backgroun (B) 2D pixls: 4- an 8-connctivity rspctivly for O an B (or B an O) Objct: 8-connctivity (1 comp) Backgroun: 4-connctivity (2 comp) Objct: 4-connctivity (4 comp) Backgroun: 8-connctivity (1 comp) CSE554 Binary Picturs Sli 19

Connctivity (3D) Two voxls ar connct if thir cubs shar: A common fac Two connct voxls All voxls connct to th cntr voxl 6-connctivity A common g 6-connctivity 18-connctivity A common vrtx 26-connctivity 18-connctivity Us 6- an 26-connctivity rspctivly for O an B (or B an O) 26-connctivity CSE554 Binary Picturs Sli 20

Fining Connct Componnts Th flooing algorithm Start from a s pixl/voxl, xpan th connct componnt Eithr o pth-first or brath-first sarch (a LIFO stack or FIFO quu) // Fining th connct componnt containing an objct pixl p 1. Initializ 1. Crat a rsult st S that contains only p 2. Crat a Visit flag at ach pixl, an st it to b Fals xcpt for p 3. Initializ a quu (or stack) Q that contains only p. 2. Rpat until Q is mpty: 1. Pop a pixl x from Q. 2. For ach unvisit objct pixl y connct to x, a y to S, st its flag to b visit, an push y to Q. 3. Output S CSE554 Binary Picturs Sli 21

Fining Connct Componnts Why using a visit flag? Othrwis, th program will not trminat Why not chcking to s if y is in S? Chcking th visit flag is much fastr ( O(1) vs. O(log n) ) 1. 2. Rpat until Q is mpty: 1. Pop a pixl x from Q. 2. For ach unvisit objct pixl y connct to x, a y to S, st its flag to b visit, an push y to Q. 3. Output S CSE554 Binary Picturs Sli 22

Connctivity (2D) Connct componnts containing th blu pixl: 8-connctivity 4-connctivity CSE554 Binary Picturs Sli 23

Fining Connct Componnts Labling all componnts in an imag: Loop through ach pixl (voxl). If it is not labl, us it as a s to fin a connct componnt, thn labl all pixls (voxls) in th componnt. On componnt Two componnts 8-connct objct 4-connct objct CSE554 Binary Picturs Sli 24

Using Connct Componnts Pruning isolat islans from th main objct Filling intrior hols of th objct Tak th largst componnts of th objct Invrt th largst componnts of th backgroun CSE554 Binary Picturs Sli 25

Morphological Oprators Smoothing out objct bounary Opning Closing CSE554 Binary Picturs Sli 26

Morphological Oprators Oprations to chang shaps Erosion Dilation Opning: first ro, thn ilat. Closing: first ilat, thn ro. CSE554 Binary Picturs Sli 27

Mathmatical Morphology Input: x Objct (A) Structur lmnt (B x ) Erosion Dilation A B = {x A B x A} A B = x A B x CSE554 Binary Picturs Sli 28

Mathmatical Morphology Structur lmnt B is symmtric if: x B y y B x Exampls: x y x y x y Circl Squar Triangl CSE554 Binary Picturs Sli 29

Mathmatical Morphology Duality (for symmtric structuring lmnts) Erosion (ilation) is quivalnt to ilation (rosion) of th backgroun Erosion Dilation A B = A B A B = A B CSE554 Binary Picturs Sli 30

Mathmatical Morphology Opning (ro, thn ilat) x Objct (A) Structur lmnt (Bx) Opning A B = (A B) B Union of all B that can fit insi A Shavs off convx cornrs an thin spiks CSE554 Binary Picturs Sli 31

Mathmatical Morphology Closing (ilat, thn ro) x Objct (A) Structur lmnt (Bx) Closing A B = (A B) B Complmnt of union of all B that can fit in th complmnt of A Fills concav cornrs an thin tunnls CSE554 Binary Picturs Sli 32

Mathmatical Morphology Duality, again! (for symmtric structuring lmnts) Opning (closing) objct is quivalnt to closing (opning) backgroun Opning Closing A B = A B A B = A B CSE554 Binary Picturs Sli 33

Digital Morphology Structuring lmnts (symmtric) 2D pixls: squar or cross x x 3D voxls: cub or cross CSE554 Binary Picturs Sli 34

Digital Morphology Structuring lmnt: x Erosion : an objct pixl with som backgroun pixl in its squar nighborhoo Dilation : a backgroun pixl with som objct pixl in its squar nighborhoo CSE554 Binary Picturs Sli 35

Digital Morphology Structuring lmnt: 3x3 x squar Opning Union of whit squars within th objct Erosion Dilation Closing Union of black squars within th backgroun Dilation Erosion CSE554 Binary Picturs Sli 36

Digital Morphology Incrasing th siz of th structuring lmnt Las to mor growing/shrinking an mor significant smoothing Original Opning by 3x3 squar Opning by 5x5 squar Equivalnt to rpat applications with a small structuring lmnt E.g.: k rosions (ilations) follow by k ilation (rosions) with a 3x3 squar is quivalnt to opning (closing) with a (2k+1)x(2k+1) squar. CSE554 Binary Picturs Sli 37

Digital Morphology Implmntation tips Using uality of rosion an ilation, you only n to implmnt on function to o both morphological oprations (for symmtric structur lmnts). Dilation is sam as rosion of th backgroun Whn prforming multipl-roun opning, mak sur you first o k tims rosion thn k tims ilation What happns if you altrnat rosion an ilation for k tims? Hanl imag bounary in a gracful way (not crashing th program ) For xampl, trat outsi of th imag as backgroun CSE554 Binary Picturs Sli 38

Lab Moul 1 A simpl 2D sgmntation routin Initial sgmntation using thrsholing (using your co from Lab 0) Using connct componnts an opning/closing to clan up th sgmntation. CSE554 Binary Picturs Sli 39