Preprocessor.edge_gaussian_filter#
- Preprocessor.edge_gaussian_filter(template, edge_algorithm, sigma, reverse=False)[source]#
Perform Gaussian filterring according to edges in the input template.
- Parameters:
- templateNDArray
The input atomic structure map.
- sigmaNDArray
The sigma value for the Gaussian filter.
- edge_algorithmstr
The algorithm used to identify edges. Options are:
‘sobel’
Applies sobel filter for edge detection.
‘prewitt’
Applies prewitt filter for edge detection.
‘laplace’
Computes edges as second derivative.
‘gaussian’
See scipy.ndimage.gaussian_gradient_magnitude
‘gaussian_laplace
See scipy.ndimage.gaussian_laplace
- reversebool, optional
If true, the filterring is strong along edges. Default is False.
- Returns:
- NDArray
Simulated electron densities.