Complete OpenniCamera.calcSamplingIndicesByGrid().