Digital Image Processing
Digital Image Processing
1. Introduction
2. Importance in Digital Image Processing
3. DEFINITION OF DISTANCE MEASURES
4. EUCLIDEAN DISTANCE
5. City-Block Distance
6. Chessboard Distance
7. Comparative Analysis
8. Conclusion
2
INTRODUCTION
• TYPES COVERED:
• Euclidean Distance
• City-Block Distance
• Chessboard Distance
EUCLIDEAN DISTANCE
• DEFINITION:
EUCLIDEAN DISTANCE:
• MEASURES THE STRAIGHT-LINE DISTANCE
BETWEEN TWO POINTS IN A TWO-DIMENSIONAL OR
MULTI-DIMENSIONAL SPACE.
• IT REPRESENTS THE SHORTEST PATH BETWEEN THE
POINTS, AKIN TO THE DISTANCE YOU WOULD
TRAVEL IN A STRAIGHT LINE.
FORMULA:
FOR TWO POINTS (X1,Y1) AND (X2,Y2) IN A 2D
PLANE, THE EUCLIDEAN DISTANCE 'D' IS
CALCULATED AS:
D = √(X1-X2)^2 + (Y1-Y2)^2
• Definition:
City-Block Distance, also known as Manhattan Distance,
measures the distance between two points by summing the
absolute differences of their coordinates along the axes at right
angles.
City-Block It is akin to the distance you would travel if you were restricted
to moving along grid lines, such as navigating through city
Distance streets arranged in a grid pattern.
(Manhattan • Formula:
Distance) For two points (x1,y1) and (x2,y2) in a 2D plane, the City-Block
distance D is calculated as:
d = |x2 - x1| + |y2 - y1|
6
Chessboard Distance (Chebyshev Distance)
Definition:
• Chessboard Distance, also known as Chebyshev Distance, measures the distance
between two points by considering the maximum of the absolute differences along each
dimension.
• It reflects the distance on a grid where movement is allowed in all directions equally,
similar to the movement of a king on a chessboard which can move any number of
squares horizontally, vertically, or diagonally.
Formula:
• For two points (x1,y1)(x_1, y_1)(x1 ,y1 ) and (x2,y2)(x_2, y_2)(x2 ,y2 ) in a 2D plane,
the Chessboard distance d is calculated as:
d = max (∣x2−x1∣,∣y2−y1∣)
Comparative Analysis
Euclidean Distance vs. City-Block Distance vs. Chessboard Distance
Comparative Summary Table:
Maximum coordinate
Definition Straight-line distance Grid-based distance
difference
D = √(X1-X2)^2 + (Y1-
Formula d = |x2 - x1| + |y2 - y1| d = max
(∣x2−x1∣,∣y2−y1∣)
Y2)^2
10