clearex.filter.kernels
Functions
|
Create a 1D Gaussian kernel. |
|
Create a 3D structuring element. |
Create a 1D second derivative Gaussian kernel. |
- clearex.filter.kernels.make_3d_structured_element(radius, shape='sphere')
Create a 3D structuring element.
- Parameters:
radius (int) – The radius of the structuring element.
shape (str) – The shape of structuring element to create. Options are ‘sphere’.
- Returns:
The 3D structuring element.
- Return type:
np.ndarray
- clearex.filter.kernels.gaussian_kernel(sigma)
Create a 1D Gaussian kernel.
- Parameters:
sigma (float) – The standard deviation of the Gaussian kernel.
- Returns:
The 1D Gaussian kernel.
- Return type:
np.ndarray
- clearex.filter.kernels.second_derivative_gaussian_kernel(sigma)
Create a 1D second derivative Gaussian kernel.
- Parameters:
sigma (float) – The standard deviation of the second derivative Gaussian kernel.
- Returns:
The 1D second derivative Gaussian kernel.
- Return type:
np.ndarray