Matrix<? extends PArray> m = singleFrame.matrix();
FramePosition p = singleFrame.position();
if (integerShiftPositions) {
// System.out.println("1 frame branch: integer coordinates");
Point o = p.area().min();
IPoint localOffset = o.toRoundedPoint();
assert o.equals(localOffset.toPoint());
Matrix<T> casted = Matrices.asFuncMatrix(Func.IDENTITY, requiredType, m);
// - must be before subMatr, if requiredType allows outsideValue, but the source matrix does not
return casted.subMatr(localOffset.symmetric().coordinates(), dimensions,
Matrix.ContinuationMode.getConstantMode(outsideValue(actualFrames)));