How can I form a perimeter of variable thickness

2 views (last 30 days)
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

Accepted Answer

Image Analyst
Image Analyst on 5 Sep 2015
Call imdilate() on the image you get from bwperim().
  5 Comments
Image Analyst
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.
Scrat
Scrat on 10 Sep 2015
Thanks a lot...that is exactly what i was looking for!!

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!