Image Transforms Transforming images to images. Classification of Image Transforms Point transforms –modify individual pixels –modify pixels’ locations.

Slides:



Advertisements
Similar presentations
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 4 – Digital Image Representation Klara Nahrstedt Spring 2009.
Advertisements

November 12, 2013Computer Vision Lecture 12: Texture 1Signature Another popular method of representing shape is called the signature. In order to compute.
Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
Spatial Filtering (Chapter 3)
Topic 6 - Image Filtering - I DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Image Processing Lecture 4
Transforming images to images
Chapter 3 Image Enhancement in the Spatial Domain.
Computer vision: models, learning and inference Chapter 13 Image preprocessing and feature extraction.
Digital Image Processing Chapter 5: Image Restoration.
Image Processing A brief introduction (by Edgar Alejandro Guerrero Arroyo)
July 27, 2002 Image Processing for K.R. Precision1 Image Processing Training Lecture 1 by Suthep Madarasmi, Ph.D. Assistant Professor Department of Computer.
Digital Image Processing
CS292 Computational Vision and Language Image processing and transform.
E.G.M. PetrakisFiltering1 Linear Systems Many image processing (filtering) operations are modeled as a linear system Linear System δ(x,y) h(x,y)
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
Multimedia communications EG 371Dr Matt Roach Multimedia Communications EG 371 and EE 348 Dr Matt Roach Lecture 6 Image processing (filters)
6/9/2015Digital Image Processing1. 2 Example Histogram.
Image Filtering CS485/685 Computer Vision Prof. George Bebis.
Visual Information Systems Basic images processing.
Digital Image Processing Chapter 5: Image Restoration.
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.
Visual Information Systems Image Content. Visual cues to recover 3-D information There are number of cues available in the visual stimulus There are number.
Image Enhancement.
CS292 Computational Vision and Language Visual Features - Colour and Texture.
Computational Photography: Image Processing Jinxiang Chai.
Basic Image Processing January 26, 30 and February 1.
Radiometric Correction and Image Enhancement
Introduction to Image Processing Grass Sky Tree ? ? Review.
Chapter 2. Image Analysis. Image Analysis Domains Frequency Domain Spatial Domain.
CS 376b Introduction to Computer Vision 02 / 26 / 2008 Instructor: Michael Eckmann.
Chapter 10: Image Segmentation
Presentation Image Filters
Neighborhood Operations
Spatial-based Enhancements Lecture 3 prepared by R. Lathrop 10/99 updated 10/03 ERDAS Field Guide 6th Ed. Ch 5: ;
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
Spatial Filtering: Basics
Texture. Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result.
University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell Image processing.
EE663 Image Processing Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Image Processing Edge detection Filtering: Noise suppresion.
Digital Image Processing Lecture 10: Image Restoration March 28, 2005 Prof. Charlene Tsai.
Digital Image Processing Lecture 10: Image Restoration
1 Statistics, Data Analysis and Image Processing Lectures Vlad Stolojan Advanced Technology Institute University of Surrey.
COMP322/S2000/L171 Robot Vision System Major Phases in Robot Vision Systems: A. Data (image) acquisition –Illumination, i.e. lighting consideration –Lenses,
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Distinctive Image Features from Scale-Invariant Keypoints David Lowe Presented by Tony X. Han March 11, 2008.
Autonomous Robots Vision © Manfred Huber 2014.
Edges.
Visual Information Systems Lilian Tang. Description of Content – image processing Primitive image properties Primitive image properties Through image.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities May 2, 2005 Prof. Charlene Tsai.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
图像处理技术讲座(3) Digital Image Processing (3) Basic Image Operations
- photometric aspects of image formation gray level images
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Image Pre-Processing in the Spatial and Frequent Domain
An Adept Edge Detection Algorithm for Human Knee Osteoarthritis Images
Filtering – Part I Gokberk Cinbis Department of Computer Engineering
Feature description and matching
Image Processing - in short
IMAGE PROCESSING AKSHAY P S3 EC ROLL NO. 9.
Histogram Histogram is a graph that shows frequency of anything. Histograms usually have bars that represent frequency of occuring of data. Histogram has.
Computer Vision Lecture 16: Texture II
Department of Computer Engineering
Feature descriptors and matching
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
Image Enhancement in the Spatial Domain
Review and Importance CS 111.
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Presentation transcript:

Image Transforms Transforming images to images

Classification of Image Transforms Point transforms –modify individual pixels –modify pixels’ locations Local transforms –output derived from neighbourhood Global transforms –whole image contributes to each output value

Point Transforms Manipulating individual pixel values –Brightness adjustment –Contrast adjustment Histogram manipulation –equalisation Image magnification

Monadic, Point-by-point Operators Monadic point-to-point operator

Brightness Adjustment Add a constant to all values g’ = g + k (k = 50)

Contrast Adjustment Scale all values by a constant g’ = g*k (k = 1.5)

Contrast Enhancement Add Subtract Multiply Divide Maximum Minimum

A sub-image (x-1, y-1) (x, y-1) (x+1, y-1) (x-1, y) (x,y) (x+1,y) (x-1,y+1) (x, y+1) (x+1, y+1)

Intensity Shift C(x,y) <= Where k is a user defined variable 0 a(x,y)+k < 0 a(x,y) +k 0<=a(x,y) +k <=W W W<a(x,y) +k

Image Histogram Measure frequency of occurrence of each grey/colour value

Histogram Manipulation Modify distribution of grey values to achieve some effect

Histogram Equalization An important operator for image enhancement is given by the transformation: C(x,y)<= m x n W x H (a(x,y))

Equalisation/Adaptive Equalisation Specifically to make histogram uniform

Retrieval based on colour Retrieval by colour similarity requires that models of colour stimuli are used, such that distances in the colour space correspond to human perceptual distances between colours. Colour patterns must be represented in such a way that salient chromatic properties are captured.

Colour Histogram Application example - colour histogram retrieval: This method is to retrieve images from the database that have perceptually similar colour to the input image or input description from the user. The basic idea is to quantize each of the RGB values into m intervals resulting in a total number of m 3 colour combinations (or bins) A colour histogram H(I) is then constructed. This colour histogram is a vector {h1, h2, …, hm 3 } where element hx represents the number of pixels in image I falling within bin x.

Colour Histogram The colour histogram becomes the index of this image To retrieve image from the database, the user supplies either a sample image or a specification for the system to construct a colour histogram H(Q). A distance metric is used to measure the similarity between H(Q) and H(I). Where I represents each of the images in the database. And example distance metric is shown as follows: x=m 3 D(Q, I ) =  |q x -i x | x=1 Where q x and i x are the numbers of pixels in the image Q and I, respectively, falling within bin x.

Colour Histogram may fail in recognizing images with perceptually similar colours but no common colours. This may be due to a shift in colour values, noise or change in illumination. – measure the similarity Not enough for complicated images where spatial position is more important information. –May consider dividing each image into multiple regions and compare the colour histograms of the same regions in the images. May combine with other methods such as shape and/or texture based retrieval to improve the accuracy of the retrieval.

Threshold This is an important function, which converts a grey scale image to a binary format. Unfortunately, it is often difficult, or even impossible to find satisfactory values for the user defined integer threshold value

Threshold C(x,y) <= for (int y=0; y<height; y++) for(int x=0; x<width; x++) if (input.getxy(x,y) < threshold) output.setxy(x,y, BLACK); else output.setxy(x,y,WHITE); W a(x,y)>=threshold 0 otherwise

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

Threshold Value Manual –User defines a threshold P-Tile Mode Other automatic methods

Image Magnification 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

Local Transforms Convolution Applications –smoothing –sharpening –matching

Local Operators The concept behind local operators is that the intensities of several pixels are combined together in order to calculate the intensity of just one pixel. Amongst the simplest of the local operators are those which use a set of nine pixels arranged in a 3 x 3 square region. It computes the value for one pixel on the basis of the intensities within a region containing 3 x 3 pixels. Other local operators employ larger windows.

Local Operators

Convolution Definition Place template on image Multiply overlapping values in image and template Sum products and normalise (Templates usually small)

Example ImageTemplateResult … … … … … … … … … … … … … … … … … Divide by template sum

Separable Templates Convolve with n x n template –n 2 multiplications and additions Convolve with two n x 1 templates –2n multiplications and additions

Example Laplacian template Separated kernels 0 – –1 0 –

Applications Usefulness of convolution is the effects generated by changing templates –Smoothing Noise reduction –Sharpening Edge enhancement

Smoothing Aim is to reduce noise What is “noise”? How is it reduced –Addition –Adaptively –Weighted

Noise Definition Noise is deviation of a value from its expected value –Random changes x  x + n –Salt and pepper x  {max, min}

Noise Reduction By smoothing  (x + n) =  (x) +  (n) =  (x) –Since noise is random and zero mean Smooth locally or temporally Local smoothing –Removes detail –Introduces ringing

Adaptive Smoothing Compute smoothed value, s Output = s if |s – x| > T x otherwise

Median Smoothing Median is one value in an ordered set:  median =  median = 4.5

OriginalSmoothed Median Smoothing

Sharpening What is it? –Enhancing discontinuities –Edge detection Why do it? –Perceptually important –Computationally important

Edge Definition An edge is a significant local change in image intensity.

Algorithms for Edge Detection Algorithms for detecting edges - edge detectors –differentiation based estimated the derivatives of the image intensity function, the idea being that large image derivatives reflect abrupt intensity changes. –Model based determine whether the intensities in a small area conform to some model for the edges that we have assumed.

First Derivative, Gradient Edge Detection If an edge is a discontinuity Can detect it by differencing

Roberts Cross Edge Detector Simplest edge detector Inaccurate localisation

Prewitt/Sobel Edge Detector

Edge Detection Combine horizontal and vertical edge estimates

Example Results

Global Transforms Computing a new value for a pixel using the whole image as input Cosine and Sine transforms Fourier transform –Frequency domain processing Hough transform Karhunen-Loeve transform Wavelet transform

Geometric Transformations Definitions –Affine and non-affine transforms Applications –Manipulating image shapes

Affine Transforms Scale, Shear, Rotate, Translate Change values of transform matrix elements according to desired effect. a, e  scaling b, d  shearing a, b, d, e  rotation c, f  translation = x’ y’ 1 [] a b c d e f g h i [] xy1xy1 [] Length and areas preserved.

Affine Transform Examples

Warping Example Ansell Adams’ Aspens

Image Resampling Moving source to destination pixels x’ and y’ could be non-integer Round result –can create holes in image Manipulate in reverse –where did warped pixel come from –source is non-integer interpolate nearest neighbours

Summary Point transforms –scaling, histogram manipulation,thresholding Local transforms –edge detection, smoothing Global transforms –Fourier, Hough, Principal Component, Wavelet Geometrical transforms