How convert an m x n x p image sequence to an m x n x 3 x p sequence efficiently?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Andrei Bobrov
il 12 Nov 2013
Modificato: Andrei Bobrov
il 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Convert Image Type in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!