Skip to content

Commit a6acaf8

Browse files
Add interactive test for shading
1 parent 146a9ef commit a6acaf8

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Prerequisites before running this script in Fiji:
2+
#
3+
# - The shading branch's .jar must be placed into the ./jars folder of your
4+
# Fiji installation.
5+
# - Open an image to test on (e.g. Shaded-blobs.png) in Fiji before running.
6+
# - Drag this script into Fiji and run it, or create a new script with language
7+
# set to Python and paste the contents.
8+
#
9+
# Expected result: a new image titled "Result of blobs.gif" opens alongside
10+
# the original, showing a flatfield corrected version of the raw blobs.gif.
11+
12+
from imcflibs.imagej import shading
13+
import ij
14+
from ij import IJ
15+
16+
imp = IJ.getImage()
17+
18+
# Any other method in class shading also works
19+
imcf_shading = shading.simple_flatfield_correction(imp)
20+
imcf_shading.show()

0 commit comments

Comments
 (0)