Login  Register

weka segmentation in batch mode

Posted by William Menegas on Mar 21, 2014; 5:52am
URL: http://imagej.273.s1.nabble.com/weka-segmentation-in-batch-mode-tp5007024.html

Hello,

I was wondering if anyone could give me some advice on using "Weka
Segmentation" in headless mode or in a normal session of fiji in batch
mode. I am using:

...
run("Trainable Weka Segmentation");
call("trainableSegmentation.Weka_Segmentation.loadClassifier",
"/path/classifier.model");
call("trainableSegmentation.Weka_Segmentation.getProbability");
selectWindow("Probability maps");
...

The problem is that fiji doesn't seem to want to wait for the
classification. I tried inserting "wait(100000)" before
"selectWindow("Probability maps"), but it didn't help and I don't think
there was even a wait.

Any help would be much appreciated!
Will

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html