user570593
user570593

Reputation: 3520

imageprocessing obtaining histogram from patches matlab

I have an image of size (H,W). I would like to get histograms of each patch of size [N,N] from that image. These patches should have half overlap. What is the fast way to do it?

If I use blockproc in Matlab I think I won't be able to get overlapping patches.

Upvotes: 0

Views: 239

Answers (1)

Shai
Shai

Reputation: 114926

You can use blockproc for overlapping blocks. just use the 'BorderSize' property.

Upvotes: 1

Related Questions