machinevisiontoolbox.Image.scalespace
- Image.scalespace(n, sigma=1)
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:
list of
Image
, list ofImage
, list of float
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);