how to convert image into square matrix

i want find the determinant of the video matrix,,,, but video matrix size is X =76032 x 60.
Is there any function to convert such a video frames matrix into square matrix?
OR
how to reshape video frames into square matrix?
also to perform X*X' operation i want square matrix.
i am applying Gaussian process latent variable model to the texture video.
thanks...

3 commentaires

Jan
Jan le 5 Avr 2013
You can run X*X' with non-square matrices also.
Harshanand Meshram
Harshanand Meshram le 5 Avr 2013
yes we can run X*X' with non-square matrices also.
But when i perform X*K*X' operation i got an error
inner matrix dimensions must agree
Jon
Jon le 5 Avr 2013
I don't think you really want a square matrix for your purposes. In particular as Jan pointed out X*X' is fine for non square matrices. You probably have an error in forming the matrix K so that it doesn't have the correct dimensions. It should be 60 x 60 in your case.

Connectez-vous pour commenter.

Réponses (1)

Image Analyst
Image Analyst le 5 Avr 2013
I doubt your image frame is 76,032 pixels high by 60 columns wide. When you get a frame, what does this show
[rows, columns, numberOfColorFrames] = size(yourImage)
That said, you can use imresize() to squeeze your image into any size you want, such as a square.

2 commentaires

Harshanand Meshram
Harshanand Meshram le 5 Avr 2013
Actual video has 60 frames of size 288*352 and after applying imresize i have converted these RGB frames into 144*176 column vector which gives me 76032 x 60 size
My work is to analyse and synthesize video frames using Non-linear GPLVM
for that i have converted these frames into a column vector. is it a right way?
please help me, if there is another way to perform this method.
Image Analyst
Image Analyst le 5 Avr 2013
I have no idea. I've never heard of "Non-linear GPLVM"

Connectez-vous pour commenter.

Catégories

En savoir plus sur Convert Image Type dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by