MATLAB: Sliding window in image

image processingsliding window

How can i use a 32×32 sliding window on an image and extract glcm feaures from that?

Best Answer

Hi Athulya,
Check if this works for you:-
im=rgb2gray(imread('SM.jpg')); %some image
fun = @(block_struct) graycomatrix(block_struct.data);
im2=blockproc(im,[32 32],fun);
Links:-
Related Question