Question

2. For the image in Fig 2 where pixels are designated as 1s on a background of0s, determine (a) the area (b) the minimum aspect ratio (c) the centroid (d) Compactness Choose the origin (0,0) of the image coordinates in the upper left-handed comer 0 0 1 1 1 1 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 1 1 1 0 0 0 0 1 1 1 0 0 0 Fig, 2. Image far Problem 2

Edit: The matrix at the bottom is the figure.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a)To find area of an image which is represented in binary format ,we need to consider number of pixels that are "on" implies number of bits that are 1.

Therefore,no of bits represented as 1=77

Hence ,area=77

b)To find minimum aspect ratio which is represented as x:y where x represents width and y represents height.

Which we can represent width as 14 since 1st Column and last columns are only 0's. We can exclude and can count remaining columns for width.

Height is 8 because 1st and last rows represents 0 .

Therefore, minimum aspect ratio=14:8

c)To find centroid ,we need consider the rows and columns where the pixel value is 1.

Let's consider row values,row=[4-6,4-6,4-6,4-9,2-9,2-8,2-8,2-9,2-9,4-9,4-9,4-9,5-7,5-7]

Columns=[6-10,6-10,2-13,2-15,2-15,5-15,5-13,5,6,9-13]

Now we will find the mean of rows and coloumns.

Row mean=total sum/number of pixels represented as 1

=439/77

=5.7

Columns mean= 665/77

=8.63

d) Compactness:It is the square of the perimeter to its area.lets find the perimeter of the matrix.

We need to find equidistant between each and every pair of rows and columns using formula sqrt((x2-x1)2+(y2-y1)2)

We need to do between all the row column pairs which we got in b) .

Compactness=sqrt(resulting perimeter from above) /area

=Sqrt(perimeter)/7724. 6 lo 6 סו (ろ 4 +y 8

Add a comment
Know the answer?
Add Answer to:
Edit: The matrix at the bottom is the figure. For the image in Fig. 2 where...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT