Volker K wrote:
> Hi all!
>
> I have a binary image with coastlines as white pixels. The
> coast line is very "thick" and I would like to thinnen it to
> a minimum of pixels.
>
> The image matrix could look like this:
>
> 0 0 0 0 0 0 1 0
> 0 0 0 0 1 1 1 0
> 0 0 0 1 1 1 0 0
> 0 1 1 1 1 0 0 0
> 1 1 0 0 0 0 0 0
>
> but should look like this:
>
> 0 0 0 0 0 0 1 0
> 0 0 0 0 0 0 1 0
> 0 0 0 0 0 1 0 0
> 0 0 1 1 1 0 0 0
> 1 1 0 0 0 0 0 0
>
> I have already tried bwtraceboundary but that doesn't work.
>
> anyone has an idea?