Question

4) Consider the image a) and use morphological operations to perform: a) Count the number of blobs in the image. (Hint: use b

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

Answer

Morphology is an image processing technique that based on shape of the object. Morphological operations apply a structuring element to our input image, creating an output image of the same size. In a morphological operation, please refer internet for more details about Morphology, Actually there are two type of morphological operation, they are

  • dilation
  • erosion

Dilation adds pixels to the boundaries of objects,Erosion removes pixels on object boundaries. please refer internet about more details about erosion and dialation

Here we have an image circles.png, i downloaded from the internet. I will give full code about the question.

a) For count the blob/object we can use bwlabel() function. it will Label connected components in a binary image

[L,num] = bwlabel(image,connctivity) %returns in num the number of connected objects found in image.
image = imread('circles.png'); %here is code for obeject counting
[L,N] = bwlabel(image,4); %4 connected  N have the value of object
figure
imshow(L)

b)Morphological operation for a,b,c

Here we can see first image is default inary image called circles.png

The image c uses the morphological operation bwskel() ,that means Skeletonize objects in a binary image. So we can use that function for these code is given below

image=imread('circles.png')
image2 = bwskel(BW);   % skeltionaize the object
montage({BW,BW2},'BackgroundColor','black','BorderSize',10)

image d uses the the operation bwperim() ,that find the perimeter of objects in a binary image.

code is given below

figure
image=imread('circles.png')
image3 = bwperim(image,8);  % 8 connectivity used
imshowpair(image,image3,'montage')

e 14 Figure 14 Figure 16 * Figure 17 X) + mes

You can refer more details on intenet about morphological operation. Any doubt please comment. And upvote tooo.... Thanks in advance

Add a comment
Know the answer?
Add Answer to:
4) Consider the image a) and use morphological operations to perform: a) Count the number of...
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