Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call labkit cli in Matlab producing error: org.scijava.NoSuchServiceException: Service net.imagej.ops.OpService not found. #6

Open
rmd13 opened this issue Jul 5, 2022 · 0 comments

Comments

@rmd13
Copy link

rmd13 commented Jul 5, 2022

I am using Matlab to load labkit-command-line-0.1.4.jar and have a demo test:

afn_Classifier = 'D:\drosophila.classifier';
Context= org.scijava.Context(true);
aSegmenter = sc.fiji.labkit.ui.segmentation.weka.TrainableSegmentationSegmenter(Context);
aSegmenter.openModel(afn_Classifier); % error take place in this line

Java exception occurred:
org.scijava.NoSuchServiceException: Service net.imagej.ops.OpService not found.

at org.scijava.Context.service(Context.java:316)

at sc.fiji.labkit.pixel_classification.pixel_feature.settings.FeatureSetting.newInstance(FeatureSetting.java:128)

at sc.fiji.labkit.pixel_classification.pixel_feature.calculator.FeatureCalculator.lambda$new$0(FeatureCalculator.java:81)

at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)

at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)

at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)

at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)

at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)

at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)

at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)

at sc.fiji.labkit.pixel_classification.pixel_feature.calculator.FeatureCalculator.<init>(FeatureCalculator.java:81)

at sc.fiji.labkit.pixel_classification.classification.Segmenter.<init>(Segmenter.java:96)

at sc.fiji.labkit.pixel_classification.classification.Segmenter.fromJson(Segmenter.java:243)

at sc.fiji.labkit.ui.segmentation.weka.TrainableSegmentationSegmenter.openModel(TrainableSegmentationSegmenter.java:306)

Indeed I could find the class net.imagej.ops.OpService inside the jar file, but it says cannot find.
Is there something wrong with the matlab code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant