How can I form a perimeter of variable thickness
2 views (last 30 days)
Show older comments
I have a bw image with the largest area of a mouse cell. how can i get a perimeter with a variable thickness so that i can get a ring like border and i can manipulate the thickness as per wish. i have used bwperim but it only gives a very thin outline. What i want is that but thick and also i want to control the thickness. Thanks
0 Comments
Accepted Answer
Image Analyst
on 5 Sep 2015
Call imdilate() on the image you get from bwperim().
5 Comments
Image Analyst
on 10 Sep 2015
Did you read my prior comment? I told you how to do that. Another way is to simply call imerode() on the original binary image - the one you used when you called bwperim(). Just eat away the outer layers 2 or 5 pixels.
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!