Image Fundamentals (CH 2)
Image Fundamentals (CH 2)
Course Teacher:
Mayen Uddin Mojumdar
Senior Lecturer
Department of Computer Science and Engineering
Daffodil International University
Dr. M. S. Uddin, CSE Dept, JU 2
Simple Image Representation
0 (width-1)
0
Represent an
image as a 2D
array.
Indices represent
the spatial
location Picture Element (pixel)
Values represent
light intensity (height-1)
Binary images are generated using threshold operation. When a pixel is above the threshold value, then it is turned
white('1') and which are below the threshold value then they are turned black('0')
4
Types of Image
2. Gray-scale images
Grayscale images are monochrome images, Means they have only one color. Grayscale
images do not contain any information about color. Each pixel determines available different
grey levels.
A normal grayscale image contains 8 bits/pixel data, which has 256 different grey levels. In
medical images and astronomy, 12 or 16 bits/pixel images are used
5
Types Of Image
3. Colour images
Colour images are three band monochrome images in which, each band contains a
different color and the actual information is stored in the digital image. The color
images contain gray level information in each spectral band.
The images are represented as red, green and blue (RGB images). And each color image
has 24 bits/pixel means 8 bits for each of the three color band(RGB).
6
Imaging
10
Sampling and Quantization..
11
Image Coordinate System
Magic Number Header Pixel Data (in some format … perhaps compressed)
Magic Number Header Pixel Data (in some format … perhaps compressed)
PNG OxD3PNG
GIF GIF89a
JPEG OxFFD8FFE0JFIF\0
PPM ASCI P3
magic number
P2
comment # small little image
7 7 255
width height max_value 120 120 120 120 120 120 120
120 120 120 33 120 120 120
120 120 120 33 120 120 120
pixel values 120 33 33 33 33 33 120
120 120 120 33 120 120 120
120 120 120 33 120 120 120
120 120 120 120 120 120 120
22
THANKS…