sliding window in image

1 次查看(过去 30 天)
How can i use a 32x32 sliding window on an image and extract glcm feaures from that?

采纳的回答

Shivam Prasad
Shivam Prasad 2019-10-17
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:-

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by