【发布时间】:2017-09-23 12:29:33
【问题描述】:
我想实现滑动窗口算法。 目标是显示我所有的窗口。 但我只有 1 个窗口。 这是我的代码:
clc;clear all;`
image = imread('tabTes.png');
imageWidth = size(image, 2);
imageHeight = size(image, 1);
windowWidth = 100;
windowHeight = 100;
for j = 1:imageHeight - imageHeight + 1
for i = 1:imageWidth - imageWidth + 1
SlideWindow = image(j:j + windowHeight - 1, i:i + windowWidth - 1, :);
end
end
figure
imshow(SlideWindow);
【问题讨论】:
标签: matlab sliding-window