Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

567 B
Raw Blame

ScalePyramid now raises ValueCheckError when n_levels is not a positive integer or min_size is negative or NaN, as it does for extra_levels. n_levels=0 used to fail with a ZeroDivisionError, n_levels=-1 with extra_levels=1 returned octaves of a single level without an error, other negative values failed inside forward, and n_levels=True was read as 1; a negative or NaN min_size failed inside forward once the octaves reached an empty image. Every positive integer n_levels and non-negative min_size builds the same pyramid as before.