User guide (TODO)

Library

Projective transformations

Preprocessing

Reference

private offsetcropindicesfunction

offsetcropindices(sz, indices, offsets)

Calculate indices for a crop of size sz out of indices. Input and output indices are represented as tuples of ranges.

For every dimension i where sz[i] < length(indices[i]), offsets the crop by offsets[i] times the difference between the two.