How convert an m x n x p image sequence to an m x n x 3 x p sequence efficiently?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi, I would like to convert my grayscale image sequence to an rgb sequence, and I'm wondering if it possible to do it without a loop?
댓글 수: 0
채택된 답변
Andrei Bobrov
2013년 11월 12일
편집: Andrei Bobrov
2013년 11월 12일
A - array with size [m x n x p].
out = reshape(repmat(reshape(A,[],p),3,1),[m n 3 p]);
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!