How convert an m x n x p image sequence to an m x n x 3 x p sequence efficiently?
3 次查看(过去 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!