Thread Subject: How to morphologically break a fork?

Subject: How to morphologically break a fork?

From: Joaquim Luis

Date: 30 Jan, 2008 22:32:03

Message: 1 of 2

Hi,
I'm trying to build a system that would allow the automatic
identification of lineaments (faults) on sea-bottom terrain
models. I managed to advance quite a while in it but now
I'm stuck with cases where lineaments cross each other.
Since I want to vectorize the result I need to be able to
break the crossings and that's where I'm stuck. I read,
reread and tried all options of the bwmorph() function but
to no success.
One typical case is exemplified by this

mask = false(7,8);
mask([13 14 19 25 29 30 31 32 40 48 49]) = true;
image(mask)
set(gcf,'colormap',[0 0 0; 1 1 1])

Anyone whith a bright idea on how to break this fork?

Thanks
Joaquim Luis

Subject: How to morphologically break a fork?

From: Joaquim Luis

Date: 31 Jan, 2008 00:41:04

Message: 2 of 2

"Joaquim Luis" <jluis@--ualg--.pt> wrote in message
<fnqtt3$6l0$1@fred.mathworks.com>...
> Hi,
> I'm trying to build a system that would allow the
automatic
> identification of lineaments (faults) on sea-bottom
terrain
> models. I managed to advance quite a while in it but now
> I'm stuck with cases where lineaments cross each other.
> Since I want to vectorize the result I need to be able to
> break the crossings and that's where I'm stuck. I read,
> reread and tried all options of the bwmorph() function
but
> to no success.
> One typical case is exemplified by this
>
> mask = false(7,8);
> mask([13 14 19 25 29 30 31 32 40 48 49]) = true;
> image(mask)
> set(gcf,'colormap',[0 0 0; 1 1 1])

Well, I found a way.
Not perfect and, honestly, not that I really understand
what it does, but it works

lut = makelut('sum(x(:)) == 4', 3);
mask2 = ~applylutc(mask,lut);
mask3 = mask & mask2;
image(mask3)
set(gcf,'colormap',[0 0 0; 1 1 1])

J. Luis

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
morphology Joaquim Luis 30 Jan, 2008 17:35:04
rssFeed for this Thread

Contact us at files@mathworks.com