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

Home » Public Forums » archive » Re: array convol optimizationv slow now
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: array convol optimizationv slow now [message #67370 is a reply to message #67282] Tue, 14 July 2009 08:31 Go to previous message
newerjazz is currently offline  newerjazz
Messages: 5
Registered: July 2009
Junior Member
Thanks Chris,

I will try hist_2d to see if it helps.

Dave, we know the x,y position down to subpixel resolution; so instead
of say plotting particles on a 512x512 grid; we plot it on 5120x5120
grid (if our resolution is 1/10 of a pixel). In practice our
resolution is down to 1/100th of a pixel. Depending on how many
particles are packed into a pixel or a voxel since I actually have z
resolution too; the image can look either sharp or blur.

cheers,
newerjazz

On Jul 13, 4:53 pm, Chris <beaum...@ifa.hawaii.edu> wrote:
> On Jul 13, 1:26 pm, David Fanning <n...@dfanning.com> wrote:
>
>
>
>> newerjazz writes:
>>> each particle is a single molecule of protein; we need to visualize
>>> all the proteins to get meaningful interpretation.
>
>> How does that work? If I put 100 million dots on my screen, things
>> get a little blurry. (Of course, my eyes aren't what they used to
>> be, admittedly.)
>
>>> do you have any suggestions of getting the x,y locations on the image
>>> w/ an array operation instead of a for loop?
>
>> No, I can't think of any way to do this an an array. :-(
>
>> Cheers,
>
>> David
>> --
>> David Fanning, Ph.D.
>> Coyote's Guide to IDL Programming (www.dfanning.com)
>> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
>
> I've written a routine called densitymap which makes smoothed surface
> density maps based on the position of 2d sources. You might want to
> check it out (it has been moderately debugged)
>
> http://www.ifa.hawaii.edu/users/beaumont/code/
>
> It uses a different smoothing scheme (it uses the distance to each
> pixel's n-th nearest neighbor to estimate the surface density).
>
> If you use it, you should probably download the IDL astronomy user's
> library, as well ashttp://www.ifa.hawaii.edu/~beaumont/code/beaumont_library. tar
> to avoid dependency issues.
>
> Otherwise, you could use hist_2d to pixellate the locations of each
> point, and then convolve the histogram with a gaussian
>
> Chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Contour lines are disappearing
Next Topic: file_info not detecting write-protected files under windows (bug?)

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

Current Time: Sun Oct 12 10:33:12 PDT 2025

Total time taken to generate the page: 1.36022 seconds