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

Home » Public Forums » archive » Curve Fitting Question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Curve Fitting Question [message #82112 is a reply to message #82001] Tue, 20 November 2012 06:22 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> Yes, this Otsu's thresholding function works great. It
> didn't have quite as many features as I would have liked,
> so I stole the main ideas and wrote up a similar program
> that is working very, very well with the data sets I
> am working with today. It even picks reasonable
> thresholds when the dividing line between pixel
> populations is not totally straightforward. Thanks
> for bringing it to my attention.
>
> You can find my version of the program here:
>
> http://www.idlcoyote.com/programs/cgotsu_threshold.pro

Hold off on this a minute. I've been using my version
of the OTSU_THRESHOLD program for a week now, and I've
been seeing some strange results. The only thing I did
in my program was to beef up the keywords and error handling
for the histogram itself. I didn't change the underlying
code for OTSU_THRESHOLD.

In fact, just to confirm this, I've now gone back and
used the VERY same variable names, etc. But, I seem
to be getting different slightly different results with
the two programs.

I am trying to track this down now. In fact, I'm using the
newsgroup in EXACTLY the way Helder describes this morning!

Here is what just occurred to me. One of the things I am
VERY particular about (long experience, probably) is matching
the data type of the BINSIZE keyword with the data type of
the data going into the histogram. The OTSU_THRESHOLD program
I was using as a model didn't do this. I wonder if this is
the source of the difference. Back soon! :-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Dimensional confusion
Next Topic: Re: Dimensional confusion

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

Current Time: Wed Oct 08 20:14:10 PDT 2025

Total time taken to generate the page: 0.01245 seconds