Click here to Skip to main content
15,887,386 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone

Today I was playing around with MATLAB, and reading a QCIF YUV file into the workspace.

If I only look at one frame I get:

<removed border="1">
Name Value Class
u <1x72x88 uint8> uint8
v <1x72x88 uint8> uint8
y <144x176> uint8

However if i look at a sequence of frames say (1-3), I get:

<removed border="1">
Name Value Class
u <3x72x88 uint8> uint8
v <3x72x88 uint8> uint8
y <3x144x176> uint8

The "imshow(y)" command doesn't work for the second table. So I guess my question is what is the command that enables me to look at the x picture and display it?

<removed border="1">
1st Dimension 2nd Dimension 3rd Dimension
Frame number picture row picture column
Posted
Updated 31-Mar-10 9:50am
v2

1 solution

This can be achieved using the squeeze command
B=squeeze(y(i,:,:);
imshow(B)
//% or you could do image processing on B


If you're interested in this, and similar matrix adjustments look at eig on mathworks too.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900