openpiv_cxx.filters.intensity_cap¶
- openpiv_cxx.filters.intensity_cap(img, std_mult=2.0, keep_dtype=True)¶
Set pixels above threshold to threshold.
Set pixels higher than calculated threshold to said threshold. The threshold value is calcualted by img_mean + std_mult * img_std.
- Parameters:
img (ndarray) – A two dimensional array containing pixel intenensities.
std_mult (float) – Lower values yields a lower threshold.
keep_dtype (bool) – Cast output to original dtype.
- Returns:
img – A filtered two dimensional array of the input image.
- Return type:
ndarray