pyorc.Transect.get_xyz_perspective#
- Transect.get_xyz_perspective(M=None, xs=None, ys=None, mask_outside=True)[source]#
Get camera-perspective column, row coordinates from cross-section locations.
- Parameters:
M (np.ndarray, optional) – perspective transform matrix (Default value = None)
xs (np.array, optional) – x-coordinates to transform, derived from self.x if not provided (Default value = None)
ys – y-coordinates to transform, derived from self.y if not provided (Default value = None)
mask_outside – values not fitting in the original camera frame are set to NaN (Default value = True)
- Returns:
cols (list of ints) – columns of locations in original camera perspective
rows (list of ints) – rows of locations in original camera perspective