get_sub_crop_scale
- lib.align.aligned_utils.get_sub_crop_scale(source_centering: CenteringType, target_centering: CenteringType, source_coverage: float = 1.0, target_coverage: float = 1.0) float
For a source aligned patch of the given centering and the given coverage, obtain the ratio to obtain a destination patch of the given coverage
- Parameters:
source_centering (CenteringType) – The centering type of the source image patch to obtain the destination ratio for
target_centering (CenteringType) – The centering type of the destination image patch to obtain the ratio for
source_coverage (float) – The coverage of the source patch to obtain the destination ratio for. Default: 1.0
target_coverage (float) – The coverage of the destination patch to obtain the ratio for. Default: 1.0
- Return type:
The ratio to take the source patch to the destination patch for the given coverage ratios