フィルターのクリア

How convert an m x n x p image sequence to an m x n x 3 x p sequence efficiently?

2 ビュー (過去 30 日間)
Nora
Nora 2013 年 11 月 12 日
編集済み: Andrei Bobrov 2013 年 11 月 12 日
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?

採用された回答

Andrei Bobrov
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 件)

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by