Commit b99170a2 authored by Chris Coughlin's avatar Chris Coughlin

Updated sliding window demo to show rectangular windows

parent 5ff027cd
......@@ -29,9 +29,10 @@ public class SlidingWindow {
System.out.println("");
int step = 1;
int ws = 2;
System.out.println("Sliding across input with window " + ws + "x" + ws + ", stepsize " + step + ".\n");
SlidingWindowOperation slider = new SlidingWindowOperation(step, ws);
int windowWidth = 2;
int windowHeight = 3;
System.out.println("Sliding across input with window " + windowWidth + "x" + windowHeight + ", stepsize " + step + ".\n");
SlidingWindowOperation slider = new SlidingWindowOperation(step, windowWidth, windowHeight);
Dataset res;
int win = 1;
while ((res = slider.run(inp)) != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment