extracting the values from cell array in matlab -
related work, divided image number of overlapping blocks , each blocks dct coefficients calculated. dct coefficients of each block stored in cell-array. next want retrieve values form 1 cell. how can retrieve values cell?
as answer. assume following question: "and stored each dct coefficient blocks cell". have e.g. 20 blocks each containing dct of 100*100 pixel(double). data stored in 20x1 cell array each cell has 100x100 (double) entries.
adress block (1 cell argument) use:
block_data=cell_data{k,l};
to adress 1 element of elements inside block_data
use "normal" adressing:
element_data=block_data(m,n);
k,l,m,n
indices of respective data. assume dct-block-data numeric (e.g. double)
Comments
Post a Comment