Function apriltag_sys::matd_select

source ·
pub unsafe extern "C" fn matd_select(
    a: *const matd_t,
    r0: c_int,
    r1: c_int,
    c0: c_int,
    c1: c_int
) -> *mut matd_t
Expand description

Creates a copy of a subset of the supplied matrix ‘a’. The subset will include rows ‘r0’ through ‘r1’, inclusive (‘r1’ >= ‘r0’), and columns ‘c0’ through ‘c1’, inclusive (‘c1’ >= ‘c0’). All parameters are zero-based (i.e. matd_select(a, 0, 0, 0, 0) will return only the first cell). Cannot be used on scalars or to extend beyond the number of rows/columns of ‘a’. It is the caller’s responsibility to call matd_destroy() on the returned matrix.