How convert an m x n x p image sequence to an m x n x 3 x p sequence efficiently?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Nora
am 12 Nov. 2013
Bearbeitet: Andrei Bobrov
am 12 Nov. 2013
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 Kommentare
Akzeptierte Antwort
Andrei Bobrov
am 12 Nov. 2013
Bearbeitet: Andrei Bobrov
am 12 Nov. 2013
A - array with size [m x n x p].
out = reshape(repmat(reshape(A,[],p),3,1),[m n 3 p]);
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Convert Image Type finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!