NANINTERP2: 2-D optimized linear interpolation

Filling the gaps in a surface.

https://github.com/beaudu/naninterp2

Sie verfolgen jetzt diese Einreichung

The GRIDDATA Matlab's core function may fail with memory issue on huge grids, depending on your computer capabilities. This simple function optimizes the linear interpolation, by reducing the amount of relevant data (only gap neighbours) before calling GRIDDATA. This results in a very fast computing, the speed will depend now on the amount of gaps and less on the amount of valid data (size of the grid).
Example:
z = peaks(1000);
% simulates random gaps of different sizes
for n = [10,5,2]
z(ceil(rand(1e4/n^2,1)*numel(z))) = NaN;
z = conv2(z,ones(n)/n,'same');
end

subplot(211)
imagesc(z); % with gaps
subplot(212)
imagesc(naninterp2(z)) % gaps filled

Zitieren als

François Beauducel (2026). NANINTERP2: 2-D optimized linear interpolation (https://github.com/beaudu/naninterp2/releases/tag/v1.1), GitHub. Abgerufen .

Kategorien

Mehr zu Interpolation finden Sie in Help Center und MATLAB Answers

Allgemeine Informationen

Kompatibilität der MATLAB-Version

  • Kompatibel mit allen Versionen

Plattform-Kompatibilität

  • Windows
  • macOS
  • Linux
Version Veröffentlicht Versionshinweise Action
1.1

See release notes for this release on GitHub: https://github.com/beaudu/naninterp2/releases/tag/v1.1

1.0.0.0

Um Probleme in diesem GitHub Add-On anzuzeigen oder zu melden, besuchen Sie das GitHub Repository.
Um Probleme in diesem GitHub Add-On anzuzeigen oder zu melden, besuchen Sie das GitHub Repository.