필터 지우기
필터 지우기

interpolation between sequnce of images

조회 수: 19 (최근 30일)
tala
tala 2016년 11월 27일
댓글: KSSV 2016년 11월 28일
hello i am a beginner in matlab. i have 10 frames of echocardiography so each frame is in a time index.(t1,t3,t5...) i want to interpolate between these images in time domain to make 10 frame to 20 frames to increase the frame rate. could anyone help me. its possible to use interp1 for each pixel, how cani do it? thanks

채택된 답변

KSSV
KSSV 2016년 11월 28일
m = 100; n = 100 ;
I = rand(m,n,10) ; % your frames
fr = 1:2:20 ; % frame time
fri = 2:2:20 ; % frame time to be inteprolated
Ii = zeros(m,n,length(fri)) ; % initiliaze the interpolated frames
%%inteproaltion
for i =1:m
for j = 1:n
I_ij = squeeze(I(i,j,:)) ;
Ii_ij = interp1(fr,I_ij,fri,'spline') ;
Ii(i,j,:) = reshape(Ii_ij,1,1,length(fri)) ;
end
end
You can vectorize the above one.
  댓글 수: 2
tala
tala 2016년 11월 28일
hello sir thanks for your attention could you please tell me what are m and n? and what does rand do here?
KSSV
KSSV 2016년 11월 28일
m, n are dimensions....rand, I created a random matrix to replicate the frames.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by