Re: Today's IDL Lesson [message #62058 is a reply to message #61922] |
Tue, 19 August 2008 13:35  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
> This would make a *perfect* object, and you
> don't even have to save the image. All you need
> is the REVERSE_INDICES from the Histogram and the
> size of the image and you can easily reconstitute
> the image if and when you need it.
As promised, I put a new object up on my web page today,
named BLOB_ANALYZER to make it easier to do some of this
blob processing I've been talking about. It is sort of
a combination of LABEL_REGION, HISTOGRAM, FIND_BOUNDARY
and FIT_ELLIPSE. It can not only get blob indices quickly,
but it can perform various analysis functions on those
blobs.
Having said that, this is version 0.9 I guess, as I didn't
have time to incorporate some of the neat features Ben Tupper
showed me in one of his similar programs. I did steal some
of his best ideas, though, and I plan to incorporate more
features if and when I need them. In particular, I do NOT
store the actual image in my object, since I am working with
large images, and I don't want to carry around this overhead.
That restriction limits some of the things I can do. But if
you need a feature, ask. Ben will be happy to point out how
it can be done correctly. :-)
If you decide to give the Blob Analyzer a try, be sure you
also download a new version of Fit_Ellipse. Previous versions
of Fit_Ellipse were not thinking about memory usage, and that
has become a priority for me now. So this was rewritten to
have a MUCH smaller memory footprint (and a new, essential
keyword).
http://www.dfanning.com/ip_tips/blobanalsis.html
http://www.dfanning.com/programs/blob_analyzer__define.pro
http://www.dfanning.com/programs/fit_ellipse.pro
Feedback is always appreciated. Just be sure to SHOUT LOUDLY. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|