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 imagefun = @(block_struct) graycomatrix(block_struct.data);im2=blockproc(im,[32 32],fun);Links:- https://www.mathworks.com/matlabcentral/answers/137673-sliding-window-operation-in-imagehttps://www.mathworks.com/help/images/ref/blockproc.htmlhttps://www.mathworks.com/help/images/ref/graycomatrix.html Related SolutionsMATLAB: How to resolve a syntax error when using BLOCKPROC please read help about function blockprocegfun = @(block_struct)std2(block_struct.data) * ones(size(block_struct.data)));stddevim = blockproc(im, [blksze blksze], fun); MATLAB: How to extract feature using GLCM Does glcm mean Gray-Level Co-Occurrence Matrix? If so, apply GRAYCOMATRIX to your images. Related QuestionI have a qeustion
Best Answer