473,500 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help req: IDL to Python, numarray-Numeric

Hi all,

I'm trying to port Hongjie Xie's IDL/ENVI Implementation of the FFT Based
Algorithm for Automatic Image Registration
ftp://ftp.iamg.org/VOL29/v29-08-10.zip
http://www.nmt.edu/%7Ehjxie/xie-paper.pdf
http://www.iamg.org/CGEditor/cg2003.htm
to Python/numarray/Numeric and running into some subtle problems.

I don't have IDL, so I could only read the PDF docs.

For instance, the IDL ROT() requires some additional steps to emulate, and
the MAX(array, position) as well.
And, I'm not at all familiar with the correspondence of the FFT
libraries... even the simple shift-only routine
http://rjs.org/astro/1004x/Python/register/shift_idl.py
produces different (incorrect) x shift values than the IDL.

My current code
http://rjs.org/astro/1004x/Python/register/
conforms to Xie's flow as much as possible for now, but should and will be
re-factored when functional. His LogPolar function, to convert rectangular
coordinate arrays to polar, is particularly slow.

If anyone has some insight as to possible, critical differences, please let
me know!

Thank you,
Ray Schumacher
user:ray at the domain rjs daaat oh-arr-gee
Jul 18 '05 #1
2 1804
Ray Schumacher wrote:
Hi all,

I'm trying to port Hongjie Xie's IDL/ENVI Implementation of the FFT Based
Algorithm for Automatic Image Registration
ftp://ftp.iamg.org/VOL29/v29-08-10.zip
http://www.nmt.edu/%7Ehjxie/xie-paper.pdf
http://www.iamg.org/CGEditor/cg2003.htm
to Python/numarray/Numeric and running into some subtle problems.

I don't have IDL, so I could only read the PDF docs.


I'll try to find some time to look at what you have, but in the
meantime, did you know that you can download evaluation copies of IDL
and ENVI?

http://www.rsinc.com/download/choose...ProductCode=20

You're limited to seven minute sessions, but it ought to be good enough
to try pieces of code out.

--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
Jul 18 '05 #2
RJS
Hi Robert,

Robert Kern <rk***@ucsd.edu> wrote in news:cg**********@news1.ucsd.edu:
I'll try to find some time to look at what you have, but in the
meantime, did you know that you can download evaluation copies of IDL
and ENVI?

http://www.rsinc.com/download/choose...ProductCode=20

You're limited to seven minute sessions, but it ought to be good
enough to try pieces of code out.


Thanks!
No I didn't know there was a trial, I'll check it out again. The paper's
author isn't to interested in Python, but I'm trying to get the STSI
interested as a numarray add-on, as almost the entire process should be
do-able with numarray or Numeric.
..
I'm in La Jolla also, if you're interested in this yourself. I ride
through Scripps almost daily.

Ray
user:ray at the domain rjs daaat oh-arr-gee
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
1620
by: has | last post by:
<BLUSH> Careless talk costs lives, as they say. In my case, a throwaway comment that Python could trounce the notoriously underpowered and undersupported AppleScript language for "serious number...
2
6069
by: John F Dutcher | last post by:
Can anyone comment on why the code shown in the Python error is in some way incorrect...or is there a problem with Python on my hoster's site ?? The highlites don't seem to show here...but line...
1
2065
by: lenk | last post by:
Hi all, I want to learn the data structure of python array, is there any website or book for learning thanks
22
3195
by: Kamilche | last post by:
I've looked at a few alternatives for encryption with Python, and didn't come up anything very speedy. I've written an encryption algorithm in pure Python that can process 22 megs of data a...
47
3606
by: Michael Scarlett | last post by:
There is an amazing article by paul graham about python, and an even better discussion about it on slashdot. The reason I point this out, is the more I read both articles, the more I realised how...
9
1461
by: PyPK | last post by:
I was testing this piece of code and it takes about 24-30 seconds to do a look up on a list(m) of size 1000x1000 m -> list of size 1000x1000 import time print time.ctime() box = {} for r,row in...
1
264
by: J | last post by:
Hi everyone, I have posted a question on this topic before and already received some useful advice. I am basically trying to package python with an App that embedds the interpretor. I am also...
4
1211
by: A. L. | last post by:
hi, everybody here, I am a newbie to python. I encounter a problem that how to convert an array of numarray to pil object. For example, the data in an image is extracted using Image.getdata,...
3
3317
by: Colin J. Williams | last post by:
Python advertises some basic service: C:\Python24>python Python 2.4.1 (#65, Mar 30 2005, 09:13:57) on win32 Type "help", "copyright", "credits" or "license" for more information. >>> With...
2
3947
by: Chris Smith | last post by:
Howdy, I'm a college student and for one of we are writing programs to numerically compute the parameters of antenna arrays. I decided to use Python to code up my programs. Up to now I haven't...
0
7018
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7182
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7232
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6906
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5490
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4611
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1430
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
316
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.