CSSE463: Image Recognition Day 3

Slides:



Advertisements
Similar presentations
5th Intensive Course on Soil Micromorphology Naples th - 14th September Image Analysis Lecture 8 Introduction to Binary Morphology.
Advertisements

Each pixel is 0 or 1, background or foreground Image processing to
Introduction to Morphological Operators
CSSE463: Image Recognition Day 3 Announcements/reminders: Announcements/reminders: Lab 1 should have been turned in yesterday (late day due now). Lab 1.
CSSE463: Image Recognition Day 3 Announcements/reminders: Announcements/reminders: Lab 1 should have been turned in yesterday (due now if use a late day).
Morphological Image Processing Md. Rokanujjaman Assistant Professor Dept of Computer Science and Engineering Rajshahi University.
Tutorial # 10 Morphological Operations I8oZE.
Introduction to Computer Vision
Processing Digital Images. Filtering Analysis –Recognition Transmission.
Binary Image Analysis: Part 2 Readings: Chapter 3: mathematical morphology region properties region adjacency 1.
Course Website: Digital Image Processing Morphological Image Processing.
Computer Vision Basics Image Terminology Binary Operations Filtering Edge Operators.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
E.G.M. PetrakisBinary Image Processing1 Binary Image Analysis Segmentation produces homogenous regions –each region has uniform gray-level –each region.
CSE554Binary PicturesSlide 1 CSE 554 Lecture 1: Binary Pictures Fall 2014.
Chapter 9.  Mathematical morphology: ◦ A useful tool for extracting image components in the representation of region shape.  Boundaries, skeletons,
Morphological Processing
CSSE463: Image Recognition Day 25 This week This week Today: Finding lines and circles using the Hough transform (Sonka 6.26) Today: Finding lines and.
1 Regions and Binary Images Hao Jiang Computer Science Department Sept. 24, 2009.
Digital Image Processing CSC331 Morphological image processing 1.
Erosion: Erosion is used for shrinking of element A by using element B
Low level Computer Vision 1. Thresholding 2. Convolution 3. Morphological Operations 4. Connected Component Extraction 5. Feature Extraction 1.
CS654: Digital Image Analysis
Nottingham Image Analysis School, 23 – 25 June NITS Image Segmentation Guoping Qiu School of Computer Science, University of Nottingham
CSSE463: Image Recognition Day 9 Lab 3 (edges) due Weds, 3:25 pm Lab 3 (edges) due Weds, 3:25 pm Take home quiz due Friday, 4:00 pm. Take home quiz due.
CSSE463: Image Recognition Day 3 Announcements/reminders: Announcements/reminders: Lab 1 should have been turned in yesterday (due now if use a late day).
Machine Vision ENT 273 Hema C.R. Binary Image Processing Lecture 3.
CSSE463: Image Recognition Day 3 Announcements/reminders: Announcements/reminders: Lab 1 should have been turned in yesterday (due now if use a late day).
Morphological Image Processing (Chapter 9) CSC 446 Lecturer: Nada ALZaben.
Morphological Image Processing
CSSE463: Image Recognition Day 9
CSE 554 Lecture 1: Binary Pictures
CSSE463: Image Recognition Day 21
CSSE463: Image Recognition Day 11
Introduction to Morphological Operators
CSSE463: Image Recognition Day 5
Lecture 8 Introduction to Binary Morphology
Statistical Approach to a Color-based Face Detection Algorithm
CSSE463: Image Recognition Day 11
Morphological Operations
CSSE463: Image Recognition Day 3
CSSE463: Image Recognition Day 23
Binary Image Analysis used in a variety of applications:
Midterm Exam Closed book, notes, computer Format:
Morphological Operation
CSSE463: Image Recognition Day 9
Department of Computer Engineering
CSSE463: Image Recognition Day 5
CSSE463: Image Recognition Day 6
Binary Image Analysis: Part 2 Readings: Chapter 3:
Midterm Exam Closed book, notes, computer Similar to test 1 in format:
CSSE463: Image Recognition Day 5
CSSE463: Image Recognition Day 6
CSSE463: Image Recognition Day 9
CSSE463: Image Recognition Day 26
CSSE463: Image Recognition Day 2
CSSE463: Image Recognition Day 23
CSSE463: Image Recognition Day 16
ECE 692 – Advanced Topics in Computer Vision
CSSE463: Image Recognition Day 5
CSSE463: Image Recognition Day 6
Midterm Exam Closed book, notes, computer Similar to test 1 in format:
CSSE463: Image Recognition Day 11
CSSE463: Image Recognition Day 23
CSSE463: Image Recognition Day 6
CSSE463: Image Recognition Day 11
CSSE463: Image Recognition Day 2
CSSE463: Image Recognition Day 16
CSSE463: Image Recognition Day 7
Binary Image Analysis used in a variety of applications:
Presentation transcript:

CSSE463: Image Recognition Day 3 Announcements/reminders: Lab 1 should have been turned in yesterday. Tomorrow: Lab 2 on color images. Bring laptop again and sit next to a partner of your choosing (partner submissions highly preferred). If you see examples of Img Rec in life, please send to me! Last class? Today: Introduce Fruit Finder, due next Friday. Lots of helpful hints in Matlab. Connected components and morphology Next week: Edge features Questions?

Spatial component of color Break image into parts and describe each one Can describe each part with moments or histograms Regular grid Pros? Cons? Image regions Q9

Project 1: Counting Fruit How many apples? bananas? oranges?

Why the fruit-finder? Crash-course in using and applying Matlab For this reason, I will direct you to some useful functions, but will not give details of all of them Practice feature extraction Practice writing a conference-paper style report Formal and professional! Use style similar to ICME sunset paper (Abstract, Introduction, Process, Results, …) Lots of details in specification and rubric. Warning: The project grade is determined by the paper quality: a finder that gets 100% accuracy can earn a low grade, and one that gets < 100% can earn a solid A.

Fruit-finding technique Observe What numbers define a banana’s “yellow”? (using imtool pixel zoom) Model Can you differentiate between yellow and orange? Orange and red? (Decisions) Note: this isn’t using a classifier yet; just our best guess at hand-tuned boundaries Classify pixels using your model (today’s how-to) “Clean up” the results Mathematical morphology: today/tomorrow’s lecture! Write up your results in a professional report (as you go) [pixel zoom will help]

Region processing Binary image analysis Today, we’ll only consider binary images composed of foreground and background regions Example: apple and non-apple Use find to create a mask of which pixels belong to each Sam Ostling Q1

Matlab How-to create a mask Lots of “Random” tidbits that I used in my solution: zeros size find See transcript of HowTo2.m Q2-3

Modifying the mask requires us to define which pixels are neighbors

Neighborhoods Do we consider diagonals or not? 4-neighborhood of pixel p: Consists of pixels in the 4 primary compass directions from p. 8-neighborhood of pixel p: Adds 4 pixels in the 4 secondary compass directions from p. Q4-5

Connected Components Goal: to label groups of connected pixels. Assign each block of foreground pixels a unique integer 4-connectivity vs. 8-connectivity matters Matlab help: search for connected components, and use bwlabel function Demo I may have you devise an algorithm to do this as part of week 3 take-home test. Q6

Morphological operations (Sonka, ch 13) Morphology = form and structure (shape) For binary images Done via a structuring element (usually a rectangle or circle) Basic operations: Dilation, erosion, closing, opening

Dilation Given a structuring element, adds points in the union of the structuring element and the mask Intuition: Adds background pixels adjacent to the boundary of the foreground region to the foreground. Def, for image X and structuring element B: Q7a

Dilation in action Strel = 2x1, centered on dot

Dilation Matlab: imdilate(bw, structureElt) help strel lists 11 others Typically want symmetric structuring elements structureElt (for 8 neighborhood) found by: structureElt = strel(‘square’, 3); % for erosion using 3x3 neighborhood structureElt (for 4 neighborhood) found by: structureElt = strel([0 1 0; 1 1 1; 0 1 0]); help strel lists 11 others Demo for intuition: Enlarges a region Def: Q7a

Erosion Removes all pixels on the boundary Matlab: imerode(bw, structureElt) Q7b

Closing and Opening Closing (imclose) Opening (imopen) Dilate, then erode Fills internal holes in a region, while maintaining approximate pixel count Eliminates inlets on the boundary Opening (imopen) erode, then dilate Removes small regions Eliminates peninsulas on the boundary To make dilation more aggressive, Dilate n times, then erode n times. Or, use a larger structuring element Example: compare dilating twice using a 3x3 square with dilating once using a 5x5 square.

Lab 2 What format? See nice lab 1 You will work with a partner for each lab Can stay same or change I have posted a simpler 10-point grading rubric at the top of each lab Please ask questions and complete as much as you can in class Each lab is due the following Weds Start now!