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 个评论

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.
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??

请先登录,再进行评论。

回答(2 个)

the cyclist
the cyclist 2011-8-3

0 个投票

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

1 个评论

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.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Loops and Conditional Statements 的更多信息

提问:

2011-8-3

Community Treasure Hunt

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

Start Hunting!

Translated by