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

Home » Public Forums » archive » Rapid "moving windows" access in IDL?
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
Rapid "moving windows" access in IDL? [message #37847] Thu, 29 January 2004 17:43
Jonathan Greenberg is currently offline  Jonathan Greenberg
Messages: 91
Registered: November 2002
Member
I'm trying to code a semivariance measure to analyze an image in IDL. Since
the call requires extracting data from a matrix a certain distance away from
the center pixel, is there a fast way of coding IDL to extract these
locations, or is am I doomed to have a very slow algorithm. Basic gist:

For a given pixel/matrix location, subtract off the value of the pixels
surrounding that pixel:

For pixel at A is at x,y
B at x-1,y
C at x+1,y

Semivariance = ((A-B)^2 + (A-C)^2)/4

Any suggestions?

--j
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Array indexing problem
Next Topic: (Not) Finding functions running on VM

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

Current Time: Wed Oct 08 19:05:53 PDT 2025

Total time taken to generate the page: 0.00483 seconds