0% found this document useful (0 votes)
4 views1 page

Assignment One

The document outlines a dip assignment solution involving quantization with 8 levels derived from 2^3. It calculates the step size as 32 and determines the quantized value to be 3 based on 100 pixels. Additionally, it provides formulas for calculating City Block (Manhattan) distance and Euclidean distance, resulting in values of 8 and 7 respectively.

Uploaded by

Min Shosho
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Assignment One

The document outlines a dip assignment solution involving quantization with 8 levels derived from 2^3. It calculates the step size as 32 and determines the quantized value to be 3 based on 100 pixels. Additionally, it provides formulas for calculating City Block (Manhattan) distance and Euclidean distance, resulting in values of 8 and 7 respectively.

Uploaded by

Min Shosho
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

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

You might also like