Re: About warp image on ENVI's pts file [message #63147] |
Wed, 29 October 2008 01:57 |
Biny Young
Messages: 9 Registered: June 2008
|
Junior Member |
|
|
On 10月29日, 下午12时07分, David Fanning <n...@dfanning.com> wrote:
> David Fanning writes:
>> Do you have some reason why you believe ENVI is using the
>> same code you are? The general pattern in ENVI is that
>> when the ENVI folks find IDL code that sucks (map projections
>> come to mind) they write their own that does a better job.
>> It would not surprise me at all to learn their warping
>> routines were different (and probably superior) to those
>> found in IDL.
>
> Sorry, "sucks" is the wrong word. When they find code that
> "doesn't do the job as well as they like" is what I meant
> to write. I'm still feeling the effects of my Virtual
> Machine episode today. :-(
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Thank you for you reply. The parameters are :
Envi:
Method : Polynomial Degree: 5
Resampling: Nearest Neighbor
Background: 0
My program:
Method and Degree : Polynomial and 5 ( ;POLYWARP, XI, YI, XO, YO,
5, P, Q )
Resampling: Nearest Neighbor ( ;The method is 0 in POLY_2D
function)
So ,I believe ENVI is using the same "method" as my program. I used
the same image and the same method to warp ,but got the different
result. Any info/advice would be so appreciated.
Greeting...
|
|
|
Re: About warp image on ENVI's pts file [message #63149 is a reply to message #63147] |
Tue, 28 October 2008 21:07  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
> Do you have some reason why you believe ENVI is using the
> same code you are? The general pattern in ENVI is that
> when the ENVI folks find IDL code that sucks (map projections
> come to mind) they write their own that does a better job.
> It would not surprise me at all to learn their warping
> routines were different (and probably superior) to those
> found in IDL.
Sorry, "sucks" is the wrong word. When they find code that
"doesn't do the job as well as they like" is what I meant
to write. I'm still feeling the effects of my Virtual
Machine episode today. :-(
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: About warp image on ENVI's pts file [message #63150 is a reply to message #63149] |
Tue, 28 October 2008 21:03  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Biny Young writes:
> I registrated my camera image in Envi and got the pts file. But my
> problem is when I warp the image on the pts file using my IDL
> program ,the output image isn't the same as the one using Envi warped.
> It's not rectified correctly. But using the same pts file in Envi to
> warp ,the result is all right. Could anyone tell me why?
Do you have some reason why you believe ENVI is using the
same code you are? The general pattern in ENVI is that
when the ENVI folks find IDL code that sucks (map projections
come to mind) they write their own that does a better job.
It would not surprise me at all to learn their warping
routines were different (and probably superior) to those
found in IDL.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|