pymerlin.reg.histogram_threshold_estimator
- pymerlin.reg.histogram_threshold_estimator(img, plot=False, nbins=200)[source]
Estimate background intensity using histogram.
Initially used to reduce streaking in background but found to make little difference.
- Parameters
img (np.array) – Image
plot (bool, optional) – Plot result. Defaults to False.
nbins (int, optional) – Number of histogram bins. Defaults to 200.