Solved by ptrblck in post #2 
              
              
                Based on this implementation, the input of 14x14 and output of 3x3 would create the first start and end index as: 
# First iteration
istartH = floor((0*14)/3) = 0
iendH = ceil((1*14)/3) = 5

# Second iteration
istartH = floor((1*14)/3) = 4
iendH = ceil((2*14)/3) = 10

So it seems that the window siz…