how to divide the image into overlapping blocks?
古いコメントを表示
i need to identify the duplicate regions in an image for that i have to divide the image into overlapping blocks of fixed size lets suppose 16*16 pixels and then dct is performed on each block.
Division of blocks should be performed in such a way that if the block is a square of size b × b then the square is slid by one pixel along the image from the upper left corner right and down to the lower right corner.so please tell me how can i perform such kind of division of an image.
採用された回答
その他の回答 (1 件)
Anand
2014 年 2 月 11 日
2 投票
You could use the blockproc function. You would need to specify a 'BorderSize' of [1 1] and use a BlockSize of [16 16].
4 件のコメント
rahul lamba
2016 年 5 月 8 日
hi everyone, please can you suggest...how to divide an image into blocks with 50% overlapping
Image Analyst
2016 年 5 月 8 日
You'd have a 'BorderSize' of half the block size.
B = blockproc(yourImage, [16, 16], fun, 'BorderSize', [8, 8])
TUSHAR MURATKAR
2017 年 9 月 18 日
@image analyst, i tried in the way you explained but i got empty matrix.
カテゴリ
ヘルプ センター および File Exchange で Neighborhood and Block Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!