Skip to content

Commit

Permalink
New method getSegmenter()
Browse files Browse the repository at this point in the history
So that one can, on a script, getSegmenter().getClassifier(), to then e.g., call setNumThreads(1) on the underlying FastRandomForest instance.
At the moment there's no way to set the number of threads used to 1 except via Prefs.setThreads(1), which is fragile.
  • Loading branch information
acardona authored Jun 27, 2024
1 parent b53b1be commit 66f9802
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,10 @@ public void openModel(final String path) {
featureSettings = segmenter.features().settings();
}

public sc.fiji.labkit.pixel_classification.classification.Segmenter getSegmenter() {
return segmenter;
}

@Override
public int[] suggestCellSize(ImgPlus<?> image) {
if (ImgPlusViewsOld.hasAxis(image, Axes.CHANNEL))
Expand Down

0 comments on commit 66f9802

Please sign in to comment.