Re: weighted average for label_region [message #56388] |
Wed, 24 October 2007 08:49 |
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/
|
|
|