[SciPy-User] scipy.interpolate.interp2d too many data values..

Pauli Virtanen pav at iki.fi
Fri Sep 4 04:44:01 EDT 2009


Fri, 04 Sep 2009 09:08:29 +0200, markus.proeller kirjoitti:
> I tried to make an interpolation over an 800x600 image with the interp2d
> function from scipy,
> but I get an error message, that this are "Too many data points to
> interpolate".
> It doesn't seem that much data to me. Am I doing anything wrong or how
> many data does this function support?

Interp2d is mainly meant for interpolation of scattered data, and yes, it 
has quite low limits on what it handles. It might be possible to bump 
these upwards, though.

For interpolation of images that are specified on a regular grid, look at 
scipy.ndimage, especially map_coordinates.

-- 
Pauli Virtanen




More information about the SciPy-User mailing list