We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 146a9ef commit a6acaf8Copy full SHA for a6acaf8
1 file changed
tests/interactive-imagej/test_shading.py
@@ -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