Interpolate rows of an image/matrix
조회 수: 3 (최근 30일)
이전 댓글 표시
I have an image (or say a matrix) of 256 x 256. I have the values of every even numbered row (N) of the matrix (say I know the pilots). I want to estimate (or interpolate) the rest of the rows using the already known rows. How can I do it?
댓글 수: 0
채택된 답변
Star Strider
2022년 10월 13일
Guessing —
EvenRows = randn(5, 10);
Matrix = NaN(10);
Matrix(2:2:end,:) = EvenRows
MatrixInterp = fillmissing(Matrix,'linear')
figure
surf(Matrix)
grid on
title('Original')
figure
surf(MatrixInterp)
title('Linear Interpolation')
grid on
.
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!