get_base_size

lib.align.aligned_utils.get_base_size(size: int, source_centering: CenteringType, source_coverage: float = 1.0) int

For an aligned patch of the given size, centering and coverage, obtain the size of the patch that contains the core central area with no padding applied

Parameters:
  • size (int) – The size of the larger patch to obtain the core size for

  • source_centering (CenteringType) – The centering type of the image patch to obtain the core size for

  • source_coverage (float) – The coverage of the source patch to obtain the core size for. Default: 1.0

Return type:

The size of the core patch of larger patch of the given size, centering and coverage