Digital Image Processing
Introduction
Sajeeb Kumar Ray
Lecturer
Dept. of CSE
Varendra University
sajeeb@[Link]
A digital image is a representation of a two-dimensional
image as a finite set of digital values, called picture elements
or pixels. In mathematics, an image is described as a
two-dimensional function f(x,y)
x,y→ spatial (Cartesian) coordinates
f(x,y)→ intensity (brightness) value at that location
1. Binary Image: Pixel values: 0 or 1
2. Grayscale Image: Common range: 0–255
● 0 → Black
● 255 → White
3. RGB (Color) Image: Composed of Red, Green, Blue channels
● Each channel typically ranges 0–255
A binary image is a digital image in which each pixel has
only two possible values, usually 0 or 1.
1 0 1
0 1 0
1 0 1
A grayscale image is a digital image where each pixel
represents only intensity (brightness) information without
color.
An RGB image is a color digital image composed of three
separate channels: Red ®, Green (G), Blue (B) Each pixel is
represented as a combination of three intensity values.
Each channel range (8-bit): 0 – 255; Total possible colors:
256³ ≈ 16.7 million
Common spectrum to create RGB image:
Blue Channel: 450 nm to 500 nm
Green Channel: 500 nm to 600 nm
Red Channel: 600 nm to 700 nm
Other types of images
A multispectral image is a digital image that contains image
data captured in a small number of discrete spectral bands,
typically more than three, across different regions of the
electromagnetic spectrum.
A hyperspectral image is a digital image that contains
hundreds of contiguous, narrow spectral bands, providing a
detailed spectral signature for each pixel.
Hyperspectral Imaging and Application in Agriculture
● Covers visible and near-infrared spectral ranges
○ Visible (VIS): 400–700 nm — color, pigmentation,
disease symptoms
○ Near-Infrared (NIR): 700–1,000 nm — cell structure,
water status, stress response
● Sensitive to early physiological and biochemical changes
○ Detects stress before visible symptoms appear
through spectral variations
● Links spectral signatures to plant health indicators
○ Chlorophyll absorption, red-edge shift, and
moisture-related responses
● High spectral dimensionality motivates explainable and
transparent models
Digital Image Processing (DIP) deals with the manipulation
and analysis of digital images using computer algorithms to
improve image quality, extract useful information, or support
decision-making.
Applications of DIP
● Medical Imaging: X-ray, MRI, CT scan analysis
● Remote Sensing: Satellite and aerial image analysis
● Computer Vision: Face recognition, object detection
● Agriculture: Crop health monitoring, disease detection
● Security & Surveillance: Motion detection, biometric
systems
● Industrial Inspection: Defect detection, quality control
Levels of Digital Image Processing
Key Stages in Digital Image Processing