Interpolate rows of an image/matrix
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
pankaj singh
le 13 Oct 2022
Réponse apportée : Star Strider
le 13 Oct 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 commentaires
Réponse acceptée
Star Strider
le 13 Oct 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!