Re: IDL calculating elements in arrays plus there offsets [message #70030 is a reply to message #70029] |
Tue, 09 March 2010 06:19   |
Will
Messages: 7 Registered: June 2004
|
Junior Member |
|
|
On 8 Mar, 16:52, jeanh
<jghasb...@DELETETHIS.environmentalmodelers.ANDTHIS.com> wrote:
>> Sorry for impreciseness. I don't seem to be on the ball at all today.
>> Yeah that makes sense, and to answer your questions it is multiple
>> images I am loading into two seperate float arrays thats 122 images
>> for each array, so a grand total of 244 images are being loaded. The
>> idea being to compare the mass amount of images with each other and
>> moving the array around both in the x and y direction until the
>> closest match is found.
>
>> I hope that clears it up for you, as I say I am not really on the ball
>> today.
>
>> Thanks
>> Will
>
> Hi Will,
>
> ok, I get a better idea... do you want to move all your images at the
> same time and do the comparison, or one by one? (i.e., do you want to
> have a shift of let's say 1;5 for the 1st image, and 85,20 for the 2nd
> image, or do you want to move all your images by 2;5?)
>
> Anyways, "shift" is your friend here. Be careful on the edge of the
> images... you might want to remove the edges, as values are wrapped around.
>
> Now, depending on the content of your images, you can do things
> differently... like identifying a region of interest (function region),
> then identify the point of gravity and shift your images accordingly...
> but again, it all depends on the content of the images!
>
> Jean
Hi Jean
I am just looking to shift all of the images on the first array and
keep all of the images on the second array the same. (Second array
does not shift at all).
I thought along those lines too but i'm not sure if i'm getting my
head around "SHIFT" properly. I have the program shifting the the
images as described but I get the sneaking impression it is doing the
wrong calculation or more likely the calculation isn't changing much.
Anyway to clarify, I would be correct in assuming that the images
loaded into the 1st array are sequential, they go from one through to
122 and that when I tell the array to shift by say 1, all of the
images move to the right by one image? or by one element of the images
array and not the array we have just created. If I am right about my
thinking and we are both agreed on "shift" then the program is doing
what it is meant to and outputting the correct answers which means
when I make a graph of the output I can tell where the best fit for
the images is and know the offset. I think :S.
Thank you for our help
Will
|
|
|