Interpolate rows of an image/matrix
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
pankaj singh
am 13 Okt. 2022
Beantwortet: Star Strider
am 13 Okt. 2022
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 Kommentare
Akzeptierte Antwort
Star Strider
am 13 Okt. 2022
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!