Azzera filtri
Azzera filtri

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

1 visualizzazione (ultimi 30 giorni)
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 Commenti
Image Analyst
Image Analyst il 20 Gen 2012
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
ak il 20 Gen 2012
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

Accedi per commentare.

Risposte (2)

Walter Roberson
Walter Roberson il 19 Gen 2012
blocks(:,:,ThisBlockNumber) = thisblock;
  3 Commenti
ak
ak il 20 Gen 2012
sir while handling above command i am finding Error "Dimension missmatch" . So how it can be rectified?
Walter Roberson
Walter Roberson il 20 Gen 2012
blocks(:,:,:,ThisBlockNumber) = thisblock;
if thisblock is an RGB image (3 dimensional)

Accedi per commentare.


Walter Roberson
Walter Roberson il 20 Gen 2012
If you want to store each block in a separate variable.. Please don't!

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by