comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: thinning operation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: thinning operation [message #25788] Tue, 17 July 2001 10:42
Thomas S. Spisz is currently offline  Thomas S. Spisz
Messages: 10
Registered: June 2000
Junior Member
I'm not sure whether it's impossible, but I do know that most thinning algorithms will shorten the line (especially
with variable width). I've used the 'THIN' function and also implemented in IDL some algorithms published in
literature such as ones by Zhang and Suen. What I've done about the line shortening effect is to return the end
pixels of each line. This is done by extending points from the thinned line in the direction of the last two
pixels and comparing it to the original thick line. If there was a pixel in the thick line, then extend the thin
line one pixel and keep going. I described this in the journal:
Medical & Biological Engineering & Computing, November, 1998.
authors: Spisz, T.S.; Fang, Y.; Reeves, R.H.; Seymour, C.K.; Bankman, I.N.; Hoh, J.H.;

By your questions and your previous question about 'LABEL_REGION', I'm guessing that you are trying to find the
length of certain things in an image. I've published a couple papers on this in addition to the one I listed
above.

Hope this helps.

--tom spisz


------------------------------------------------------------ ------------------------------------------
Julia wrote:

> What I mean is that if it is a curve line with variable width, how can
> I get the not-shorten skeleton. Do you mean it's impossible?
>
> Julia
>
> Craig Markwardt <craigmnet@cow.physics.wisc.edu> wrote in message news:<on66cw7420.fsf@cow.physics.wisc.edu>...
>> julia65201@usa.net (Julia) writes:
>>
>>> Hi, there,
>>>
>>> In IDL, the THIN function returns the "skeleton" of a bi-level image.
>>> But if it is a line, the reslut is shorter than the original one. How
>>> can I prevent that?
>>
>> Make sure your lines don't have ends?
>>
>> Craig
>>
>> :-)
Re: thinning operation [message #25789 is a reply to message #25788] Tue, 17 July 2001 10:38 Go to previous message
Thomas S. Spisz is currently offline  Thomas S. Spisz
Messages: 10
Registered: June 2000
Junior Member
I'm not sure whether it's impossible, but I do know that most thinning algorithms will shorten the line (especially
with variable width). I've used the 'THIN' function and also implemented in IDL some algorithms published in
literature such as ones by Zhang and Suen. What I've done about the line shortening effect is to return the end
pixels of each line. This is done by extending points from the thinned line in the direction of the last two
pixels and comparing it to the original thick line. If there was a pixel in the thick line, then extend the thin
line one pixel and keep going. I described this in the journal:
Medical & Biological Engineering & Computing, November, 1998.
authors: Spisz, T.S.; Fang, Y.; Reeves, R.H.; Seymour, C.K.; Bankman, I.N.; Hoh, J.H.;

By your questions and your previous question about 'LABEL_REGION', I'm guessing that you are trying to find the
length of certain things in an image. I've published a couple papers on this in addition to the one I listed
above.

Hope this helps.

--tom spisz

------------------------------------------------------------ --------------------------------------------

Julia wrote:

> What I mean is that if it is a curve line with variable width, how can
> I get the not-shorten skeleton. Do you mean it's impossible?
>
> Julia
>
> Craig Markwardt <craigmnet@cow.physics.wisc.edu> wrote in message news:<on66cw7420.fsf@cow.physics.wisc.edu>...
>> julia65201@usa.net (Julia) writes:
>>
>>> Hi, there,
>>>
>>> In IDL, the THIN function returns the "skeleton" of a bi-level image.
>>> But if it is a line, the reslut is shorter than the original one. How
>>> can I prevent that?
>>
>> Make sure your lines don't have ends?
>>
>> Craig
>>
>> :-)
Re: thinning operation [message #25790 is a reply to message #25789] Tue, 17 July 2001 10:32 Go to previous message
Thomas S. Spisz is currently offline  Thomas S. Spisz
Messages: 10
Registered: June 2000
Junior Member
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I'm not sure whether it's impossible, but I do know that most thinning
algorithms will shorten the line (especially with variable width).&nbsp;
I've used the 'THIN' function and also implemented in IDL some algorithms
published in literature such as ones by <i>Zhang and Suen</i>.&nbsp; What
I've done about the line shortening effect is to return the end pixels
of each line.&nbsp; This is done by extending points from the thinned line
in the direction of the last two pixels and comparing it to the original
thick line.&nbsp; If there was a pixel in the thick line, then extend the
thin line one pixel and keep going.&nbsp; I described this in the journal:
<br>&nbsp;&nbsp;&nbsp; <i>Medical &amp; Biological Engineering &amp; Computing</i>,
November, 1998.
<br>&nbsp;&nbsp;&nbsp; authors:&nbsp; Spisz, T.S.; Fang, Y.; Reeves, R.H.;
Seymour, C.K.; Bankman, I.N.; Hoh, J.H.;&nbsp;
<p>By your questions and your previous question about 'LABEL_REGION', I'm
guessing that you are trying to find the length of certain things in an
image.&nbsp; I've published a couple papers on this in addition to the
one I listed above.
<p>Hope this helps.
<p>&nbsp; --tom spisz
<br>&nbsp;
<p> ------------------------------------------------------------ ---------------------------------------------
<br>Julia wrote:
<blockquote TYPE=CITE>What I mean is that if it is a curve line with variable
width, how can
<br>I get the not-shorten skeleton. Do you mean it's impossible?
<p>Julia
<p>Craig Markwardt &lt;craigmnet@cow.physics.wisc.edu> wrote in message
news:&lt;on66cw7420.fsf@cow.physics.wisc.edu>...
<br>> julia65201@usa.net (Julia) writes:
<br>>
<br>> > Hi, there,
<br>> >
<br>> > In IDL, the THIN function returns the "skeleton" of a bi-level
image.
<br>> > But if it is a line, the reslut is shorter than the original one.
How
<br>> > can I prevent that?
<br>>
<br>> Make sure your lines don't have ends?
<br>>
<br>> Craig
<br>>
<br>> :-)</blockquote>
</html>
Re: thinning operation [message #25791 is a reply to message #25790] Tue, 17 July 2001 10:33 Go to previous message
Thomas S. Spisz is currently offline  Thomas S. Spisz
Messages: 10
Registered: June 2000
Junior Member
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I'm not sure whether it's impossible, but I do know that most thinning
algorithms will shorten the line (especially with variable width).&nbsp;
I've used the 'THIN' function and also implemented in IDL some algorithms
published in literature such as ones by <i>Zhang and Suen</i>.&nbsp; What
I've done about the line shortening effect is to return the end pixels
of each line.&nbsp; This is done by extending points from the thinned line
in the direction of the last two pixels and comparing it to the original
thick line.&nbsp; If there was a pixel in the thick line, then extend the
thin line one pixel and keep going.&nbsp; I described this in the journal:
<br>&nbsp;&nbsp;&nbsp; <i>Medical &amp; Biological Engineering &amp; Computing</i>,
November, 1998.
<br>&nbsp;&nbsp;&nbsp; authors:&nbsp; Spisz, T.S.; Fang, Y.; Reeves, R.H.;
Seymour, C.K.; Bankman, I.N.; Hoh, J.H.;&nbsp;
<p>By your questions and your previous question about 'LABEL_REGION', I'm
guessing that you are trying to find the length of certain things in an
image.&nbsp; I've published a couple papers on this in addition to the
one I listed above.
<p>Hope this helps.
<p>&nbsp; --tom spisz
<br>&nbsp;
<br>&nbsp;
<p>Julia wrote:
<blockquote TYPE=CITE>What I mean is that if it is a curve line with variable
width, how can
<br>I get the not-shorten skeleton. Do you mean it's impossible?
<p>Julia
<p>Craig Markwardt &lt;craigmnet@cow.physics.wisc.edu> wrote in message
news:&lt;on66cw7420.fsf@cow.physics.wisc.edu>...
<br>> julia65201@usa.net (Julia) writes:
<br>>
<br>> > Hi, there,
<br>> >
<br>> > In IDL, the THIN function returns the "skeleton" of a bi-level
image.
<br>> > But if it is a line, the reslut is shorter than the original one.
How
<br>> > can I prevent that?
<br>>
<br>> Make sure your lines don't have ends?
<br>>
<br>> Craig
<br>>
<br>> :-)</blockquote>
</html>
Re: thinning operation [message #25792 is a reply to message #25790] Tue, 17 July 2001 10:37 Go to previous message
Thomas S. Spisz is currently offline  Thomas S. Spisz
Messages: 10
Registered: June 2000
Junior Member
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I'm not sure whether it's impossible, but I do know that most thinning
algorithms will shorten the line (especially with variable width).&nbsp;
I've used the 'THIN' function and also implemented in IDL some algorithms
published in literature such as ones by <i>Zhang and Suen</i>.&nbsp; What
I've done about the line shortening effect is to return the end pixels
of each line.&nbsp; This is done by extending points from the thinned line
in the direction of the last two pixels and comparing it to the original
thick line.&nbsp; If there was a pixel in the thick line, then extend the
thin line one pixel and keep going.&nbsp; I described this in the journal:
<br>&nbsp;&nbsp;&nbsp; <i>Medical &amp; Biological Engineering &amp; Computing</i>,
November, 1998.
<br>&nbsp;&nbsp;&nbsp; authors:&nbsp; Spisz, T.S.; Fang, Y.; Reeves, R.H.;
Seymour, C.K.; Bankman, I.N.; Hoh, J.H.;&nbsp;
<p>By your questions and your previous question about 'LABEL_REGION', I'm
guessing that you are trying to find the length of certain things in an
image.&nbsp; I've published a couple papers on this in addition to the
one I listed above.
<p>Hope this helps.
<p>&nbsp; --tom spisz
<br>&nbsp;
<br>&nbsp;
<p>Julia wrote:
<blockquote TYPE=CITE>What I mean is that if it is a curve line with variable
width, how can
<br>I get the not-shorten skeleton. Do you mean it's impossible?
<p>Julia
<p>Craig Markwardt &lt;craigmnet@cow.physics.wisc.edu> wrote in message
news:&lt;on66cw7420.fsf@cow.physics.wisc.edu>...
<br>> julia65201@usa.net (Julia) writes:
<br>>
<br>> > Hi, there,
<br>> >
<br>> > In IDL, the THIN function returns the "skeleton" of a bi-level
image.
<br>> > But if it is a line, the reslut is shorter than the original one.
How
<br>> > can I prevent that?
<br>>
<br>> Make sure your lines don't have ends?
<br>>
<br>> Craig
<br>>
<br>> :-)</blockquote>
</html>
Re: thinning operation [message #25793 is a reply to message #25790] Tue, 17 July 2001 10:30 Go to previous message
Thomas S. Spisz is currently offline  Thomas S. Spisz
Messages: 10
Registered: June 2000
Junior Member
I'm not sure whether it's impossible, but I do know that most thinning algorithms will shorten the line (especially
with variable width). I've used the 'THIN' function and also implemented in IDL some algorithms published in
literature such as ones by Zhang and Suen. What I've done about the line shortening effect is to return the end
pixels of each line. This is done by extending points from the thinned line in the direction of the last two
pixels and comparing it to the original thick line. If there was a pixel in the thick line, then extend the thin
line one pixel and keep going. I described this in the journal:
Medical & Biological Engineering & Computing, November, 1998.
authors: Spisz, T.S.; Fang, Y.; Reeves, R.H.; Seymour, C.K.; Bankman, I.N.; Hoh, J.H.;

By your questions and your previous question about 'LABEL_REGION', I'm guessing that you are trying to find the
length of certain things in an image. I've published a couple papers on this in addition to the one I listed
above.

Hope this helps.

--tom spisz


------------------------------------------------------------ ---------------------
Julia wrote:

> What I mean is that if it is a curve line with variable width, how can
> I get the not-shorten skeleton. Do you mean it's impossible?
>
> Julia
>
> Craig Markwardt <craigmnet@cow.physics.wisc.edu> wrote in message news:<on66cw7420.fsf@cow.physics.wisc.edu>...
>> julia65201@usa.net (Julia) writes:
>>
>>> Hi, there,
>>>
>>> In IDL, the THIN function returns the "skeleton" of a bi-level image.
>>> But if it is a line, the reslut is shorter than the original one. How
>>> can I prevent that?
>>
>> Make sure your lines don't have ends?
>>
>> Craig
>>
>> :-)
Re: thinning operation [message #25815 is a reply to message #25793] Fri, 13 July 2001 22:11 Go to previous message
julia65201 is currently offline  julia65201
Messages: 9
Registered: July 2001
Junior Member
What I mean is that if it is a curve line with variable width, how can
I get the not-shorten skeleton. Do you mean it's impossible?

Julia

Craig Markwardt <craigmnet@cow.physics.wisc.edu> wrote in message news:<on66cw7420.fsf@cow.physics.wisc.edu>...
> julia65201@usa.net (Julia) writes:
>
>> Hi, there,
>>
>> In IDL, the THIN function returns the "skeleton" of a bi-level image.
>> But if it is a line, the reslut is shorter than the original one. How
>> can I prevent that?
>
> Make sure your lines don't have ends?
>
> Craig
>
> :-)
Re: thinning operation [message #25816 is a reply to message #25815] Fri, 13 July 2001 17:22 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
julia65201@usa.net (Julia) writes:

> Hi, there,
>
> In IDL, the THIN function returns the "skeleton" of a bi-level image.
> But if it is a line, the reslut is shorter than the original one. How
> can I prevent that?

Make sure your lines don't have ends?

Craig

:-)

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: widget-programming
Next Topic: Re: Help me please in one test.

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:40:03 PDT 2025

Total time taken to generate the page: 0.00742 seconds