Skip to content

Commit 231a800

Browse files
authored
updating default parameter for remove_outlier
1 parent 5e1c8c5 commit 231a800

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

httomolibgpu/misc/corr.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def median_filter(
114114

115115

116116
def remove_outlier(
117-
data: cp.ndarray, kernel_size: int = 3, dif: float = 0.1
117+
data: cp.ndarray, kernel_size: int = 3, dif: float = 1000
118118
) -> cp.ndarray:
119119
"""Selectively applies 3D median filter to a 3D CuPy array to remove outliers. Also called a dezinger.
120120
For more detailed information, see :ref:`method_outlier_removal`.
@@ -126,8 +126,8 @@ def remove_outlier(
126126
kernel_size : int, optional
127127
The size of the filter's kernel (a diameter).
128128
dif : float, optional
129-
Expected difference value between outlier value and the
130-
median value of the array.
129+
Expected difference value between the outlier value (central voxel) and the
130+
median value of the neighbourhood. Lower values lead to median filtering.
131131
132132
Returns
133133
-------

0 commit comments

Comments
 (0)