Login  Register

Re: Using TrackMate in JavaPlugin no proper example code

Posted by George H on Sep 24, 2014; 8:13am
URL: http://imagej.273.s1.nabble.com/Using-TrackMate-in-JavaPlugin-no-proper-example-code-tp5009724p5009738.html

I just saw this in the TrackMate test classes

https://github.com/fiji/TrackMate/blob/master/src/test/java/fiji/plugin/trackmate/interactivetests/DogDetectorPerformance.java

Using UnsignedShortType  for the DogDetector

Am I at least on the right track here?

--
George H
[hidden email]

On Tue, Sep 23, 2014 at 3:10 PM, George H <[hidden email]> wrote:

> 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