Description: Binary erosion and dilation, with fast iterative calls.
For any structuring element other than square or disk this function is way faster than imerode.m and imdilate.m (more than an order of magnitude). It s also handy when you don t have the Matlab Image Processing Toolbox :-)...
It also allows very fast iterative calls (for instance when sweeping the structuring element while looking for a certain effect, threshold in image statistics, etc).
See the help in bmorph.m and the attached .pdf file.
File list (Check if you may need any files):
bmorph.m
bmorph_description.pdf
license.txt