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 个评论
Image Analyst
2012-1-19
"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?
ak
2012-1-20
Image Analyst
2012-1-20
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?
Image Analyst
2012-1-20
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?
ak
2012-1-20
回答(2 个)
Walter Roberson
2012-1-19
blocks(:,:,ThisBlockNumber) = thisblock;
3 个评论
Sean de Wolski
2012-1-19
You can now calculate the statics on your blocks matrix by using the dimensional input to std/mean/etc.
ak
2012-1-20
Walter Roberson
2012-1-20
blocks(:,:,:,ThisBlockNumber) = thisblock;
if thisblock is an RGB image (3 dimensional)
Walter Roberson
2012-1-20
0 个投票
If you want to store each block in a separate variable.. Please don't!
类别
在 帮助中心 和 File Exchange 中查找有关 Neighborhood and Block Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!