Confusion on total number of blocks produced after splitting image into overlapping blocks.
Show older comments
So apparently i found out about the principle that states the total number of blocks produced from splitting an image into overlapping blocks is computed with the following equation.
(M-B+1)(N-B+1)
where M and N are the dimensions of the input image and B is the block size. So i suggest that, if i want to split an image of dimension 256x256 into 8x8 overlapping blocks, then according to the equation i would get:
(256-8+1)(256-8+1) = 62001 blocks in total
I'm assuming that the +1 indicates overlap by 1 pixel? Correct me if I'm wrong.
However, what would it be if i were to split into 8x8 overlapping blocks with an overlap of 4 pixels? Would the equation be:
(256-8+4)(256-8+4) = 63504 blocks in total?
I also realize that somehow the equation doesn't take into account partial blocks? Is this principle reliable, or am i interpreting it wrongly?
Accepted Answer
More Answers (0)
Categories
Find more on Computer Vision with Simulink in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!