reVX.utilities.utilities.centered_pixels
- centered_pixels(rows, cols, src_transform)[source]
Convert array indices to pixel center locations
- Parameters:
rows, cols (np.ndarray) – 2D array of array indices to convert to locations.
src_transform (affine.Affine) – Affine transform to move from indices of array to pixel locations.
- Returns:
rows, cols (np.ndarray) – Array indices transformed to centered pixels locations in the source coordinate system (defined by src_transform).