Skip to content

Commit 99ba810

Browse files
committed
I added a setting to the settings class of windef.py allowing the user to choose between normalized median filter and regular median filter.
1 parent 7b53966 commit 99ba810

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

openpiv/windef.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,12 @@ class PIVSettings:
129129
min_max_v_disp: Tuple=(-30, 30)
130130
# The second filter is based on the global STD threshold
131131
std_threshold: int=10 # threshold of the std validation
132-
# The third filter is the median test (not normalized at the moment)
132+
# The third filter is the median test: pick between normalized and regular
133+
median_normalized: bool=False # False = do regular median, True = do normalized median
133134
median_threshold: int=3 # threshold of the median validation
135+
median_size: int=1 # defines the size of the local median
134136
# On the last iteration, an additional validation can be done based on
135137
# the S/N.
136-
median_size: int=1 # defines the size of the local median
137138

138139

139140

0 commit comments

Comments
 (0)