UNIVERSITY OF OSLO. Faculty of Mathematics and Natural Sciences



Similar documents
Automatic 3D Reconstruction via Object Detection and 3D Transformable Model Matching CS 269 Class Project Report

Environmental Remote Sensing GEOG 2021

Statistical Data Mining. Practical Assignment 3 Discriminant Analysis and Decision Trees

Chapter 2: Frequency Distributions and Graphs

Mathematics (Project Maths Phase 1)

Assessment. Presenter: Yupu Zhang, Guoliang Jin, Tuo Wang Computer Vision 2008 Fall

Java Modules for Time Series Analysis

4.4 Transforming Circles

Example: Credit card default, we may be more interested in predicting the probabilty of a default than classifying individuals as default or not.

MACHINE LEARNING IN HIGH ENERGY PHYSICS

We can display an object on a monitor screen in three different computer-model forms: Wireframe model Surface Model Solid model

Introduction to Beam. Area Moments of Inertia, Deflection, and Volumes of Beams

Volumes of Revolution

AN IMPROVED DOUBLE CODING LOCAL BINARY PATTERN ALGORITHM FOR FACE RECOGNITION

Module 3: Correlation and Covariance

Session 7 Bivariate Data and Analysis

HISTOGRAMS, CUMULATIVE FREQUENCY AND BOX PLOTS

Descriptive Statistics

Locating and Decoding EAN-13 Barcodes from Images Captured by Digital Cameras

Data Mining: Algorithms and Applications Matrix Math Review

Big Data Analytics CSCI 4030

Investigating Area Under a Curve

MECHANICS OF SOLIDS - BEAMS TUTORIAL 2 SHEAR FORCE AND BENDING MOMENTS IN BEAMS

T O B C A T C A S E G E O V I S A T DETECTIE E N B L U R R I N G V A N P E R S O N E N IN P A N O R A MISCHE BEELDEN

To determine vertical angular frequency, we need to express vertical viewing angle in terms of and. 2tan. (degree). (1 pt)

Least-Squares Intersection of Lines

Exercise 1.12 (Pg )

Social Media Mining. Data Mining Essentials

Probabilistic Latent Semantic Analysis (plsa)

Graphs of Polar Equations

Pennsylvania System of School Assessment

2After completing this chapter you should be able to

ENGINEERING SCIENCE H1 OUTCOME 1 - TUTORIAL 3 BENDING MOMENTS EDEXCEL HNC/D ENGINEERING SCIENCE LEVEL 4 H1 FORMERLY UNIT 21718P

Towards Online Recognition of Handwritten Mathematics

Drawing a histogram using Excel

Topological Data Analysis Applications to Computer Vision

Calculation of Minimum Distances. Minimum Distance to Means. Σi i = 1

Modelling, Extraction and Description of Intrinsic Cues of High Resolution Satellite Images: Independent Component Analysis based approaches

SPRING UNIT 14. second half. Line symmetry and reflection. Measuring angles. Naming and estimating angles. Drawing angles

The Scientific Data Mining Process

9.4. The Scalar Product. Introduction. Prerequisites. Learning Style. Learning Outcomes

The purposes of this experiment are to test Faraday's Law qualitatively and to test Lenz's Law.

PLOTTING DATA AND INTERPRETING GRAPHS

Exploratory data analysis (Chapter 2) Fall 2011

ScienceDirect. Brain Image Classification using Learning Machine Approach and Brain Structure Analysis

EVERY DAY COUNTS CALENDAR MATH 2005 correlated to

Temperature Scales. The metric system that we are now using includes a unit that is specific for the representation of measured temperatures.

6.4 Normal Distribution

GeoGebra. 10 lessons. Gerrit Stols

Statistics Chapter 2

MA107 Precalculus Algebra Exam 2 Review Solutions

RUN-LENGTH ENCODING FOR VOLUMETRIC TEXTURE

with functions, expressions and equations which follow in units 3 and 4.

Local features and matching. Image classification & object localization

Vectors. Objectives. Assessment. Assessment. Equations. Physics terms 5/15/14. State the definition and give examples of vector and scalar variables.

1 of 7 9/5/2009 6:12 PM

Grade 6 Mathematics Performance Level Descriptors

Distances, Clustering, and Classification. Heatmaps

sample median Sample quartiles sample deciles sample quantiles sample percentiles Exercise 1 five number summary # Create and view a sorted

An Introduction to Data Mining. Big Data World. Related Fields and Disciplines. What is Data Mining? 2/12/2015

Lecture 9: Introduction to Pattern Analysis

High-Performance Signature Recognition Method using SVM

Electrical Resonance

Georgia Standards of Excellence Curriculum Map. Mathematics. GSE 8 th Grade

Wednesday 15 January 2014 Morning Time: 2 hours

Cluster Analysis: Advanced Concepts

Chapter 1: Looking at Data Section 1.1: Displaying Distributions with Graphs

Lecture 9: Geometric map transformations. Cartographic Transformations

Texture. Chapter Introduction

Segmentation & Clustering

Topographic Change Detection Using CloudCompare Version 1.0

2 Session Two - Complex Numbers and Vectors

EdExcel Decision Mathematics 1

Self Organizing Maps: Fundamentals

Representing Data Using Frequency Graphs

Graphical Integration Exercises Part Four: Reverse Graphical Integration

Physics 1010: The Physics of Everyday Life. TODAY Velocity, Acceleration 1D motion under constant acceleration Newton s Laws

Bar Graphs and Dot Plots

Palmprint Recognition. By Sree Rama Murthy kora Praveen Verma Yashwant Kashyap

Student Outcomes. Lesson Notes. Classwork. Exercises 1 3 (4 minutes)

EXPERIMENTAL ERROR AND DATA ANALYSIS

Data, Measurements, Features

Graphing Quadratic Functions

13 MATH FACTS a = The elements of a vector have a graphical interpretation, which is particularly easy to see in two or three dimensions.

3D Drawing. Single Point Perspective with Diminishing Spaces

28 CHAPTER 1. VECTORS AND THE GEOMETRY OF SPACE. v x. u y v z u z v y u y u z. v y v z

6 3 The Standard Normal Distribution

Classification Problems

Copyright 2011 Casa Software Ltd. Centre of Mass

Clustering. Data Mining. Abraham Otero. Data Mining. Agenda

Visualizing Differential Equations Slope Fields. by Lin McMullin

5.7 Maximum and Minimum Values

Sentiment analysis using emoticons

2 Describing, Exploring, and

OBJECT TRACKING USING LOG-POLAR TRANSFORMATION

Engineering Problem Solving and Excel. EGN 1006 Introduction to Engineering

A Learning Based Method for Super-Resolution of Low Resolution Images

Part-Based Recognition

A Determination of g, the Acceleration Due to Gravity, from Newton's Laws of Motion

1 Choosing the right data mining techniques for the job (8 minutes,

Transcription:

UNIVERSITY OF OSLO Faculty of Mathematics and Natural Sciences Exam: INF 4300 Digital image analysis Date: Friday December 11, 2009 Exam hours: 14.30-17.30 Number of pages: 7 pages plus 1 page enclosure Enclosures: 1 sheet containing plots Allowed aid: Calculator Read the entire exercise text before you start solving the exercises. Please check that the exam paper is complete. If you lack information in the exam text or think that some information is missing, you may make your own assumptions, as long as they are not contradictory to the spirit of the exercise. In such a case, you should make it clear what assumptions you have made. Please note that all parts of the exercises have equal weight. You should spend your time in such a manner that you get to answer all exercises shortly. If you get stuck on one question, move on to the next question. Some of the questions are based on printed figures or plots included in the exam text. An extra copy of this sheet is included at the end of the exam text. Please draw your solution on this sheet, mark it with your candidate number and include it in your solution. Your answers should be short, typically 1-3 sentences or a sketch should be sufficient. Good luck!! 1

Exercise 1.Using 1D projection histograms a) How are 1D projection histograms computed? Explain either using formulas or by words if you do not remember exact formulaes. 1D horizontal projection of the region: p h( x) f ( x, y) y 1D vertical projection of the region: p v ( y) f ( x, y) x b) You are given images like the music sheet below. How can you use 1D projection histograms to determine if the page is rotated? (Not to find the rotation angle, just IF it is rotated)? Discuss shortly how you could do this. Consider a projection onto the vertical axis. If the page is not rotated, you will see distict peaks in the histogram at the locations of the horisontal note lines. If the page is rotated, the peaks will not be distinct, more of a gradual increase/decrease. c) 1D projection histograms can also be useful for splitting connected objects. Consider the segmented symbols below. Describe briefly how you could use 1D projection histograms to split the two symbols that are merged in the image below. There are several ways to do this. One alternative is to use projection onto the horisontal axis. The gaps between the numbers will be mimimum values of the histograms. Minimum values are then good candidates for splitting locations, maube combined with other criteria like location of the split. 2

Exercise 2. Shape descriptors a) How can you compute the width and height of an object in a segmented binary image? We have presented several alternatives, list the alternatives shortly. Examples are bounding box (object-oriented would be better), major axis/minor axis, thickness from skeleton, dimensions of a fitted ellipse etc. Assume that we have a binary image f(x,y). A general discrete moment is defined as p q m pq x y f ( x, y) x y b) What is the definition of central moments? Central moments are defined as p q ( x x) ( y y) f ( x, y) pq x y c) What is the main advantage of using central moments? Position invariance. d) How could second order moments be useful for discriminating between the two symbols 0 and 1? For example using µ20 the spread along the x-axis. Exercise 3: Hough transform You are given two point is (x,y)-space: (1,1) and (0,2). a) Give the equations for the (a,b) representation of these two points. (1,1): b=1-a (0,2): b=2 b) Plot them in (a,b)-space. c) Explain the algorithm for finding lines in the polar representation ((,θ)- space). 3

Exercise 4. Texture a) Describe in short how to calculate a GLCM for an entire image. Explain the necessary concepts, using a sketch if you find it useful. Stikkord som må med for full score her er glidende vindu, inputparametre til algoritmen (retning og avstand), samt skisse av selve algoritmen. Kvantisering spørres om under, så det gir ikke poeng. Diskusjon om kanteffekter kan trekke opp. b) From an unknown texture sample you calculate a couple of GLCM features for three different step lengths and the four directions 0, 45, 90, 135. Looking at the output you notice that most features are nearly identical for all step lengths for the 0 direction, but wildly varying between step lengths for the other directions. What does this tell you about the texture? Teksturen er horisontal c) When analyzing texture it is often useful to quantize the graylevels in the image. Explain why. Comment on one problem with this approach. Kvantisering reduserer størrelsen på GLCM bl.a. Ved for grov kvantisering vasker en ut lavkontrast tekstur. d) For the following texture a coocurrence matrix is calculated (ignore problems with the edge pixels, i.e., do not evaluate coocurrences across the edges) j i 2 1 1 3 2 1 1 2 3 3 2 2 2 2 1 3 3 1 1 2 2 1 1 2 3 3 3 2 1 3 3 3 3 1 1 2 The coocurrence matrix given h=(i,j) is 4

j i 1 2 3 1 2 2 4 2 3 5 1 3 2 2 4 What is h? 1. (0,1) 2. (1,0) 3. (1,1) 4. (1,-1) 5. None of the above Exercise 5. Classification using Bayes rule pixel class channel 1 channel 2 channel 3 1 ω1 248 244 243 2 ω1 247 243 240 3 ω1 248 244 243 4 ω1 249 245 249 MEAN ω1 248 244 243.75 VAR ω1 0.67 0.67 14.25 5 ω2 174 164 49 6 ω2 177 169 36 7 ω2 184 170 65 8 ω2 195 189 91 MEAN ω2 182.5 173 60.25 VAR ω2 87 120.67 560.92 9 ω3 170 46 48 10 ω3 156 68 46 11 ω3 142 22 34 12 ω3 118 19 39 MEAN ω3 146.5 38.75 41.75 VAR ω3 491.67 526.25 41.58 ω 2 ω 3 ω 1 Figur 1: Training image For the multispectral image (3 channels) above, we have the training data picked from the indicated regions as given in the table Your task is to classify the pixels in the image below into class ω1 (background), ω2 (leaf), and ω3 (apple ) based on the information from the image in Figur 1. You are only allowed to use two channels. 5

a) Evaluate by visual inspection (using 2D feature spaces) which two channels are the most suited. a) 1 &2 eller 2&3 er begge brukende, men 2&3 er best for naturlig valg av klassevise avstandsmål. 250 200 data1 data2 data3 250 200 data1 data2 data3 250 200 data1 data2 data3 Feature 2 150 100 Feature 3 150 100 Feature 3 150 100 50 50 50 120 140 160 180 200 220 240 Feature 1 120 140 160 180 200 220 240 Feature 1 50 100 150 200 250 Feature 2 b) b) Based on this you are designing a classifier using Bayes rule. The data is modeled with gaussian distributions having the same covariance matrix Σ 1 0. Write the 0 1 generic form of the discriminant function. 2 tilordnes til klasse j if, evt er direkte avstand til mean også akseptabelt 1 c) Classify the pixels below using the functions as in (b). Note that just giving the class for the pixels will not give any score even if correct. Whether you answer the classification problem graphically or numerically is equivalent. for alle tre kanaler pixel channel 1 channel 2 channel 3 1 200 45 50 2 169 136 55 3 231 218 201 4 203 176 131 1 248.001 244.002 243.753 90227 6

ved bruk av 1 & 2 2 182.501 173.002 60.253 33433 3 146.501 38.752 41.753 12353 1 248.001 244.002 60520 2 182.501 173.002 31618 3 146.501 38.752 11481.9 1: class 3 as 60 12667.375 19561.8438 2: class 2 as 14576 22752.875 18546.5938 3: class 1 as 49960 48253.875 30807.0938 4: class 2 as 32768 35877.875 25077.5938 ved bruk av 2 & 3 1 244.002 243.753 59475.03 2 173.002 60.253 16780 3 38.752 41.753 1622.3 1: class 3 as -36307.5312-5982.03125 2208.9375 2: class 2 as -12884.7812 10062.2188 5943.9375 3: class 1 as 42710.7188 33044.7188 15216.9375 4: class 2 as 15400.2188 21561.2188 10666.9375 Remember that, when assuming a 2D Gaussian distribution, the point probability of a point x=[x 1, x 2 ] T can be written on the form T x 1 1 1 x1 1 x 1 1 1 f exp 1/ 2 1/ 2 x2 (2 ) 2 x2 2 x2 2 where the probability distribution function takes as parameters the vector µ=[µ 1, µ 2 ] T and a matrix. Exercise 6. K-nearest neighbor classification In the following questions you will consider a k-nearest neighbor classifier using Euclidean distance metric on a binary classification task. We assign the class of the test point to be the class of the majority of the k nearest neighbors. Note that a point can be its own neighbor. 7

Figur 2: k-nn classification task, a plus indicates a positive example and a star a negative example. a) In the Figur 2, sketch the 1-nearest neighbor decision boundary for this dataset. b) How would the point (8,1) be classified using 1-nn? 8

a) b) Point (8,1) will be classified to class * 9

Candidate number: 10