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

Home » Public Forums » archive » How to match multiple arrays and plot graph?
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
How to match multiple arrays and plot graph? [message #69855] Tue, 16 February 2010 02:19
Will is currently offline  Will
Messages: 7
Registered: June 2004
Junior Member
Hi guys

I have wrote a program that will read a sequence of jpeg images from a
specific directory using the READ_JPEG command and a for loop, it wa s
the only way i could work out how to do this. The program continues to
read a seperate directory of images in the same method.

These images are similar to one another. The idea is to tell the
program to find where the sequence of images from one directory best
fits or even matches the sequence from the other directory. So
imagine:

(jpg) jpg jpg
jpg jpg jpg
jpg jpg
jpg jpg jpg
jpg jpg jpg
(jpg) jpg
jpg jpg jpg
jpg jpg jpg
jpg jpg
Sequence of images directory 1
Sequence of images from directory 2

This is how I imagine what should happen, is the first sequence is
loaded followed by the second sequence then the program needs to find
the best match which happens to be the jpg in the top left with the
other jpg thats in brackets near the bottom right. The full sequence
should move resulting in:

jpg jpg jpg
jpg
jpg jpg
(jpg) jpg jpg jpg
jpg jpg jpg
jpg jpg jpg

jpg jpg jpg jpg
Sequences
matched

from this it should then plot a curve graph of the offset between the
two sequences. This has to do it with around 242 images in total.

My problem being the likes of array_match won't work as it is too long
and neither will setting the arrays into integers as there is too many
dimensions. I am confussed as to what to do in this issue. Can anyone
help me in trying to get hte two sequences to match? It could be
simply multiply each image by each other (or subtract) and plot the
best fitting line which would give me the curve graph that I can use,
but how do you tell the program to do that arithemitic whilst it is
loading through each sequence?

Thank you for taking the time to read this and all help is greatly
appreciated

Will
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: bounding box subsetting for lat/lon
Next Topic: How to spot maximum x value AND corresponding y value?

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

Current Time: Thu Oct 09 08:01:13 PDT 2025

Total time taken to generate the page: 1.19825 seconds