Skip to content

Commit b6ffe4d

Browse files
Add markdown file detailing a testing script for the shading/flatfield correction method.
1 parent c190fb8 commit b6ffe4d

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

tests/imagej/shading-test.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
### ----------------------
2+
3+
The following code block is a `python` script to be used in a Fiji with the shading branch's .jar already pasted into ./jars in the Fiji installation
4+
5+
Recommended is to import an image you wish to test on (Shaded-blobs.png e.g) and then drag this script into Fiji and run it.
6+
If a resulting image pops up (while using flatfield method), everything works finely.
7+
### ----------------------
8+
9+
```python
10+
from imcflibs.imagej import shading
11+
# import imcflibs.imagej
12+
import ij
13+
from ij import IJ
14+
15+
imp = IJ.getImage()
16+
imcf_shading = shading.simple_flatfield_correction(imp)
17+
# Or any other method in class shading
18+
imcf_shading.show()

0 commit comments

Comments
 (0)