Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image rescaling in foci analysis #50

Open
gletreut opened this issue Jan 11, 2018 · 0 comments
Open

Image rescaling in foci analysis #50

gletreut opened this issue Jan 11, 2018 · 0 comments

Comments

@gletreut
Copy link
Contributor

In the foci_lap method of mm3_helpers.py file, it might be worth it to scale the img_foci array before applying the foci detection. For a grayscale image, just apply the operation:
img_new = (img - px_min)/(px_max - px_min) * 255

This should help to treat all images equally for foci detection. In particular, instead of having the same threshold for all images, one could take:
threshold = px_median * snr,
where snr is the signal-to-noise ratio used, i.e. foci_log_peak_med_ratio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants