Posted by
George H on
Sep 23, 2014; 12:10pm
URL: http://imagej.273.s1.nabble.com/Using-TrackMate-in-JavaPlugin-no-proper-example-code-tp5009724.html
Hi,
I started using TrackMate and I really like it and it's very powerful. I've
already read all documentation on
http://fiji.sc/TrackMate#For_developers_2 and the section for developers is very good, but it's all in Jython.
I am trying to do similar code in Java, but I am hitting roadblocks because
trying to go by the Jython code is very difficult. For example
# Configure detector - We use the Strings for the keys
settings.detectorFactory = LogDetectorFactory()
settings.detectorSettings = {
'DO_SUBPIXEL_LOCALIZATION' : True,
'RADIUS' : 2.5,
'TARGET_CHANNEL' : 1,
'THRESHOLD' : 0.,
'DO_MEDIAN_FILTERING' : False,
}
In Java it would be
Settings settings = new Settings();
settings.setFrom(imagePlus);
settings.detectorFactory = new LogDetectorFactory<T>();
settings.detectorSettings.put(DetectorKeys.KEY_DO_SUBPIXEL_LOCALIZATION,
Boolean.TRUE);
For LogDetectorFactory I have no idea what RealType or NativeType to use as
there are many. And in the Jython example there is none specified.
What would really help if someone could point me to a Java tutorial of
TrackMate or something that can help me use TrackMate in a JavaPlugin
instead of being stuck with Jython,
Thanks.
--
George H
[hidden email]
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html