I've implemented MATLABs bwmorph('thin',...): any interest?