odc.geo.roi.scaled_up_roi

odc.geo.roi.scaled_up_roi(roi, scale, shape=None)[source]

Compute ROI for a scaled up image.

Given a crop region in the original image compute equivalent crop in the upsampled image.

Parameters:
  • roi (Tuple[NormalizedSlice, NormalizedSlice]) – ROI in the original image

  • scale (int) – integer scale to get scaled up image

  • shape (Union[Tuple[int, int], XY[int], Shape2d, Index2d, None]) – Clamp to that shape is supplied

Return type:

Tuple[NormalizedSlice, NormalizedSlice]

Returns:

ROI in the scaled up image