openpiv_cxx.filters.threshold_binarization¶
- openpiv_cxx.filters.threshold_binarization(img, threshold=0.5, keep_dtype=True)¶
A threshold binarization filter.
- Parameters:
img (ndarray) – A two dimensional array containing pixel intenensities.
kernel_size (int) – nxn size of the convolution kernel.
sigma (float) – sigma of nxn gaussian convolution kernel.
keep_dtype (bool) – Cast output to original dtype.
- Returns:
new_img – A two dimensional array containing pixel intenensities.
- Return type:
ndarray