Image.scalespace#
- Image.scalespace(n: int, sigma: int | float = 1) tuple[list[Any], list[Any], list[float]][source]#
Compute image scalespace sequence
- Parameters:
n (omt) – number of steps
sigma (scalar, optional) – Gaussian filter width, defaults to 1
- Returns:
Gaussian and difference of Gaussian sequences, scale factors
- Return type:
Compute a scalespace image sequence by consecutively smoothing the input image with a Gaussian of width
sigma. The difference between consecutive smoothings is the difference of Gaussian which is an approximation to the Laplacian of Gaussian.Examples:
mona = Image.Read("monalisa.png", dtype="float"); G, L, scales = mona.scalespace(8, sigma=8);
Note
The two image sequences have the same length, the original image is not included in the list of smoothed images.
- References:
P. Corke, Robotics, Vision & Control for Python, Springer, 2023, Section 12.3.2.
- Seealso: