How can I form a perimeter of variable thickness

3 Ansichten (letzte 30 Tage)
Scrat
Scrat am 5 Sep. 2015
Kommentiert: Scrat am 10 Sep. 2015
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

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by