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

Home » Public Forums » archive » correlation of single pixels
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: correlation of single pixels [message #84712 is a reply to message #82036] Mon, 12 November 2012 10:28 Go to previous message
Klemen is currently offline  Klemen
Messages: 80
Registered: July 2009
Member
Hi Max,

no x and y are in this case just the regression variables. See:
https://groups.google.com/forum/?fromgroups=#!topic/comp.lan g.idl-pvwave/F2E8cLePGsQ

Computing correlation using IDL function CORRELATE is ok, if you have to do it once. But here you have to do it within each area of interest a couple of times (considering set of possible offsets in x and y direction) so you have to use 4 FOR loops which will run slow!

Thus you should ask yourself first, how large is the data set you want to process. If you are sure that your offset are not larger than 2 pixels, then you might go for the slow version. That would be something like:

results = make_array(...
FOR xall=xstart,xend do begin
FOR yall=ystart,yend do begin
search_area = data[xall-search_size:yall+search_size]
template = data[xall-template_size:yall+template_size]
FOR xsearch=0,2*search_size+1 do begin
FOR ysearch=0,2*search_size+1 do begin
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Crashing ROI's
Next Topic: Re: Beginner: Oplot line t^(-5/3)

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

Current Time: Fri Oct 10 09:09:41 PDT 2025

Total time taken to generate the page: 0.64360 seconds