Skip to content

Commit c58fa13

Browse files
committed
Merge branch 'devel' into pr/140
2 parents c23be08 + 376ceb7 commit c58fa13

2 files changed

Lines changed: 24 additions & 11 deletions

File tree

src/imcflibs/imagej/objects3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def segment_3d_image(
8080
max_vol=None,
8181
remove_touching_borders=False,
8282
remove_touching_borders_z=False,
83-
): # cover:jython
83+
): # pragma: no cover (jython)
8484
"""Segment a 3D binary image to get a labelled stack.
8585
8686
Parameters
Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,40 @@
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+
```
37+
38+
## Expected behavior / results
2639

27-
```
40+
FIXME!!

0 commit comments

Comments
 (0)