Counting windows Project participants (in alphabetical order): Akif Durdu Middle East Technical University, Turkiye Viktor Jónás Budapest Polytechnic,

Slides:



Advertisements
Similar presentations
CSCE 643 Computer Vision: Template Matching, Image Pyramids and Denoising Jinxiang Chai.
Advertisements

Automatic Color Gamut Calibration Cristobal Alvarez-Russell Michael Novitzky Phillip Marks.
November 12, 2013Computer Vision Lecture 12: Texture 1Signature Another popular method of representing shape is called the signature. In order to compute.
Computational Biology, Part 23 Biological Imaging II Robert F. Murphy Copyright  1996, 1999, All rights reserved.
EDGE DETECTION ARCHANA IYER AADHAR AUTHENTICATION.
Grape Detection in Vineyards Ishay Levi Eran Brill.
1Ellen L. Walker ImageJ Java image processing tool from NIH Reads / writes a large variety of images Many image processing operations.
Image Segmentation Image segmentation (segmentace obrazu) –division or separation of the image into segments (connected regions) of similar properties.
E.G.M. PetrakisFiltering1 Linear Systems Many image processing (filtering) operations are modeled as a linear system Linear System δ(x,y) h(x,y)
Image enhancement in the spatial domain. Human vision for dummies Anatomy and physiology Wavelength Wavelength sensitivity.
Image Segmentation Region growing & Contour following Hyeun-gu Choi Advisor: Dr. Harvey Rhody Center for Imaging Science.
Lecture 4 Edge Detection
6/9/2015Digital Image Processing1. 2 Example Histogram.
Computer Vision Group Edge Detection Giacomo Boracchi 5/12/2007
Image processing. Image operations Operations on an image –Linear filtering –Non-linear filtering –Transformations –Noise removal –Segmentation.
1 Image Filtering Readings: Ch 5: 5.4, 5.5, 5.6,5.7.3, 5.8 (This lecture does not follow the book.) Images by Pawan SinhaPawan Sinha formal terminology.
1 Lecture 12 Neighbourhood Operations (2) TK3813 DR MASRI AYOB.
CS 376b Introduction to Computer Vision 02 / 25 / 2008 Instructor: Michael Eckmann.
Image Analysis Preprocessing Arithmetic and Logic Operations Spatial Filters Image Quantization.
September 25, 2014Computer Vision Lecture 6: Spatial Filtering 1 Computing Object Orientation We compute the orientation of an object as the orientation.
Real-Time Face Detection and Tracking Using Multiple Cameras RIT Computer Engineering Senior Design Project John RuppertJustin HnatowJared Holsopple This.
Traffic Sign Identification Team G Project 15. Team members Lajos Rodek-Szeged, Hungary Marcin Rogucki-Lodz, Poland Mircea Nanu -Timisoara, Romania Selman.
Tal Mor  Create an automatic system that given an image of a room and a color, will color the room walls  Maintaining the original texture.
October 8, 2013Computer Vision Lecture 11: The Hough Transform 1 Fitting Curve Models to Edges Most contours can be well described by combining several.
CSCE 441: Computer Graphics Image Filtering Jinxiang Chai.
Image Processing1 Image Filtering Filtering can be use to enhance some features and de- enhance others. Usually used as a pre-processing step.
Image Processing.  a typical image is simply a 2D array of color or gray values  i.e., a texture  image processing takes as input an image and outputs.
September 10, 2012Introduction to Artificial Intelligence Lecture 2: Perception & Action 1 Boundary-following Robot Rules 1  2  3  4  5.
FEATURE EXTRACTION FOR JAVA CHARACTER RECOGNITION Rudy Adipranata, Liliana, Meiliana Indrawijaya, Gregorius Satia Budhi Informatics Department, Petra Christian.
Development of Image Processing Based Feedback Systems for Interactive Gaming Using Non-Traditional Controllers Adam Hedji Mantas Pulinas Philip San III.
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
Spatial Filtering: Basics
From Pixels to Features: Review of Part 1 COMP 4900C Winter 2008.
University of Kurdistan Digital Image Processing (DIP) Lecturer: Kaveh Mollazade, Ph.D. Department of Biosystems Engineering, Faculty of Agriculture,
Under Supervision of Dr. Kamel A. Arram Eng. Lamiaa Said Wed
Course 2 Image Filtering. Image filtering is often required prior any other vision processes to remove image noise, overcome image corruption and change.
Eye regions localization Balázs Harangi – University of Debrecen Ciprian Pop – Technical University of Cluj-Napoca László Kovács – University of Debrecen.
October 16, 2014Computer Vision Lecture 12: Image Segmentation II 1 Hough Transform The Hough transform is a very general technique for feature detection.
October 1, 2013Computer Vision Lecture 9: From Edges to Contours 1 Canny Edge Detector However, usually there will still be noise in the array E[i, j],
November 5, 2013Computer Vision Lecture 15: Region Detection 1 Basic Steps for Filtering in the Frequency Domain.
: Chapter 5: Image Filtering 1 Montri Karnjanadecha ac.th/~montri Image Processing.
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
Color Image Segmentation Mentor : Dr. Rajeev Srivastava Students: Achit Kumar Ojha Aseem Kumar Akshay Tyagi.
Introduction to Digital Image Analysis Kurt Thorn NIC.
Image Pre-Processing in the Spatial and Frequent Domain
Computer Vision Lecture 13: Image Segmentation III
A Gentle Introduction to Bilateral Filtering and its Applications
Mean Shift Segmentation
Digital Image Processing
Fitting Curve Models to Edges
Edge Detection The purpose of Edge Detection is to find jumps in the brightness function (of an image) and mark them.
Computer Vision Lecture 9: Edge Detection II
CIS 350 – 3 Image ENHANCEMENT SPATIAL DOMAIN
Image filtering Images by Pawan Sinha.
Image Processing, Lecture #8
First Homework One week
Image Processing, Lecture #8
Most slides from Steve Seitz
Non-local Means Filtering
Image filtering
Digital Image Processing Week III
Midterm Exam Closed book, notes, computer Similar to test 1 in format:
Lecture 2: Image filtering
Intensity Transformation
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
Most slides from Steve Seitz
Lecture 7 Spatial filtering.
Introduction to Artificial Intelligence Lecture 22: Computer Vision II
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Presentation transcript:

Counting windows Project participants (in alphabetical order): Akif Durdu Middle East Technical University, Turkiye Viktor Jónás Budapest Polytechnic, Hungary Csaba Pintér University of Szeged, Hungary Péter Rieger Budapest Polytechnic, Hungary Umut Tilki Middle East Technical University, Turkiye

Project Overview Main task was to count windows on the photo of a building Input: - Image that the user wants to count windows in - A length of the diagonal of an average sized window (user selects it on the input picture) Output: - Number of found windows - Output picture containing the original picture and the contours of the found windows

Overview: Preprocessing Preprocessing Detecting lines with Hough transformation Detecting lines with Hough transformation It will define boxes (creates separate quads) It will define boxes (creates separate quads) unifying “similar” boxes Classify remaining boxes (windows non- windows) Classify remaining boxes (windows non- windows)

Preprocessing: Converting image to grayscale Converting image to grayscale Normalizing Normalizing Median filter (blurring) Median filter (blurring) Sobel operator (finding edges) Sobel operator (finding edges) Opening Opening

Preprocessing 1 – Converting to grayscale: Color information is not so important during preprocessing Color information is not so important during preprocessing Faster Faster Easier to handle Easier to handle

Preprocessing 2 – Normalizing Greater contrast Greater contrast More determining edges More determining edges

Preprocessing 3 – Median filter Blurs the unimportant edges (e.g. gutters, window frames (inner+outer=2)) Blurs the unimportant edges (e.g. gutters, window frames (inner+outer=2)) Still preserves the other edges Still preserves the other edges Disadvantage: rounds corners (Hough can compensate) Disadvantage: rounds corners (Hough can compensate) Parameters: Parameters: repetitions:3 repetitions:3 window size:square root of the user input window diagonal window size:square root of the user input window diagonal

Preprocessing 3 – Median filter

Preprocessing 4 – Sobel operator Finds the edges Finds the edges Prepares the picture for Hough transform Prepares the picture for Hough transform

Preprocessing 5 – Opening Dilation + erosion Dilation + erosion Reduces remaining noise (unifies broken edges) Reduces remaining noise (unifies broken edges) Makes possible double frame edges disappear Makes possible double frame edges disappear

Preprocessing 5 – Opening

Detecting lines with Hough transformation: Applying Hough transformation Applying Hough transformation Finding local maxima (finding the important lines) Finding local maxima (finding the important lines) Applying inverse Hough transformation (projecting found lines back) Applying inverse Hough transformation (projecting found lines back)

Hough 1 – Applying Image space -> Hough space transformation Image space -> Hough space transformation Strong lines with higher intensity Strong lines with higher intensity

Hough 2 – Finding local maxima Separating dominant lines Separating dominant lines Window size: Window size: 3*sqrt(UI diagonal)

Hough 3 – Inverse Hough transformation Hough space -> image space [inverse Hough formulas] Hough space -> image space [inverse Hough formulas] Projecting dominant lines back Projecting dominant lines back It defines boxes (general quads) It defines boxes (general quads) ideal actual

Unifying “similar” boxes Classify image to boxes (floodfill) Classify image to boxes (floodfill) computing statistics computing statistics unifying “similar” boxes (similar their statistics have little difference) unifying “similar” boxes (similar their statistics have little difference)

Unifying 1 – Flood fill It classifies image to boxes It classifies image to boxes Each class is a general quad Each class is a general quad it is done with a simple floodfill until there are any black spots remaining it is done with a simple floodfill until there are any black spots remaining the color values of the areas represent the classes the color values of the areas represent the classes

Unifying 2 – Statistics They are used to represent a kind of similarity measure They are used to represent a kind of similarity measure Statistics: mean and variance of each color channels some more statistics: center coordinates, area (for an easier determination of neighbourhood) Statistics: mean and variance of each color channels some more statistics: center coordinates, area (for an easier determination of neighbourhood) The sample variance Eqn. The sample mean Eqn.

Unifying 3 – The unifying itself we must decrease the number of classes radically we must decrease the number of classes radically the reamaining classes may be the reamaining classes may be whole windows (we hope ) whole windows (we hope ) larger homogeneous areas (roof, grass, sky …) larger homogeneous areas (roof, grass, sky …)

Unifying 3 – The unifying itself The unifying algorithm The unifying algorithm put each class into a queue while (there is a class in the queue) { while (there is a similar neighbor) { unify them compute new statistics } remove from queue }

Classifying remaining boxes we must decide if an area represents a window or not we must decide if an area represents a window or not we do this according to the user input “ideal” window we do this according to the user input “ideal” window the idea: if the ratio of edges or area is reasonable, let’s consider it to be a window, else it possibly belong to the class of non-windows the idea: if the ratio of edges or area is reasonable, let’s consider it to be a window, else it possibly belong to the class of non-windows

The result

THE END Thank YOU Have a nice day