Skip to content
Snippets Groups Projects
Commit 2a8c420f authored by Kai Schleicher's avatar Kai Schleicher
Browse files

feature: find_nuclei function uses much more sensitive threshold method

parent f9a787e3
No related branches found
No related tags found
No related merge requests found
......@@ -261,7 +261,7 @@ def select_central_nuclei( imp, channel, rm, min_intensity ):
for i, roi in enumerate(all_rois):
imp.setRoi(roi)
stats = imp.getStatistics()
if stats.stdDev > 250 and stats.max > min_intensity:
if stats.max > min_intensity:
selected_rois.append(i)
return selected_rois
......@@ -399,7 +399,7 @@ renumber_rois(rm)
save_all_rois( rm, output_dir + "all_fiber_rois_shrunk.zip" )
if min_nucleus_intensity == 0:
min_nucleus_intensity = 0.524 * get_threshold_from_method(raw, nucleus_channel, "Default")[0] # relax he threshold by 50%
min_nucleus_intensity = get_threshold_from_method(raw, nucleus_channel, "Mean")[0]
IJ.log( "automatic intensity threshold detection: True" )
IJ.log( "nucleus intensity threshold: " + str(min_nucleus_intensity) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment