i dont know how to calculate the coorelation of corresponding pixels of the blocks that have the same value.

1 回表示 (過去 30 日間)
i've divided the image into discrete blocks and then i've calculated the corresponding mean value of each and every block. the mean value of some of the blocks are same or some have different value i.e block 32,43 and 65 have same value, block 67,89 and 12 have same value.
now i want to calculate the coorelation of corresponding pixels of the blocks that have the same value i.e.
the correlation between the first pixels of 32,43 and 65 block.....then correlation among second pixels of these blocks and so on....then avg these
values......
as i m novice i dont know how to calculate the correlation of corresponding pixels of the block...

採用された回答

Image Analyst
Image Analyst 2013 年 3 月 31 日
What about this:
correlationImage = xcorr2(block53, block32);
  11 件のコメント
Image Analyst
Image Analyst 2013 年 4 月 3 日
I'm sorry I can't spend as much time on your project as you'd want me to. I don't know how you get your blocks. Maybe you used mat2cell or something. But however you got them, you have to get them into two arrays so that you can pass them into xcorr2(). Whether that is by pulling them out of a cell in a cell array or pulling them out of a plane of a 3D image, I don't know. Do whatever you have to do to get the two sub-images. I don't have time to figure that part out for you. Sorry.
pammy
pammy 2013 年 4 月 8 日
sir m not using mat2cells, m using indexing techniques like:
image(row1:row2,col1:col2);

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by