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

Home » Public Forums » archive » Re: 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 #81928 is a reply to message #81926] Thu, 08 November 2012 23:53 Go to previous messageGo to previous message
haikoley is currently offline  haikoley
Messages: 5
Registered: November 2012
Junior Member
Thanks Klemen,

but somehow it didn't really help. I figured I have to use a template consisting of my pixel and the neighboring pixelsto find the offset. But something's wrong.

I tried:
CONV= where(max(CONCOVAR(image1, image2, /Correl)))
where concovar is a function returning the correlationmatrix of the images, but somehow all my offsets are 0. That can't be (I checked on the images and there must be an offset around 1 or 2 pixels).

On the other hand I tried using correl_optimize (I found it on the internet), but those results are even weirder. My template is an array of 5x3 elements and the other image is an array of 11x3 elements. correl_optimize returns a y-offset between -2,5 and 2,5 pixels. But how can the y-offset possibly be in a range of 5 pixels when both images only consist of three pixels in y direction? Same with x direction.

I don't have a clue as to what I do wrong. Has someone an explanation for this?

cheers,
Max
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Memory Allocation Problem- IDL 8.2
Next Topic: Widget Focus

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

Current Time: Fri Oct 10 00:39:41 PDT 2025

Total time taken to generate the page: 0.47920 seconds