Rl:4488
Dip assignment solution :
1- Number of levels = 2^n which means 2^3 =8
There is 8 levels
Step size = range/number of levels : 256/8 = 32
I used 256 because it starts from 0 to 255 well then the range will counted 256
Quantized value :
Number of pixel/step size = 100/32 = 3.125
It is 3
City Block (Manhattan) distance : d=∣x2−x1∣+∣y2−y1∣ = d=∣7−3∣+∣1−4∣
2- Euclidean distance : d = (x2−x1)2+(y2−y1)2 = d=(7−3)2+(1−4)2 = 5
= 7