speed of interp2 and bug with method cubic
John W. Eaton
jwe at bevo.che.wisc.edu
Mon Oct 27 13:32:40 CDT 2008
On 26-Oct-2008, Peter Cloetens wrote:
|
|
| John W. Eaton wrote:
| >
| > On 4-Feb-2007, Peter Cloetens wrote:
| >
| > | Hello,
| > |
| > | It seems that the function interp2 got much slower at a certain point
| > | (~factor 6 for linear interpolation and ~factor 40 for nearest
| > | neighbour).
| > |...
| > | Reading the history and comparing the dates of the two versions of
| > | interp2 I suspect that it is linked to the modification:
| > | (XI,YI no longer need to be "meshgridded")
| > |...
| > | Maybe a separate code should be foreseen in the case XI and YI are
| > | vectors.
| >
| > If you have a fix, how about submitting a patch?
| >
| > Thanks,
| >
| > jwe
| > _______________________________________________
| > Bug-octave mailing list
| > Bug-octave at octave.org
| > https://www.cae.wisc.edu/mailman/listinfo/bug-octave
| >
| >
|
| Hello,
| I would like to come back to the issue of the slow interp2. As it is used by
| other functions (imrotate, imremap, ...) this is quite important.
| I made a faster version:
| http://www.nabble.com/file/p20177305/interp2.m interp2.m
Will you please submit a patch that is relative to the version you
started with? That way we can see precisely what changes you made,
and we will also avoid possibly wiping out other changes that might
have been made in Octave's sources in the time since the version you
started with was released.
jw
e
More information about the Bug-octave
mailing list