Skip to content

Commit 9ca139c

Browse files
committed
Reformat interactive trackmate test instructions
1 parent de4e237 commit 9ca139c

1 file changed

Lines changed: 20 additions & 10 deletions

File tree

tests/interactive-imagej/test_trackmate.md

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,37 @@
1-
This is a testing file for the trackmate branch and for the trackmate python class.
1+
# Testing the `imcflibs.imagej.trackmate` module
22

3-
The following Fiji script needs a `.jar` of the trackmate branch to be installed into Fiji already.
3+
Instructions for *interactive* testing (i.e. manually running a script in Fiji's
4+
*Script Editor*) of the `imcflibs.imagej.trackmate` module.
45

5-
You can open the a blobs image (`CTRL+SHIFT+B`) and then run the following script:
6+
## Testing instructions
67

7-
```python
8+
1. An updated `python-imcflibs.jar` containing the changes to be tested has to
9+
be installed into Fiji already.
10+
1. Next, open the blobs image, e.g. using `Ctrl` + `Shift` + `B`.
11+
1. Then, launch the *Script Editor* using `Ctrl` + `Shift` + `N`, paste the
12+
following script and finally run it:
13+
14+
```Python
815
from imcflibs.imagej import trackmate
916
from ij import IJ
1017

1118
imp = IJ.getImage()
12-
# Detector
19+
20+
# Select the trackmate LoG detector:
1321
settings = trackmate.log_detector(imp, 5, 1, 0)
14-
# settings = trackmate.cellpose_detector(imp, "S:\cellpose_env", "NUCLEI", 23.0, 1, 0) # WORKS, tested
15-
# settings = trackmate.stardist_detector(imp, 1) # WORKS, tested
1622

17-
# Manual tracker addition, run_trackmate does this otherwise
23+
# Alternatively, use the Cellpose or StarDist detector:
24+
# settings = trackmate.cellpose_detector(imp, "S:\cellpose_env", "NUCLEI", 23.0, 1, 0)
25+
# settings = trackmate.stardist_detector(imp, 1)
26+
27+
# Manual tracker addition, run_trackmate does this otherwise:
1828
# settings = trackmate.sparseLAP_tracker(settings)
1929

20-
# Spot and track filtering
30+
# Spot and track filtering:
2131
# settings = trackmate.spot_filtering(settings, None, 1.0, None, None)
2232
# settings = trackmate.track_filtering(settings, 15.0, 15.0, 3, 1, 1)
2333

2434
res_img = trackmate.run_trackmate(imp, settings)
2535
res_img.show()
36+
```
2637

27-
```

0 commit comments

Comments
 (0)