- smpy.filters.starlet.compute_starlet_nscales_max(height: int, width: int) int[source]¶
Compute the safe maximum
nscalesfor a starlet transform.The starlet (isotropic undecimated, à trous) transform produces
Jdetail bands and one coarse residual. The number of scales is defined asnscales = J + 1. The B3–spline à trous kernel support at detail levelj(0-indexed) isL_j = 4 * 2^j + 1pixels. To avoid border- dominated coefficients, the coarsest detail (j = J - 1) must satisfyL_{J-1} <= NwhereN = min(height, width).- Parameters:
height (int) – Image height in pixels.
width (int) – Image width in pixels.
- Returns:
nscales_max – Maximum safe number of starlet scales (detail bands + coarse).
- Return type:
int