Interpolate rows of an image/matrix
1 view (last 30 days)
Show older comments
pankaj singh
on 13 Oct 2022
Answered: Star Strider
on 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 Comments
Accepted Answer
Star Strider
on 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 Comments
More Answers (0)
See Also
Categories
Find more on Interpolation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!