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

Home » Public Forums » archive » Re: weighted average for label_region
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: weighted average for label_region [message #56388] Wed, 24 October 2007 08:49
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
rpertaub@gmail.com writes:

> This leaves me with my spotscoord array with x,y coordinates. However,
> I need to find the center of each spot with some weighted
> average...i.e. if the cluster of pixels (for one spot) is more bright
> on one side, then the center will be skewed there...is there a way for
> me to do that?

Ah, this takes me back to my own blob processing days! :-)

You might find this article of interest:

http://www.dfanning.com/ip_tips/fit_ellipse.html

Also, if you don't add an extra pixel border to your
image before you do your LABEL_REGION thing, you will
likely run into considerable trouble with blobs or
spots touching the edge of your image.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: transform a floating point into byte or integer in envi
Next Topic: large info structure?

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

Current Time: Wed Oct 08 13:55:57 PDT 2025

Total time taken to generate the page: 0.00317 seconds