openpiv_cxx.filters.contrast_stretch¶
- openpiv_cxx.filters.contrast_stretch(img, lower_limit=2.0, upper_limit=98.0)¶
Simple percentile-based contrast stretching.
- Parameters:
img (ndarray) – A two dimensional array containing pixel intenensities.
lower_limit (int) – Lower percentile limit.
upper_limit (int) – Upper percentile limit.
- Returns:
img – A filtered two dimensional array of the input image
- Return type:
ndarray