check_diagonal

menpofit.checks.check_diagonal(diagonal)[source]

Checks that the diagonal length used to normalize the images’ size is >= 20.

Parameters

diagonal (int) – The value to check.

Returns

diagonal (int) – The value if it’s correct.

Raises

ValueError – diagonal must be >= 20 or None