Skip to content

Commit 862bbef

Browse files
Remove redundant comments
1 parent a3448ff commit 862bbef

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/imcflibs/imagej/shading.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,16 @@ def simple_flatfield_correction(imp, sigma=20.0):
201201
"""
202202
flatfield = imp.duplicate()
203203
sigma_str = "sigma=" + str(sigma)
204-
IJ.run(flatfield, "Gaussian Blur...", sigma_str) # Apply a gaussian blur
204+
205+
IJ.run(flatfield, "Gaussian Blur...", sigma_str)
205206
stats = StackStatistics(flatfield)
206-
IJ.run(flatfield, "32-bit", "") # Make a 32 bit version of the image
207+
208+
# Normalize image to the highest value of original (requires 32-bit image)
209+
IJ.run(flatfield, "32-bit", "")
207210
IJ.run(
208211
flatfield,
209212
"Divide...",
210-
"value=" + str(stats.max)) # Normalize 32 bit image to the highest value of original
213+
"value=" + str(stats.max))
211214
ic = ImageCalculator()
212215
flatfield_corrected = ic.run("Divide create", imp, flatfield)
213216

0 commit comments

Comments
 (0)