NANINTERP2: 2-D optimized linear interpolation

버전 1.1 (297 KB) 작성자: François Beauducel
Filling the gaps in a surface.
다운로드 수: 242
업데이트 날짜: 2021/1/8

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

인용 양식

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

MATLAB 릴리스 호환 정보
개발 환경: R2011b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.1

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

1.0.0.0

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.