MATLAB: How to form a perimeter of variable thickness

Image Processing Toolboxperimeter

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

Best Answer

Call imdilate() on the image you get from bwperim().