pumapy.filters¶
pumapy.filters.filters¶
-
pumapy.filters.filters.
filter_closing
(ws, cutoff, size=5)[source]¶ 3D morphological closing filter (i.e. erosion first and then dilation).
- Parameters
ws (Workspace) – input workspace
cutoff (tuple(int, int)) – cutoff to binarize image
size (int, optional) – size of the spherical windows used
- Returns
True if successful, False otherwise.
- Return type
bool
-
pumapy.filters.filters.
filter_dilate
(ws, cutoff, size=5)[source]¶ 3D morphological dilation filter.
- Parameters
ws (Workspace) – input workspace
cutoff (tuple(int, int)) – cutoff to binarize image
size (int, optional) – size of the spherical windows used
- Returns
True if successful, False otherwise.
- Return type
bool
-
pumapy.filters.filters.
filter_edt
(ws, cutoff)[source]¶ 3D Exact euclidean distance transform.
- Parameters
ws (Workspace) – input workspace
cutoff (tuple(int, int)) – cutoff to binarize image
- Returns
True if successful, False otherwise.
- Return type
bool
-
pumapy.filters.filters.
filter_erode
(ws, cutoff, size=5)[source]¶ 3D morphological erosion filter.
- Parameters
ws (Workspace) – input workspace
cutoff (tuple(int, int)) – cutoff to binarize image
size (int, optional) – size of the spherical windows used
- Returns
True if successful, False otherwise.
- Return type
bool
-
pumapy.filters.filters.
filter_gaussian
(ws, sigma=1, apply_on_orientation=False)[source]¶ 3D Gaussian filter
- Parameters
ws (Workspace) – input workspace
sigma (int) – size of kernel
apply_on_orientation (bool, optional) – specify whether to apply filter on orientation field
- Returns
True if successful, False otherwise.
- Return type
bool
-
pumapy.filters.filters.
filter_mean
(ws, size=5)[source]¶ 3D Mean filter.
- Parameters
ws (Workspace) – input workspace
size (int, optional) – size of window
- Returns
True if successful, False otherwise.
- Return type
bool
-
pumapy.filters.filters.
filter_median
(ws, size)[source]¶ 3D Median filter
- Parameters
ws (Workspace) – input workspace
size (int) – size of window
- Returns
True if successful, False otherwise.
- Return type
bool
-
pumapy.filters.filters.
filter_opening
(ws, cutoff, size=5)[source]¶ 3D morphological opening filter (i.e. dilation first and then erosion).
- Parameters
ws (Workspace) – input workspace
cutoff (tuple(int, int)) – cutoff to binarize image
size (int, optional) – size of the spherical windows used
- Returns
True if successful, False otherwise.
- Return type
bool