matlab: limiting erosion on binary images -
i trying erode objects in binary image such not become smaller fixed size. consider, instance, binary map composed of connected components (blobs), wherein 1 defines blob size either minimal or maximal antipolar (anti-perimetric) distance (i.e., distance between 2 points far 1 can on perimeter or contour of blob; if contour consists of n consecutively numbered points, distances evaluated between points 1 , n/2+1, points 2 , n/2+2, etc.). given such arrangement, seek erode these blobs until distance metric reaches specified limit. if blobs simple circles, effect realized ultimate erosion followed dilation fixed size; however, contour of irregular object lost such procedure. there way achieve such effect connected, irregular components using built-in functions in matlab?
with no image , tried code presented can understand wrong, may iterative using bwmorph 'thin','skel' or 'shrink' you.
while(cond < cond_threshold) bw=bwmorph(bw,...,1); %one of options above cond = calc_cond(bw); end
Comments
Post a Comment