check_patch_shape¶
-
menpofit.checks.
check_patch_shape
(patch_shape, n_scales)[source]¶ Function for checking a multi-scale patch_shape parameter value.
- Parameters
patch_shape (list/tuple of int/float or list of those) – The patch shape per scale
n_scales (int) – The number of scales.
- Returns
patch_shape (list of list/tuple of int/float) – The list of patch shape per scale.
- Raises
ValueError – patch_shape must be a list/tuple of int or a list/tuple of lit/tuple of int/float with the same length as the number of scales