Skip to content

Commit

Permalink
Merge pull request #119 from acardona/patch-1
Browse files Browse the repository at this point in the history
This PR adds a public method getSegementer to the TrainableSegmentationSegmenter class. The intention is to allow users that run Labkit via scripting to configure the number of threads used during random forest training.
Users might calls getSegmenter().getClassifier().setNumThreads(1)
  • Loading branch information
maarzt authored Jul 22, 2024
2 parents b53b1be + 66f9802 commit 1e258a6
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 1e258a6

Please sign in to comment.