* use explicit extrapolation only for sub-matrixes * use built-in interpolation for INTER_NEAREST mode