Multimedia Data Introduction to Image Processing Dr Mike Spann Electronic, Electrical and Computer.

Slides:



Advertisements
Similar presentations
3-D Computer Vision CSc83020 / Ioannis Stamos  Revisit filtering (Gaussian and Median)  Introduction to edge detection 3-D Computater Vision CSc
Advertisements

Grey Level Enhancement Contrast stretching Linear mapping Non-linear mapping Efficient implementation of mapping algorithms Design of classes to support.
Spatial Filtering (Chapter 3)
Image Processing Lecture 4
EE4H, M.Sc Computer Vision Dr. Mike Spann
EE 4780 Image Enhancement. Bahadir K. Gunturk2 Image Enhancement The objective of image enhancement is to process an image so that the result is more.
1Ellen L. Walker ImageJ Java image processing tool from NIH Reads / writes a large variety of images Many image processing operations.
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 Data Introduction to Image Processing Dr Mike Spann Electronic, Electrical and Computer.
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.
MSU CSE 803 Stockman Linear Operations Using Masks Masks are patterns used to define the weights used in averaging the neighbors of a pixel to compute.
1 Vladimir Botchko Lecture 4. Image Enhancement Lappeenranta University of Technology (Finland)
Multimedia Data Introduction to Image Data Dr Mike Spann Electronic, Electrical and Computer Engineering.
1 Lecture 12 Neighbourhood Operations (2) TK3813 DR MASRI AYOB.
Image Enhancement.
Image Analysis Preprocessing Arithmetic and Logic Operations Spatial Filters Image Quantization.
Multimedia Data The DCT and JPEG Image Compression Dr Mike Spann Electronic, Electrical and Computer.
MSU CSE 803 Linear Operations Using Masks Masks are patterns used to define the weights used in averaging the neighbors of a pixel to compute some result.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean Hall 5409 T-R 10:30am – 11:50am.
02/12/02 (c) 2002 University of Wisconsin, CS 559 Filters A filter is something that attenuates or enhances particular frequencies Easiest to visualize.
Chapter 3 (cont).  In this section several basic concepts are introduced underlying the use of spatial filters for image processing.  Mainly spatial.
Image Processing1 Image Filtering Filtering can be use to enhance some features and de- enhance others. Usually used as a pre-processing step.
CSC589 Introduction to Computer Vision Lecture 3 Gaussian Filter, Histogram Equalization Bei Xiao.
Digital Images Chapter 8 Exploring the Digital Domain.
CS 376b Introduction to Computer Vision 02 / 26 / 2008 Instructor: Michael Eckmann.
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.
Digital Image Processing
University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell Image processing.
Multimedia Data Introduction to Image Processing Dr Sandra I. Woolley Electronic, Electrical.
Digital Image Processing CCS331 Relationships of Pixel 1.
Multimedia Data DCT Image Compression
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering Prof. Charlene Tsai.
Lecture 03 Area Based Image Processing Lecture 03 Area Based Image Processing Mata kuliah: T Computer Vision Tahun: 2010.
MULTIMEDIA TECHNOLOGY SMM 3001 MEDIA - IMAGES. Processing digital Images digital images are often processed using “digital filters” digital images are.
Image processing Fourth lecture Image Restoration Image Restoration: Image restoration methods are used to improve the appearance of an image.
School of Computer Science Queen’s University Belfast Practical TULIP lecture next Tues 12th Feb. Wed 13th Feb 11-1 am. Thurs 14th Feb am. Practical.
Course Website: Digital Image Processing Image Enhancement (Spatial Filtering 1)
Multimedia Data Introduction to Image Data Dr Sandra I. Woolley Electronic, Electrical and Computer.
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
Spatial Filtering (Applying filters directly on Image) By Engr. Muhammad Saqib.
Image Subtraction Mask mode radiography h(x,y) is the mask.
Autonomous Robots Vision © Manfred Huber 2014.
Intelligent Vision Systems ENT 496 Image Filtering and Enhancement Hema C.R. Lecture 4.
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 15/16 – TP7 Spatial Filters Miguel Tavares Coimbra.
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering March 9, 2004 Prof. Charlene Tsai.
: Chapter 5: Image Filtering 1 Montri Karnjanadecha ac.th/~montri Image Processing.
Digital Filters. What are they?  Local operation (neighborhood operation in GIS terminology) by mask, window, or kernel (different words for the same.
CSE 185 Introduction to Computer Vision Image Filtering: Spatial Domain.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Miguel Tavares Coimbra
Image Subtraction Mask mode radiography h(x,y) is the mask.
REMOTE SENSING Digital Image Processing Radiometric Enhancement Geometric Enhancement Reference: Chapters 4 and 5, Remote Sensing Digital Image Analysis.
Practical TULIP lecture next Tues 12th Feb. Wed 13th Feb 11-1 am.
IMAGE PROCESSING INTENSITY TRANSFORMATION AND SPATIAL FILTERING
Fourier Transform.
Histogram Histogram is a graph that shows frequency of anything. Histograms usually have bars that represent frequency of occuring of data. Histogram has.
Image Enhancement in the Spatial Domain
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Digital Image Processing
Spatial operations and transformations
Linear Operations Using Masks
Intensity Transformation
Digital Filters.
Spatial operations and transformations
Templates and Image Pyramids
Presentation transcript:

Multimedia Data Introduction to Image Processing Dr Mike Spann Electronic, Electrical and Computer Engineering

Image Processing Content  Image histograms, histogram equalization and image frequency content.  Low level image processing –Brightening, darkening, thresholding and quantizing  Simple filtering examples –Simple low-pass and high-pass filters –Median filtering  Examples will be included in the lecture session.

Image Histograms  It is easy to count the numbers of pixels at different intensity values to produce histograms.  These histograms give us useful information about the dynamic range of the image data.  The wider the spread of pixel intensities the higher the contrast. Dark image Light image Low-contrast image High-contrast image Intensity Number of pixels

Histogram Equalization  Histogram equalization can be very useful for improving image contrast by spreading pixel values across the full dynamic range.  Ideally, pixels would use a wide range of values.  See the underexposed photograph on the left. Its image histogram shows that the intensity values have a compact range between mid to light grey.  The histogram equalized photograph on the right has better contrast. Its histogram has the same shape as the original but is stretched across the full range of intensity values.

Histogram Equalization  Examples from Left: a low contrast original image. Middle: the image after linear equalization. Right: the image after selected emphasis to a range of values of interest. Low contrast Higher contrast Selective high contrast

Histogram Equalization  ImageJ demo –

Frequencies in Images  The image histogram tells us nothing about the distribution of pixel intensities in an image.  For example, a “U” shaped histogram with peaks around black and white values could be either of the images below.  We can refer to the frequency content of an image.  Smooth areas are low frequency.  Edges and other rapid changes are high frequency. These images have the same histogram. increasing frequency increasing frequency

Frequencies in Images  Signals are often efficiently represented by the addition of simple sine or cosine waves.  But there’s a problem. If we try to create a SQUARE shaped wave using these simple waves, the ripples never go away. As we add smaller and smaller amounts of higher frequency sine waves we still have ripples.  The animation on the right shows the result of adding sine waves of higher and higher frequency. The sine wave is shown on the top and the sum of all the waves is shown on the bottom. See how a rippled square shaped signal appears.  Images often contain many sharp edges just like the square wave. You can often see these rippling or ringing artefacts about edges in heavily compressed images and video. Demonstration of ringing

Filtering Frequencies  We can adjust the amount of frequencies in signals and images.  Low-pass filtering preserves (passes) lower frequencies but drops higher frequencies.  High-pass filtering preserves (passes) higher frequencies but drops lower frequencies.  Both high- and low-pass filters have their uses. Low-pass filters can remove noise from poor quality images by smoothing. High-pass filters can usefully pick out edges. Original After low-pass filtering. Appears smooth or blurred. After high-pass filtering. Edges remain.

Image Processing  Low-level –working at the pixel level, identification of edges  Medium-level –identification of regions and shapes  High-level –associating shapes with real objects. High Medium Low

Low-level Image Processing Examples Adjusting brightness  To lighten or darken images we can simply add or subtract a constant value from all pixel values. Thresholding  Used to remove grey-levels in an image or segment components.  It involves changing pixel values if they are above or below a certain value (threshold).  For example, setting all pixel values below a threshold to zero and/or above a certain value to a maximum.  Thresholding can be useful by removing unwanted variations. Example of simple thresholding Before : top After : below (threshold = 180)

Simple Image Filtering

Template Operations  Templates (in this context) are arrays of values.  Here are 3 examples;  They are very useful as simple image filters.  For example, for image smoothing or edge detection.

Template Operations  We apply a template filter to the image using a convolution operation.  Convolution involves moving the template step-by-step over the image creating a window over pixel neighbours. This will be demonstrated in the lecture.  Template and pixel values are used for computation (typically multiplication and addition) at each step. This process is referred to as convolution of the template with the image.  You will see that the new result is smaller than the original. We could avoid this by wrapping edges together (periodic convolution).

Common Templates  This is a simple 3x3 averaging (smoothing/blurring) template :-  It is an example of a low-pass filter. It passes low frequency and removes high frequency. Left: A low resolution original image. Right: After 3x3 averaging filter. Notice the blurring effect. This is caused by the averaging of pixels across every block of 9 pixels. In a higher resolution image the effects would be less noticeable for such a small filter.

Common Templates  This is a simple high-pass filter.  Both high- and low-pass filters have their uses.  Low-pass filters can remove noise from poor quality images by smoothing.  High-pass filters can detect edges. Horizontal edges, vertical edges and diagonal edges. Simple examples of detected edges. Top left: a low resolution original,Top right: horizontal edges and Below left: vertical edges and Below right: All edges

Examples

 ImageJ demo –

Median Filtering  Median filtering is useful for removing noise but usefully preserves edges. –The median is the central value in a range –Median {4,2,0,1,3,0,5} = 2  Median filtering is a popular low-pass filtering method. Pixel values are sorted and the median (middle value) is output.  Median filtering removes sparse outliers.  Sparse outliers appear as “salt and pepper” noise in images, i.e., dark pixels in light areas and light pixels in dark areas. This type of noise was common in analogue television.  You will use some simple filters in the laboratory. A median filter will be used to remove noise. Passing a 3x3 median filter over the image pixels shown above on the right produces the output on the right. Notice how the outlier (the 6) is removed.

Median Filtering  ImageJ demo –

 This concludes our introduction to image processing.  You can find course information, including slides and supporting resources, on-line on the course web page at Thank You