Professional Documents
Culture Documents
Lecture33 Image
Lecture33 Image
INSTRUCTOR’S MATERIALS
PowerPoint Slides
MULTIMEDIA
Chapter -3
Image
RANJAN PAREKH
PROPRIETARY MATERIAL. © 2013 The McGraw-Hill Companies, Inc. All rights reserved. No part of this PowerPoint slide may be displayed, reproduced or distributed in any
form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their
individual course preparation. If you are a student using this PowerPoint slide, you are using it without permission. 1
RANJAN PAREKH Principles of MULTIMEDIA, 2E © 2013 Tata McGraw-Hill Education
Contents
• Image Data Representation
• Image Acquisition
• Image Processing
• Binary Image Processing
• Grayscale Image Processing
• Color Image Processing
• Image Output on Monitors
• Image Output on Printers
• Image File Formats
• Image Processing Software
Image Acquisition
• Scanner
– Light reflected from document falls on set of electronic sensors called CCD (charge coupled device)
– The sensors convert light into electrical signals which are fed to an ADC to convert to digital values
– A scanning software helps to save the values to a digital image file.
– The software also specifies parameters like image size, resolution, file type, color & tonal corrections
– The CCD produces signals proportional to the luminance information of a pixel
– For color scans, three CCDs per pixel is used along with optical splitters
– Generally 3 types of scanners used : flatbed scanners, drum scanners, bar-code scanners
Image Acquisition
• Scanner software
– Software used to specify output path, file type, bit depth, dimensions, brightness/contrast, color etc.
– Graphical interface enables users to change/ set these values
– Certain transformation operations like invert, flip etc. might also be possible
– Users can preview output image before finally saving them
Image Acquisition
• Scanned image
– Quality of scanned image is determined mostly by its resolution and bit-depth
– Resolution determines how closely pixel information is acptured
– Optical resolution refers to the actual number of sensor elements per unit inch of the scan head
– Interpolated resolution use interpolation techniques to increase resolution
– Color-depth indicates the total numbers of colors that can be represented
Image Acquisition
• Digital Camera
– In a digital camera light from an object is focused by a lens onto a CCD array
– Electrical signals generated from CCD are digitized via an ADC
– To reduce space requirements images are compressed by passing through a signal processor
– A CAMERA mode enables one to capture images
– A PLAY mode allows one to browse through the stored images and manipulate them
– Other facilities might include self-timer, automatic flash, inbuilt microphones etc.
Image Acquisition
• Interface Standards
– Provides standardized interfaces between hardware devices like scanner or digital camera, and
image capture software
– TWAIN and ISIS form an intermediate layer between software applications and devices, so that
these do not need to communicate directly with each other
– Applications send image acquisition request to the interface layer which are passed on to the device
– The device sends the acquired image data to the interface layer which are passed on to the
application
Image Processing
• Overview
– Low-level image processing involves reading pixel values of digital images and modifying their color
and tonal qualities like brightness and contrast
– Mid-level image processing involves generation of attribute values from image pixels e.g.
segmentation borders, histograms, edge contours etc.
– High-level image processing involves semantic recognition of objects from images e.g. sky, grass,
water, rock, buildings etc.
– Data analysis and visualization tools like MATLAB are frequently used in image processing tasks by
treating images as matrices of pixel values
– Image enhancement implies improving visual clarity of images
– Image restoration involves improving a degraded image to its original condition
– Image segmentation involves partitioning images into constituent parts
– Image compression involves a set of techniques to compress file size of images
– Image indexing is a set of techniques enabling quick and efficient searching of images
Image Processing
• Basic operations
– Reading an image and displaying information related to it
– Displaying part or whole of the image
– Conversions between color and grayscale versions
– Changing image quality and resolution
– Writing images back to disk in specified formats
– Associated MATLAB commands : imread, imshow, imfinfo, rgb2gray, size, whos, imwrite
Image Processing
• Arithmetic operations
– Involve addition of two or more images, aslo with scalars : I3 = I1 + I2, I4 = I1 + K
– Subtraction of images : D1 = I6 – I5, D2 = |I6 – I5|
– Multiplication of an image with a scalar quantity : I8 = I7 * K, I9 = I8/K
– Linear combinations :
I10 = 0.2*I1 + 0.8*I8, I11 = – 0.2*I1 + 0.8*I8, I12 = 0.8*I1 + 0.2*I8, I13 = 0.8*I1 – 0.2*I8
Image Processing
• Correlation and convolution
– Involves sliding a filter mask or kernel containing a set of coefficients over an image
– Kernel is moved in a sequential manner from left to right and top to bottom
– At any position of the kernel the image pixel below the center of the kernel is allotted a new value
– New value is generated by multiplying the neighbouring pixel values within the boundary of kernel
by coefficients of the kernel and adding them up.
– Correlation and convolution is similar except for the latter the kernel is first rotated by 90 degrees
– Associated MATLAB commands : imfilter
Image Processing
• Affine transformations
– Involves linear combination of translation, rotation, scaling
– Translation : portions of images moved by adding increments to their locations along X and Y axes
– Rotation : portions of images rotated by an angle about a pivot point in CW or CCW directions
– Scaling : dimensions of image portions changed by multiplying scalar quantities along X and Y axes
– Associated MATLAB commands : imrotate, imresize
• LoG operator
– Image is convolved with Gaussian function after which the second derivative is computed
– Masks similar to those below are used
• AdobeRGB
– A color space created by Adobe with defined chromacity values
– Occupies 50.6% of LAB color space and uses D65 white point
• Noise modeling
– On color images work the same way as
grayscale or binary images, but all three
color matrices are affected
– Physically gamma correction is applied through a CLUT between the image and monitor
– A full correction of 2.5 makes the image excessively bright hence a partial correction of 1.7 is
actually applied
– To reduce W and H to W’ and H’ (W’ < W, H’ < H) but keep w and h intact
– Resolution R to be increased to R’ (R’ > R) given by
• JPEG
– 24-bit lossy compressed format based on Transform coding, for viewing photographic images
• GIF
– 8-bit format based on CLUT, supports transparency, suitable graphics, maps, logo etc.
• TIFF
– 24-bit format based on lossless compression like LZW, for printing and archiving images
• PNG
– 24-bit lossless compression for Web applications, supports transparency