How to store a different image blocks in variable using array?

i had divided my image into overlapping blocks...and i can display it...but i like to store those different blocks in particular variables using array in order to find mean,variance,std deviation and magnitude,direction...So how is possible in array

댓글 수: 5

"i like to store those different blocks in particular variables" - well if those blocks aren't in variables now, what *are* they in? How did you do your dividing into blocks? Wouldn't that dividing put the data into variables? Do you just want to transfer them from one variable to another variable of a different name?
sir already i divided image into different blocks.But now i have to store each and every blocks in different variable in order to calculate features for every block.
Well if those blocks aren't in variables now, what *are* they in? How did you do your dividing into blocks? Wouldn't that dividing put the data into variables? Do you just want to transfer them from one variable to another variable of a different name?
In other words, what the heck is a "block"????????????? To me it's this
block1 = imageArray(row1:row2, column1:column2);
Now, block1 is a block. But it is also a variable, and that variable has a name, which is "block1." If you're not doing that, then what in the world are you doing?
sorry sir let me explain in clear.
We had taken a 500x500 image and divided into many blocks using for loop.and i want to store each block in different new variable using array

댓글을 달려면 로그인하십시오.

답변 (2개)

Walter Roberson
Walter Roberson 2012년 1월 19일
blocks(:,:,ThisBlockNumber) = thisblock;

댓글 수: 3

You can now calculate the statics on your blocks matrix by using the dimensional input to std/mean/etc.
sir while handling above command i am finding Error "Dimension missmatch" . So how it can be rectified?
blocks(:,:,:,ThisBlockNumber) = thisblock;
if thisblock is an RGB image (3 dimensional)

댓글을 달려면 로그인하십시오.

태그

아직 태그를 입력하지 않았습니다.

질문:

ak
2012년 1월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by