YUV video processing in Matlab
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Chaine San Buenaventura
el 13 de Oct. de 2013
Respondida: Image Analyst
el 13 de Oct. de 2013
I am using this function I got from the File Exchange:
>>[Y,U,V]=yuv_import('test.yuv',[176 144],150,0)
I got this from: Convert YUV CIF 4:2:0 video file to image files It prints out the Y, U and V components of the yuv file test.yuv. When I typed:
>>Y
It displayed:
Y =
Columns 1 through 5
[144x176 double] [144x176 double] [144x176 double] [144x176 double] [144x176 double]
Columns 6 through 10
[144x176 double] [144x176 double] [144x176 double] [144x176 double] [144x176 double]
Columns 11 through 15
[144x176 double] [144x176 double] [144x176 double] [144x176 double] [144x176 double]
Columns 16 through 20
[144x176 double] [144x176 double] [144x176 double] [144x176 double] [144x176 double]
...............
Columns 116 through 120
[144x176 double] [144x176 double] [144x176 double] [144x176 double] [144x176 double]
Columns 121 through 125
[144x176 double] [144x176 double] [144x176 double] [144x176 double] [144x176 double]
Columns 126 through 130
[144x176 double] [144x176 double] [144x176 double] [144x176 double] [144x176 double]
Columns 131 through 135
[144x176 double] [144x176 double] [144x176 double] [144x176 double] [144x176 double]
Columns 136 through 140
[144x176 double] [144x176 double] [144x176 double] [144x176 double] [144x176 double]
Columns 141 through 145
[144x176 double] [144x176 double] [144x176 double] [144x176 double] [144x176 double]
Columns 146 through 150
[144x176 double] [144x176 double] [144x176 double] [144x176 double] [144x176 double]
And..
>>size(Y)
displayed:
ans =
1 150
Doing the same for U and V components also showed the same results.
And also..
>>Y(150)
displayed:
ans =
[144x176 double]
What I want is make an array for Y, U and V that has the dimensions [numberOfFrames height width] or [150 144 176]. How can I do this?
[1]: http://www.mathworks.com/matlabcentral/fileexchange/6318
0 comentarios
Respuestas (1)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!