Filter löschen
Filter löschen

1D array, elements are 2D matrix [test]

1 Ansicht (letzte 30 Tage)
Jin
Jin am 11 Feb. 2011
I read a 10 frames YUV sequence into matlab. There are three outputs, Y U and V. Each of them is a 1 by 10 matrix, and Each of the elements contains a 288*352 matrix. I wonder what is the syntex to read the 10 frames separatly. I try Y[:,1] but didn't work.
Thanks!

Antworten (2)

Vieniava
Vieniava am 11 Feb. 2011
What about this:
Y(:,:,1)

Walter Roberson
Walter Roberson am 12 Feb. 2011
Yf = cat(3,Y{:}); Uf = cat(3,U{:}); Vf = cat(3,V{:});
Then frame K is Yf(:,:,K) and Uf(:,:,K) and Vf(:,:,K)

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!

Translated by