필터 지우기
필터 지우기

Interpolating to remove zeros

조회 수: 7 (최근 30일)
Jatin Arora
Jatin Arora 2012년 11월 29일
I started with a matrix of dimension n*3 did some manipulations and now i have a matrix with dimensions m*3 where n>m . Suppose I start with a matrix of 200*3 and after the filtering I get rows 1 to 5 as zero rows and the total number of rows reduces to 190. But in the final output I want the same number of rows. So what I a thinking is to take the first element of new Matrix and interpolate to remove the initial zero values. At the end similarly take the last value of new matrix and extrapoate .
is the above method correct and is there a better method?Any suggestions for solving the above problem.

답변 (1개)

Image Analyst
Image Analyst 2012년 11월 29일
How about interp2()? Or TriScatteredInterp()? Or, if you have the Image Processing Toolbox, you can use roifill().

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by