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 件のコメント

Jan
Jan 2011 年 8 月 3 日
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 2011 年 8 月 4 日
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 件のコメント

Aditya
Aditya 2011 年 8 月 3 日
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.

サインインしてコメントする。

Walter Roberson
Walter Roberson 2011 年 8 月 3 日

0 投票

1 件のコメント

Walter Roberson
Walter Roberson 2011 年 8 月 4 日
instead of using double(A), I suggest you use im2double(A)

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeLoops 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