VC 16/17 TP5 Single Pixel Manipulation

Similar documents
Basic relations between pixels (Chapter 2)

VC 17/18 TP14 Pattern Recognition

VC 10/11 T9 Region-Based Segmentation

VC 10/11 T4 Colour and Noise

VC 12/13 T16 Video Compression

Image Processing. Bilkent University. CS554 Computer Vision Pinar Duygulu

Digital Image Processing

IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN

Digital Image Fundamentals II

VC 11/12 T14 Visual Feature Extraction

Digital Image Processing. Image Enhancement in the Spatial Domain (Chapter 4)

IMAGE ENHANCEMENT in SPATIAL DOMAIN by Intensity Transformations

Computer Vision 5 Segmentation by Clustering

In this lecture. Background. Background. Background. PAM3012 Digital Image Processing for Radiographers

ECE 178: Introduction (contd.)

Digital Image Processing. Lecture # 3 Image Enhancement

EE 584 MACHINE VISION

Image Enhancement: To improve the quality of images

Original grey level r Fig.1

Lecture 4 Image Enhancement in Spatial Domain

Digital Image Processing. Introduction

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

Histograms. h(r k ) = n k. p(r k )= n k /NM. Histogram: number of times intensity level rk appears in the image

IMAGING. Images are stored by capturing the binary data using some electronic devices (SENSORS)

CHAPTER 3 IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN

Chapter - 2 : IMAGE ENHANCEMENT

Ulrik Söderström 17 Jan Image Processing. Introduction

EE795: Computer Vision and Intelligent Systems

Chapter 2 - Fundamentals. Comunicação Visual Interactiva

Sampling and Reconstruction

Digital Image Processing, 2nd ed. Digital Image Processing, 2nd ed. The principal objective of enhancement

Chapter 3: Intensity Transformations and Spatial Filtering

CS 4495 Computer Vision A. Bobick. CS 4495 Computer Vision. Features 2 SIFT descriptor. Aaron Bobick School of Interactive Computing

Introduction to Digital Image Processing

Image Acquisition + Histograms

UNIT - 5 IMAGE ENHANCEMENT IN SPATIAL DOMAIN

Image restoration. Restoration: Enhancement:

INTENSITY TRANSFORMATION AND SPATIAL FILTERING

Ulrik Söderström 16 Feb Image Processing. Segmentation

Lecture 6: Segmentation by Point Processing

VC 11/12 T11 Optical Flow

Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong)

Digital Image Processing. Prof. P. K. Biswas. Department of Electronic & Electrical Communication Engineering

UNIT-2 IMAGE REPRESENTATION IMAGE REPRESENTATION IMAGE SENSORS IMAGE SENSORS- FLEX CIRCUIT ASSEMBLY

Introduction to Digital Image Processing

Lecture 4: Spatial Domain Transformations

Introduction to Medical Imaging (5XSA0) Module 5

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

DYNAMIC BACKGROUND SUBTRACTION BASED ON SPATIAL EXTENDED CENTER-SYMMETRIC LOCAL BINARY PATTERN. Gengjian Xue, Jun Sun, Li Song

EE795: Computer Vision and Intelligent Systems

Motivation. Gray Levels

Lecture #13. Point (pixel) transformations. Neighborhood processing. Color segmentation

Digital Image Fundamentals

Lecture 2 Image Processing and Filtering

Intensity Transformation and Spatial Filtering

Digital Image Processing

ECG782: Multidimensional Digital Signal Processing

Image Enhancement in Spatial Domain. By Dr. Rajeev Srivastava

UNIVERSITY OF OSLO. Faculty of Mathematics and Natural Sciences

Basic Algorithms for Digital Image Analysis: a course

Topic 4 Image Segmentation

Lecture 4. Digital Image Enhancement. 1. Principle of image enhancement 2. Spatial domain transformation. Histogram processing

Digital Image Processing. Prof. P.K. Biswas. Department of Electronics & Electrical Communication Engineering

Review for Exam I, EE552 2/2009

Spatio-Temporal Nonparametric Background Modeling and Subtraction

EECS490: Digital Image Processing. Lecture #19

Change detection using joint intensity histogram

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

Interpolation is a basic tool used extensively in tasks such as zooming, shrinking, rotating, and geometric corrections.

Topic 6 Representation and Description

Keywords: Thresholding, Morphological operations, Image filtering, Adaptive histogram equalization, Ceramic tile.

Lecture 3 - Intensity transformation

Vivekananda. Collegee of Engineering & Technology. Question and Answers on 10CS762 /10IS762 UNIT- 5 : IMAGE ENHANCEMENT.

Filtering and Enhancing Images

Outlines. Medical Image Processing Using Transforms. 4. Transform in image space

Computer Vision. The image formation process

CHAPTER 6 DETECTION OF MASS USING NOVEL SEGMENTATION, GLCM AND NEURAL NETWORKS

Introduction to Video and Image Processing

Motivation. Intensity Levels

Image Analysis. Morphological Image Analysis

CS 5540 Spring 2013 Assignment 3, v1.0 Due: Apr. 24th 11:59PM

What is an Image? Image Acquisition. Image Processing - Lesson 2. An image is a projection of a 3D scene into a 2D projection plane.

Digital Image Processing

A Study of Background Modeling

ECE 176 Digital Image Processing Handout #14 Pamela Cosman 4/29/05 TEXTURE ANALYSIS

Robert Collins CSE598G. Intro to Template Matching and the Lucas-Kanade Method

Background Subtraction based on Cooccurrence of Image Variations

09/11/2017. Morphological image processing. Morphological image processing. Morphological image processing. Morphological image processing (binary)

Announcements. Image Segmentation. From images to objects. Extracting objects. Status reports next Thursday ~5min presentations in class

Image Processing Lecture 10

Lecture #5. Point transformations (cont.) Histogram transformations. Intro to neighborhoods and spatial filtering

Computer Vision for HCI. Topics of This Lecture

Background Image Generation Using Boolean Operations

A Texture-Based Method for Modeling the Background and Detecting Moving Objects

Region-based Segmentation

HYBRID CENTER-SYMMETRIC LOCAL PATTERN FOR DYNAMIC BACKGROUND SUBTRACTION. Gengjian Xue, Li Song, Jun Sun, Meng Wu

CITS 4402 Computer Vision

BSB663 Image Processing Pinar Duygulu. Slides are adapted from Selim Aksoy

Segmentation

Transcription:

VC 16/17 TP5 Single Pixel Manipulation Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos Hélder Filipe Pinto de Oliveira

Outline Dynamic Range Manipulation Neighborhoods and Connectivity Image Arithmetic Example: Background Subtraction

Topic: Dynamic Range Manipulation Dynamic Range Manipulation Neighborhoods and Connectivity Image Arithmetic Example: Background Subtraction

Manipulation What I see What I want to see

Digital Images To change this... I need to change this! What we see What a computer sees

Pixel Manipulation Let s start simple I want to change a single Pixel. f ( X, Y) MyNewValue Or, I can apply a transformation T to all pixels individually. g( x, y) T f ( x, y)

Image Domain (Spatial) I am directly changing values of the image matrix. g T ( f ) Image Domain So, what is the other possible domain? 3 3

Image Negative What operation T allows me to obtain this result? g=t(f) What I see What I want to see

Image Negative Consider the maximum value allowed by quantization (max). For 8 bits: 55 Then: g( x, y) max f ( x, y) g( x, y) 55 f ( x, y) What I want to see

Dynamic Range Manipulation What am I really doing? Changing the response of my image to the received brightness. Dynamic Range Manipulation Represented by a D Plot. g Normal Inverted f

Why DRM?

Why DRM?

Other DRM functions By manipulating our function we can: Enhance generic image visibility. s T(r) Enhance specific visual features. Use quantization space a lot better. s T(r) r r

Contrast Stretching Stretches the dynamic range of an image. Corrects some image capture problems: Poor illumination, aperture, poor sensor performance, etc. g T(f) f g 55 f min max min

Histogram Processing Histograms give us an idea of how we are using our dynamic range What if I want a different histogram for my image?

Types of Image Histograms Images can be classified into types according to their histogram Dark Bright Low-contrast High-contrast

Types of Image Histograms I can manipulate this using single Pixel operations!

Histogram Equalization k n k j sk T( rk ) p n j 0 j 0 Objective: Obtain a flat histogram. Enhance visual contrast. Digital histogram Result is a flat-ish histogram. Why? r ( r j ) https://en.wikipedia.org/wiki/histogram_equalization

Histogram Equalization

Histogram Equalization

Topic: Neighborhoods and Connectivity Dynamic Range Manipulation Neighborhoods and Connectivity Image Arithmetic Example: Background Subtraction

Neighbors Why do we care at all?

Digital Images So, who exactly are my neighbors? What a computer sees

4-Neighbors A pixel p at (x,y) has horizontal and vertical neighbors: (x+1,y), (x-1,y), (x,y+1), (x,y-1) N 4 (p): Set of the 4- neighbors of p. Limitations? (x-1,y) (x,y-1) (x,y+1) (x+1,y)

8-Neighbors A pixel has 4 diagonal neighbors (x+1,y+1), (x+1,y-1), (x-1,y+1), (x-1,y-1) (x-1, y-1) (x,y-1) (x+1, y-1) N D (p): Diagonal set of neighbors (x-1,y) (x+1,y) N 8 (p) = N 4 (p)+n D (p) Limitations? (x-1, y+1) (x,y+1) (x+1, y+1)

Connectivity Two pixels are connected if: They are neighbors (i.e. adjacent in some sense -- e.g. N 4 (p), N 8 (p), ) (x-1, y-1) (x-1,y) (x,y-1) (x,y-1) (x+1, y-1) (x+1,y) Their gray levels satisfy a specified criterion of similarity (e.g. equality, ) (x-1, y+1) (x,y+1) (x+1, y+1)

4 and 8-Connectivity (x-1, y-1) (x,y-1) (x+1, y-1) (x-1, y-1) (x,y-1) (x+1, y-1) (x-1,y) (x,y-1) (x+1,y) (x-1,y) (x,y-1) (x+1,y) (x-1, y+1) (x,y+1) (x+1, y+1) (x-1, y+1) (x,y+1) (x+1, y+1) 4-Connectivity 8-Connectivity

Distances How far is that point? Distance

D4 Distance D 4 distance (city-block distance): D 4 (p,q) = x-s + y-t forms a diamond centered at (x,y) e.g. pixels with D 4 from p 1 1 0 1 1 D 4 = 1 are the 4-neighbors of p

D8 Distance D 8 distance (chessboard distance): D 8 (p,q) = max( x-s, y-t ) Forms a square centered at p e.g. pixels with D 8 from p 1 1 1 1 1 0 1 1 1 D 8 = 1 are the 8-neighbors of p

Euclidean Distance Euclidean distance: D e (p,q) = [(x-s) + (yt) ] 1/ Points (pixels) having a distance less than or equal to r from (x,y) are contained in a disk of radius r centered at (x,y).

Topic: Image Arithmetic Dynamic Range Manipulation Neighborhoods and Connectivity Image Arithmetic Example: Background Subtraction

Arithmetic operations between images Why do I want to add these images?

Arithmetic operations between images Why do I want to add these images?

Arithmetic operations between images Slightly better... What if I add a lot of similar noisy images together?

Image Arithmetic Image 1: a(x,y) Image : b(x,y) Result: c(x,y) = a(x,y) OPERATION b(x,y) Possibilities: Addition Subtraction Multiplication Division Etc.. Why is this useful? What problems can happen?

Example Image Addition

Logic Operations Binary Images We can use Boolean Logic Operations: AND OR NOT More on this when we study mathematical morphology.

Topic: Example: Background Subtraction Dynamic Range Manipulation Neighborhoods and Connectivity Image Arithmetic Example: Background Subtraction

Example: Background Subtraction Image arithmetic is simple and powerful. Is there a person here? Where?

Background Subtraction Remember: We can only see numbers! Is there a person here? Where?

Background Subtraction What if I know this?

Background Subtraction Subtract! Limitations?

Background Subtraction Objective: Separate the foreground objects from a static background. Large variety of methods: Mean & Threshold [CD04] Normalized Block Correlation [Mats00] Temporal Derivative [Hari98] Single Gaussian [Wren97] Mixture of Gaussians [Grim98] Segmentation!! More on this later.

Resources R. Gonzalez, and R. Woods Chapter R. Gonzalez, and R. Woods Chapter 4 K. Toyama, J. Krumm, B. Brumitt, and B. Meyers, Wallflower: Principles and practice of background maintenance, in Proc. of IEEE ICCV, Corfu, Greece, 1999.