Array of Matrices.?

Hi, I'm a complete novice to MATLAB. I'm reading a few images and want to save their matrix value in an array. Every image is 576x576px and theres about 100 of them.
Also, how do you multiply a uint8 matrix with a double matrix without losing image quality?

2 commentaires

Jan
Jan le 3 Août 2011
Please post, what you have done so far. It is much more efficient to modify your code, than to post completely new code, which would increase your confusion again.
Aditya
Aditya le 4 Août 2011
Yes...
Hitherto I have done...
A=imread(filename)
(A is now a uint8 matrix
A=double(A) because the dct2 function gives me a matrix array I cant multiple with A. (HELP ME WITH THIS PLEASE)
B=dct2(A)
M=B*A*B'
now I have to store M in an array. There are about 158 values of M. Also, they have to be in 2 different arrays one of sice 64 and the other of the remaining size.
Then I have to run a loop which gives me the max value of M-N for every corresponding value in the matrices and obtain the minimum.
How do I make the array. Also, can is there a way to multiply the A and B matrices without casting??

Connectez-vous pour commenter.

Réponses (2)

the cyclist
the cyclist le 3 Août 2011

0 votes

Regarding your first question: MATLAB supports N-d arrays, so you can store a variable as 576x576x100.

1 commentaire

Aditya
Aditya le 3 Août 2011
Ohh I see. But how will I exactly go coding that? I have to run a minimum value for loop through it, so how do I point to each value?
Im sorry to ask such a basic question, the thing is...I need to learn MATLAB in 2 days in order to carry out this research implementation I'm working on.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange

Question posée :

le 3 Août 2011

Community Treasure Hunt

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

Start Hunting!

Translated by