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

Home » Public Forums » archive » Re: spots on image
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: spots on image [message #52340 is a reply to message #52243] Thu, 25 January 2007 13:35 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Jan 25, 2:22 pm, "Brian Larsen" <balar...@gmail.com> wrote:
> I have done a bit of similar work. Just in quick pseudocode
>
> dat = fltarr(256,256)
> ;; fill with an image
> ;; find one of the pinhole brightnesses using your method
> ;; call that center[2] [0]->x [1]->y

For this part, I would do something like:

nColumns = 256 ; the number of columns in your image
mask = dat ge threshhold
regions = label_region(mask)
for r = 1L, max(regions) do begin
ind = where(regions eq r, count)
center = [mean(ind mod nColumns), mean(ind / nColumns)]
endfor

then continue on with Brian's fitting code.

Mike
--
www.michaelgalloy.com
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Adding a circle in postscript file
Next Topic: Re: kilvarock dead?

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

Current Time: Fri Oct 10 10:32:22 PDT 2025

Total time taken to generate the page: 0.64017 seconds