Computer Graphics and Image Processing

Similar documents
Lecture 5 2D Transformation

CS4670: Computer Vision

DD2423 Image Analysis and Computer Vision IMAGE FORMATION. Computational Vision and Active Perception School of Computer Science and Communication

Lecture 10: Image Descriptors and Representation

MediaTek Video Face Beautify

CS4670: Computer Vision

Augmented Reality VU. Computer Vision 3D Registration (2) Prof. Vincent Lepetit

Broad field that includes low-level operations as well as complex high-level algorithms

Brightness and geometric transformations

Scale Invariant Feature Transform

Boundary descriptors. Representation REPRESENTATION & DESCRIPTION. Descriptors. Moore boundary tracking

Digital Image Processing COSC 6380/4393

Binary Image Processing. Introduction to Computer Vision CSE 152 Lecture 5

Feature descriptors. Alain Pagani Prof. Didier Stricker. Computer Vision: Object and People Tracking

CS 335 Graphics and Multimedia. Geometric Warping

Processing of binary images

Analysis of Binary Images

f(x,y) is the original image H is the degradation process (or function) n(x,y) represents noise g(x,y) is the obtained degraded image p q

Chapter 3 Image Registration. Chapter 3 Image Registration

Chapter 18. Geometric Operations

Types of image feature and segmentation

Scale Invariant Feature Transform

Blacksburg, VA July 24 th 30 th, 2010 Georeferencing images and scanned maps Page 1. Georeference

EE795: Computer Vision and Intelligent Systems

EXAM SOLUTIONS. Image Processing and Computer Vision Course 2D1421 Monday, 13 th of March 2006,

DTU M.SC. - COURSE EXAM Revised Edition

An introduction to 3D image reconstruction and understanding concepts and ideas

EE663 Image Processing Histogram Equalization I

Computational Neuroanatomy

2D Transforms. Lecture 4 CISC440/640 Spring Department of Computer and Information Science

INTENSITY TRANSFORMATION AND SPATIAL FILTERING

Image processing and features

Computer vision: models, learning and inference. Chapter 13 Image preprocessing and feature extraction

Chapter - 2 : IMAGE ENHANCEMENT

Image Processing Fundamentals. Nicolas Vazquez Principal Software Engineer National Instruments

2D Image Processing Feature Descriptors

Noise Model. Important Noise Probability Density Functions (Cont.) Important Noise Probability Density Functions

Department of Electrical & Electronic Engineering Imperial College of Science Technology & Medicine

Outline 7/2/201011/6/

Basic principles of MR image analysis. Basic principles of MR image analysis. Basic principles of MR image analysis

Basic Algorithms for Digital Image Analysis: a course

Lecture 8 Object Descriptors

Reconstruction of Images Distorted by Water Waves

CSE 152 Lecture 7` Intro Computer Vision

Chapter 11 Representation & Description

Advanced Image Processing, TNM034 Optical Music Recognition

Lecture 4: Spatial Domain Transformations

Part 3: Image Processing

EE 701 ROBOT VISION. Segmentation

L16. Scan Matching and Image Formation

A Study of Medical Image Analysis System

Introduction to Video and Image Processing

Image Filtering, Warping and Sampling

Image Transformations

CSE 152 Lecture 7. Intro Computer Vision

EE795: Computer Vision and Intelligent Systems

Object Recognition with Invariant Features

Computer Vision. Recap: Smoothing with a Gaussian. Recap: Effect of σ on derivatives. Computer Science Tripos Part II. Dr Christopher Town

SIFT: SCALE INVARIANT FEATURE TRANSFORM SURF: SPEEDED UP ROBUST FEATURES BASHAR ALSADIK EOS DEPT. TOPMAP M13 3D GEOINFORMATION FROM IMAGES 2014

CS 231A Computer Vision (Fall 2012) Problem Set 3

Geometric Transformations and Image Warping

Motivation. Gray Levels

Multi-view 3D reconstruction. Problem formulation Projective ambiguity Rectification Autocalibration Feature points and their matching

Functional MRI in Clinical Research and Practice Preprocessing

2D transformations: An introduction to the maths behind computer graphics

Limitations of Thresholding

Practical Image and Video Processing Using MATLAB

Digital Image Processing COSC 6380/4393

Image and Multidimensional Signal Processing

Motivation. Intensity Levels

CS664 Lecture #16: Image registration, robust statistics, motion

Image preprocessing in spatial domain

Image Processing and Analysis

Image preprocessing in spatial domain

Announcements. Binary Image Processing. Binary System Summary. Histogram-based Segmentation. How do we select a Threshold?

Announcements. Analysis of Binary Images. Color Reflectance

Warping. 12 May 2015

What will we learn? Geometric Operations. Mapping and Affine Transformations. Chapter 7 Geometric Operations

Digital Image Processing COSC 6380/4393

Babu Madhav Institute of Information Technology Years Integrated M.Sc.(IT)(Semester - 7)

Basic fmri Design and Analysis. Preprocessing

From multiple images to catalogs

Image Processing. Overview. Trade spatial resolution for intensity resolution Reduce visual artifacts due to quantization. Sampling and Reconstruction

2D Geometric Transformations and Matrices

Lecture 4: Transforms. Computer Graphics CMU /15-662, Fall 2016

Feature Descriptors. CS 510 Lecture #21 April 29 th, 2013

CHAPTER 3 DISPARITY AND DEPTH MAP COMPUTATION

CITS 4402 Computer Vision

CPSC 425: Computer Vision

Practical Image and Video Processing Using MATLAB

EE 584 MACHINE VISION

Digital Image Procesing

Implementing the Scale Invariant Feature Transform(SIFT) Method

Final Exam Assigned: 11/21/02 Due: 12/05/02 at 2:30pm

Rectification and Disparity

Analytical and Computer Cartography Winter Lecture 9: Geometric Map Transformations

Part 3: Image Processing

Basic Algorithms for Digital Image Analysis: a course

morphology on binary images

Last update: May 4, Vision. CMSC 421: Chapter 24. CMSC 421: Chapter 24 1

Transcription:

Computer Graphics and Image Processing Lecture B2 Point Processing Joseph Niepce, 1826. The view from my window 1

Context How much input is used to compute an output value? Point Transforms Region Transforms Image Transforms 2

Contents Brightness Transforms Image histogram Thresholding Zooming Geometric Transforms Grey Value Transforms Manipulating individual pixel values Brightness adjustment Contrast adjustment 3

Brightness Adjustment Add a constant to all values (k = 50) g = g + k Contrast Adjustment Scale all values by a constant (k = 1.5) g = g*k 4

Input-Output Mapping high + k high low + k low Input-Output Mapping high high * k low low * k 5

Input-Output Map This creates a lookup table relating input grey values to output out out Linear in in Non-linear Input-Output Mapping brightness Out contrast linear In 6

Image Histogram Measure frequency of occurrence of each grey/colour value Grey Value Histogram 12000 10000 Frequency 8000 6000 4000 2000 0 1 16 31 46 61 76 91 106 121 136 151 166 181 196 211 226 241 256 Grey Value Saturation 7

Scale by 1.25 Non-Linear Mappings Detail is less obvious at the extremes of the ranges By changing the inout mapping from linear to an S shape the detail is restored 8

out in Thresholding Transform grey/colour image to binary if f(x, y) > T output = 1 else 0 How to find T? out in 9

Threshold Value Aim to reduce misclassification error Assuming the two output values correspond to something sensible in the image Manual User defines a threshold P-Tile Mode Other automatic methods Misclassification N Class A Class B Grey 10

P-Tile If we know the proportion of the image that is object Threshold the image to select this proportion of pixels Mode Threshold at the minimum between the histogram s peaks. (Why mode?) 11

Automated Methods Find a threshold θ such that Average µ l Average µ h µ µ + l h θ = T = θ 2 (Start at θ = 0 and work upwards.) Optimal classifier Estimate mean and variance of populations Select T to minimise misclassification, p(c 1 ) = p(c 2 ) T C dx = p C dx T ( ) ( ) p 1 2 12

Image Zooming Reducing new value is weighted sum of nearest neighbours new value equals nearest neighbour Enlarging new value is weighted sum of nearest neighbours add noise to obscure pixelation Geometric Transformations Definitions Affine and non-affine transforms Applications Manipulating image shapes 13

Affine Transforms Scale, Shear, Rotate, Translate Length and areas preserved, Maybe not angles. x a = y d 1 g b e h c x f y i 1 Change values of transform matrix elements according to desired effect. a, e scaling b, d shearing a, b, d, e rotation c, f translation Affine Transform Examples 14

How do you (find and) level the horizon? Warping Example Ansell Adams Aspens 2 2 x ', y' = 1.2 x y + 1. 2x y + x Used to correct camera distortion. 15

16 Camera Lens distortion ( )( ) ( )( ) K K + + + + = + + + + = 6 6 4 4 2 2 6 6 4 4 2 2 1 1 r b r b r b y y y y r a r a r a x x x x c c c c

17

Image Resampling Moving source to destination pixels x and y could be non-integer Rounding x and y to nearest integer can create holes in image Solution is to manipulate in reverse where did warped pixel come from? source is non-integer interpolate nearest neighbours forward reverse Original Warped 18

Summary Chapter 3 (sections 3.1, 3.2, 3.5) Chapter 4 (section 4.1) Point manipulation Brightness Position There is no reason why anyone would want a computer in their home Ken Olsen, chairman DEC, 1977 19