An Introduction to Digital Image Processing Dr.Amnach Khawne Department of Computer Engineering, KMITL
Score Programming Assignment + Homework 30% Examination – Final 45% Project – Proposal is proposed by STUDENTs 25% Ref. Books : An Introduction to Digital Image Processing with Matlab ; Alasdair McAndrew Tools: MATLAB or others programs
1.1 Images and pictures we can identify a face in an instant; we can differentiate colors; we can process a large amount of visual information very quickly. “an image is a single picture which represents something.”
1.2 What is image processing? Image processing involves changing the nature of an image in order to either 1. improve its pictorial information for human interpretation, 2. render it more suitable for autonomous machine perception.
1.2 What is image processing? We shall be concerned with digital image processing, which involves using a computer to change the nature of a digital image. (1)a procedure which makes an image look better (2) Humans like their images to be sharp, clear and detailed; machines prefer their images to be simple and uncluttered.
Example of (1) Image sharpening
Example of (1) Removing noise from an image
Example of (1) Removing motion blur from an image.
Example of (2) Obtaining the edges of an image.
Removing detail from an image.
Camera360: Mobile Photography Toolbox photography-toolbox/
1.3 Image Acquisition and sampling Sampling refers to the process of digitizing a continuous function. For example, suppose we take the function
Effects of sampling
Producing a digital image Light is the predominant energy source for images; simply because it is the energy source which human beings can observe directly. We are all familiar with photographs, which are a pictorial record of a visual scene. Many digital images are captured using visible light as the energy source; this has the advantage of being safe, cheap, easily detected and readily processed with suitable hardware. Two very popular methods of producing a digital image are with a digital camera or a flat-bed scanner.
CCD camera sor.php
Flat bed scanner static.com/images/extra/large/scan ner-large.gif ware-Input-scanner-flatbed.svg
Other energy sources Visible light is part of the electromagnetic spectrum
Sources of images Sources of images: computer graphics software, scanners, digital cameras, digital video recorder, other equipment… Image formation process (X, Y, Z): the world coordinate of a point on the object (x, y): the image coordinate of a point on the image plane (through perspective projection) Image plane: an array of charged coupled devices (CCD)
A digital image A digital image differs from a photo in that the x, y and f(x,y) values are all discrete.
Image Formation (Gray Scale) Intensity Image ( ความเข้ม ของสี ) มีค่าตั้งแต่ 0…255 ( ในระดับ Gray Scale) 0 –> Black, 100 –> Gray, 255 -> White …....………… 20
Pixel 21 -The word pixel is an abbreviation of ‘picture element’.
1.4 Images and digital images MATLAB commands: h = imshow('bag.png'); info = imfinfo('bag.png'); imageinfo(h,info);
1.5 Some applications of image processing Registering Multimodal MRI Images
1.5 Some applications of image processing
General Framework of image processing
1.6 Aspects of image processing Image enhancement. This refers to processing an image so that the result is more suitable for a particular application. Example include: – sharpening or de-blurring an out of focus image, – highlighting edges, – improving image contrast, or brightening an image – removing noise
Image restoration Image restoration. This may be considered as reversing the damage done to an image by a known cause, for example: removing of blur caused by linear motion, removing of optical distortions,
1.7 An image processing task Acquiring the image Preprocessing – enhancing the contrast, – removing noise, – Identifying regions Segmentation Representation and description Recognition and interpretation
1.8 Types of digital images Binary image : Each pixel is just black or white. Since there are only two possible values for each pixel, we only need one bit per pixel.
Grayscale image Grayscale. Each pixel is a shade of grey
A true color image RGB model: red, green, and blue primaries
Indexed Color
Spatial Resolution