필터 지우기
필터 지우기

I have code which reads-in a time series of 46 images, each 2400x2400 matrices. I have a variable 'k' which is a 10000x2 matrix which contains row/column locations of cells within the 2400x2400 matrices that I need to isolate. (In 'k': column 1....

조회 수: 1 (최근 30일)
I am in need of help in executing the following task.
I have code which reads-in a time series of 46 images, each 2400x2400 matrices.
I have a variable 'k' which is a 10000x2 matrix which contains row/column locations of cells within the 2400x2400 matrices that I need to isolate. (In 'k': column 1 contains row locations and column 2 contains the corresponding columns).
My end goal is a 1x10000x46 matrix which contains only the information from the 2400x2400 matrices which corresponds to the the cell locations specified in 'k' (for the 46-image time series).
Please let me know what additional information I can provide.
Thank you very much.

채택된 답변

Matt J
Matt J 2012년 11월 30일
편집: Matt J 2012년 11월 30일
timeseries=rand(2400,2400,46);
idx=sub2ind([2400,2400],k(:,1),k(:,2));
T=reshape(timeseries,[],46);
result=permute(T(idx,:),[3,1,2]);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by