Image processing. Image formation. Brightness images. Pre-digitization image. Subhransu Maji. CMPSCI 670: Computer Vision. September 22, 2016

Similar documents
from: Point Operations (Single Operands)

ECC419 IMAGE PROCESSING

Computer Vision. Intensity transformations

Digital Image Processing. Lecture # 3 Image Enhancement

Image Processing. Michael Kazhdan ( /657) HB Ch FvDFH Ch. 13.1

Image Processing. Adam Finkelstein Princeton University COS 426, Spring 2019

RGB colours: Display onscreen = RGB

DIGITAL IMAGE PROCESSING (COM-3371) Week 2 - January 14, 2002

BBM 413 Fundamentals of Image Processing. Erkut Erdem Dept. of Computer Engineering Hacettepe University. Point Operations Histogram Processing

BBM 413 Fundamentals of Image Processing. Erkut Erdem Dept. of Computer Engineering Hacettepe University. Point Operations Histogram Processing

BBM 413! Fundamentals of! Image Processing!

IMAGES AND COLOR. N. C. State University. CSC557 Multimedia Computing and Networking. Fall Lecture # 10

Image Processing COS 426

Histogram equalization

Image representation, sampling and quantization

Digital Imaging Rochester Institute of Technology

CS 89.15/189.5, Fall 2015 ASPECTS OF DIGITAL PHOTOGRAPHY COMPUTATIONAL. Image Processing Basics. Wojciech Jarosz

Lecture 8. Color Image Processing

Human Vision, Color and Basic Image Processing

Digital Image Processing. Lecture # 4 Image Enhancement (Histogram)

What is an image? Images and Displays. Representative display technologies. An image is:

Computing for Engineers in Python

IMAGE PROCESSING: POINT PROCESSES

December 28, Dr. Praveen Sankaran (Department of ECE NIT Calicut DIP)

Image Processing Lecture 4

Computer Graphics. Si Lu. Fall er_graphics.htm 10/02/2015

What is an image? Bernd Girod: EE368 Digital Image Processing Pixel Operations no. 1. A digital image can be written as a matrix

CS 376A Digital Image Processing

Image Processing for Mechatronics Engineering For senior undergraduate students Academic Year 2017/2018, Winter Semester

TDI2131 Digital Image Processing

Image Processing. Adrien Treuille

Images and Displays. Lecture Steve Marschner 1

Digital Images & Image Quality

Graphics and Image Processing Basics

Image Processing for feature extraction

Part I Feature Extraction (1) Image Enhancement. CSc I6716 Spring Local, meaningful, detectable parts of the image.

What is image enhancement? Point operation

Image Enhancement contd. An example of low pass filters is:

Image restoration and color image processing

Histograms and Color Balancing

IMAGE ENHANCEMENT IN SPATIAL DOMAIN

Image and Multidimensional Signal Processing

Table of contents. Vision industrielle 2002/2003. Local and semi-local smoothing. Linear noise filtering: example. Convolution: introduction

Last Lecture. Lecture 2, Point Processing GW , & , Ida-Maria Which image is wich channel?

Filtering. Image Enhancement Spatial and Frequency Based

CoE4TN4 Image Processing. Chapter 3: Intensity Transformation and Spatial Filtering

DSP First Lab 06: Digital Images: A/D and D/A

Image Processing Computer Graphics I Lecture 20. Display Color Models Filters Dithering Image Compression

MATLAB Image Processing Toolbox

Preparing Remote Sensing Data for Natural Resources Mapping (image enhancement, rectifications )

Prof. Feng Liu. Fall /02/2018

Towards Real-time Hardware Gamma Correction for Dynamic Contrast Enhancement

Image Enhancement: Histogram Based Methods

CS 376b Computer Vision

Images and Displays. CS4620 Lecture 15

Fundamentals of Multimedia

DIGITAL IMAGE PROCESSING Quiz exercises preparation for the midterm exam

Digital Image Processing. Lecture # 8 Color Processing

Image and Video Processing

Digital Image Processing

>>> from numpy import random as r >>> I = r.rand(256,256);

Introduction to Multimedia Computing

A guide to SalsaJ. This guide gives step-by-step instructions on how to use SalsaJ to carry out basic data analysis on astronomical data files.

Introduction. Computer Vision. CSc I6716 Fall Part I. Image Enhancement. Zhigang Zhu, City College of New York

LAB 2: Sampling & aliasing; quantization & false contouring

Cvision 2. António J. R. Neves João Paulo Silva Cunha. Bernardo Cunha. IEETA / Universidade de Aveiro

>>> from numpy import random as r >>> I = r.rand(256,256);

Color Image Processing II

Digital Imaging and Multimedia Point Operations in Digital Images. Ahmed Elgammal Dept. of Computer Science Rutgers University

Chapter 3 Part 2 Color image processing

Image Filtering. Reading Today s Lecture. Reading for Next Time. What would be the result? Some Questions from Last Lecture

Keywords-Image Enhancement, Image Negation, Histogram Equalization, DWT, BPHE.

Overview. Pinhole camera model Projective geometry Vanishing points and lines Projection matrix Cameras with Lenses Color Digital image

Prof. Feng Liu. Fall /04/2018

The Noise about Noise

3. The histogram of image intensity levels

Assignment: Light, Cameras, and Image Formation

Color Image Processing

ECU 3040 Digital Image Processing

Image Processing. 2. Point Processes. Computer Engineering, Sejong University Dongil Han. Spatial domain processing

General Imaging System

PARAMETRIC ANALYSIS OF IMAGE ENHANCEMENT TECHNIQUES

Image Enhancement (from Chapter 13) (V6)

Image Processing by Bilateral Filtering Method

Image enhancement. Introduction to Photogrammetry and Remote Sensing (SGHG 1473) Dr. Muhammad Zulkarnain Abdul Rahman

DIGITAL IMAGE PROCESSING

Computer Vision. Howie Choset Introduction to Robotics

1 W. Philpot, Cornell University The Digital Image

IMAGE PROCESSING FOR EVERYONE

Image processing in MATLAB. Linguaggio Programmazione Matlab-Simulink (2017/2018)

BSB663 Image Processing Pinar Duygulu. Slides are adapted from Gonzales & Woods, Emmanuel Agu Suleyman Tosun

Image Processing (EA C443)

Images. CS 4620 Lecture Kavita Bala w/ prior instructor Steve Marschner. Cornell CS4620 Fall 2015 Lecture 38

An Efficient Color Image Segmentation using Edge Detection and Thresholding Methods

CS 4501: Introduction to Computer Vision. Filtering and Edge Detection

IMAGE ENHANCEMENT - POINT PROCESSING

Sampling and pixels. CS 178, Spring Marc Levoy Computer Science Department Stanford University. Begun 4/23, finished 4/25.

A Novel Approach of Compressing Images and Assessment on Quality with Scaling Factor

USE OF HISTOGRAM EQUALIZATION IN IMAGE PROCESSING FOR IMAGE ENHANCEMENT

Session 1. by Shahid Farid

Transcription:

Image formation Image processing Subhransu Maji : Computer Vision September 22, 2016 Slides credit: Erik Learned-Miller and others 2 Pre-digitization image What is an image before you digitize it? Continuous range of wavelengths 2-dimensional extent Continuous range of power at each point Brightness images To simplify, consider only a brightness image Two-dimensional (continuous range of locations) Continuous range of brightness values This is equivalent to a two-dimensional function over a plane 3 4

An image as a surface Discretization Sampling strategies Spatial sampling How many pixels? What arrangement of pixels? Brightness sampling How many brightness values? Spacing of brightness values? For video, also the question of time sampling. How do we represent this continuous two dimensional surface efficiently? 5 6 Signal quantization Goal: determine a mapping from a continuous signal (e.g. analog video signal) to one of K discrete (digital) levels. Quantization I(x,y) = continuous signal: 0 I M Want to quantize to K values 0,1,...K-1 K usually chosen to be a power of 2: K: #Levels #Bits 2 1 4 2 8 3 16 4 32 5 64 6 128 7 256 8 Mapping from input signal to output signal is to be determined. Several types of mappings: uniform, logarithmic, etc. 7 8

Choice of K Choice of K 9 10 False contours problem Choice of the function: uniform Uniform sampling divides the signal range [0-M] into K equal-sized intervals. The integers 0,...K-1 are assigned to these intervals. All signal values within an interval are represented by the associated integer value. Defines a mapping: original image 16 colors with random noise Dithering adds random noise to reduce false contours https://en.wikipedia.org/wiki/dither 11 12

Logarithmic quantization Logarithmic quantization Signal is: log I(x,y) Effect is: Detail enhanced in the low signal values at expense of detail in high signal values. 13 14 Color displays White text on color display Given a 24 bit color image (8 bits for R, G, B) Turn on 3 subpixels with power proportional to RGB values A single pixel. https://en.wikipedia.org/wiki/file:pixel_geometry_01_pengo.jpg 15 http://en.wikipedia.org/wiki/subpixel_rendering 16

Lookup tables Lookup tables 8 bit image: 256 different values. Simplest way to display: map each number to a gray value: 0 g (0.0, 0.0, 0.0) or (0,0,0) 1 g (0.0039, 0.0039, 0.0039) or (1,1,1) 2 g (0.0078, 0.0078, 0.0078) or (2,2,2)... 255 g (1.0, 1.0, 1.0) or (255,255,255) This is called a grayscale mapping. 17 18 Non-gray lookup tables More colormaps We can also use other mappings: 0 g (17, 25, 89) 1 g (45, 32, 200)... 255 g (233,1,4) These are called lookup tables. colormap jet; colormap winter; 19 20

Fun with Matlab Enhancing images What can we do to enhance an image after it has already been digitized? We can make the information that is there easier to visualize. We can guess at data that is not there, but we cannot be sure, in general. contrast enhancement deblurring 21 22 Contrast enhancement Two methods: Normalize the data (contrast stretching) Transform the data (histogram equalization) Contrast stretching histogram before map this to 0 map this to 255 after 23 image source: wikipedia 24

Contrast stretching Matlab demo Basic idea: scale the brightness range of the image to occupy the full range of values I map this to 0 f loor imcontrast() contrast stretching I min(i) 255 max(i) min(i) map this to 255 Issues: What happens if there is one bright pixel? What happens if there is one dark pixel? 25 Histogram equalization 26 Histogram equalization histogram Let, pn = number of pixels with intensity n total number of pixels n 2 {0, L 1} If each intensity value k is mapped to T(k) before make the distribution close to the uniform distribution T (k) = floor (L 1) k X n=0 pn! Then T(k) is roughly a uniform distribution (why?) https://en.wikipedia.org/wiki/histogram_equalization after 27 28

Histogram equalization approximately uniform source: http://www.math.uci.edu/icamp/courses/math77c/demos/hist_eq.pdf 29