Login  Register

Using TrainableWeka objects in scripts

Posted by Marcello DiStasio on Nov 06, 2013; 8:37pm
URL: http://imagej.273.s1.nabble.com/Using-TrainableWeka-objects-in-scripts-tp5005479.html

Hello,

I am trying to write a python script using the trainable weka plugin for
Fiji.  I am using the two libraries, imported like so:

from trainableSegmentation import WekaSegmentation
from trainableSegmentation import Weka_Segmentation


My question is, how do I get the object for the learner (class
WekaSegmentation) I create and populate with my script to be "loaded
into"/used by the GUI I create with an object of class Weka_Segmentation.

Or, alternatively, is there a way to get a handle for the WekaSegmentation
object (I am guessing might be) a member of the Weka_Segmentation class?
 This way I could just populate the images+ROIs in that.

The goal here is to get my Images and ROIs to appear in the Plugin GUI.
 For now.  But with the possibility of doing all the processing headless
if/when the time comes...

Sorry about the confusing use of underscores, but those are the class
names...

Thanks in advance
-Marcello

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