Skip to content
Snippets Groups Projects
Commit 159738ea authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Add some log messages to apply_model()

parent d4d86e3d
No related branches found
No related tags found
No related merge requests found
......@@ -38,14 +38,16 @@ def apply_model(imps, model, merge=True):
The merged ImagePlus with all channels, or the original list of stacks
with the shading-corrected image planes.
"""
log.debug("Applying shading correction...")
calc = ij.plugin.ImageCalculator()
for stack in imps:
# log.debug("Processing channel...")
for i, stack in enumerate(imps):
log.debug("Processing channel %i...", i)
calc.run("Divide stack", stack, model)
if not merge:
return imps
log.debug("Merging shading-corrected channels...")
merger = ij.plugin.RGBStackMerge()
merged_imp = merger.mergeChannels(imps, False)
return merged_imp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment