calculate correlation between the blocks
1 回表示 (過去 30 日間)
古いコメントを表示
i've divided the image into 16x16 blocks i.e total of 256 blocks.
now i want to calculate the correlation between the blocks...
can anybody help me...
4 件のコメント
採用された回答
Matt J
2013 年 3 月 29 日
Blocks=mat2tiles(grayImage,[16,16]);
data=cellfun(@(x)x(:)-mean(x(:)), Blocks, 'uni',0 );
data=[data{:}];
Correlations = data.'*data;
Here, Correlations(i,j) is the correlation (my definition) of the i-th and j-th block. I'm not sure if this suits your definition (see my comments above).
4 件のコメント
Matt J
2013 年 3 月 30 日
Undefined function 'mat2tiles' for input arguments of type 'uint8'.
You were meant to download mat2tiles from the link I gave you.
now guide me how to calculate correlation between these blocks????
This is the third time you've neglected to define what you mean by "correlation". Show us how you would compute the correlation of 2 blocks in some simplified example and explain what problem you're having extending it to many blocks.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Feature Detection and Extraction についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!