No, `window` should be greater than the "texture element", i.e. the largest repeating pattern which needs to be inpainted.