hello, i m new to matlab,,, plz help me ....how can we divide an image into overlapping blocks?
1 回表示 (過去 30 日間)
古いコメントを表示
採用された回答
Image Analyst
2013 年 1 月 21 日
編集済み: Image Analyst
2013 年 1 月 21 日
blockproc() can do that. Or you can use just regular indexing where you specify yourImage(row1:row2, col1:col2) if you specify the rows and columns correctly. E.g.
block1 = yourImage(1:50, 1:50);
block2 = yourImage(10:60, 1:50); % Overlap of 41 pixels vertically.
0 件のコメント
その他の回答 (1 件)
Thorsten
2013 年 1 月 21 日
If your have a function FUN to be applied to each block, you can use
B = nlfilter(A, [M N], FUN)
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!