public class OverlapTrackerFactory extends Object implements SpotTrackerFactory
| Modifier and Type | Field and Description |
|---|---|
static Double |
DEFAULT_MIN_IOU |
static Double |
DEFAULT_SCALE_FACTOR |
static String |
FAST_CALCULATION
Value for the fast IoU calculation method.
|
static String |
KEY_IOU_CALCULATION
The key to the parameter that stores how the IoU should be calculated.
|
static String |
KEY_MIN_IOU
The key to the parameter that stores the minimal IoU below which links
are not created.
|
static String |
KEY_SCALE_FACTOR
The key to the parameter that stores scale factor parameter.
|
static String |
PRECISE_CALCULATION
Value for the precise IoU calculation method.
|
static String |
TRACKER_INFO_TEXT |
static String |
TRACKER_KEY |
static String |
TRACKER_NAME |
| Constructor and Description |
|---|
OverlapTrackerFactory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkSettingsValidity(Map<String,Object> settings)
Checks the validity of the given settings map for the tracker.
|
SpotTracker |
create(SpotCollection spots,
Map<String,Object> settings)
Instantiates and returns a new
SpotTracker configured to operate
on the specified SpotCollection, using the specified settins map. |
Map<String,Object> |
getDefaultSettings()
Returns a new default settings map suitable for the tracker Settings are
instantiated with default values.
|
String |
getErrorMessage()
Returns a meaningful error message for the last action on this factory.
|
ImageIcon |
getIcon()
Returns the icon for this action.
|
String |
getInfoText()
Returns a html string containing a descriptive information about this
module.
|
String |
getKey()
Returns a unique identifier of this module.
|
String |
getName()
Returns the human-compliant name of this module.
|
ConfigurationPanel |
getTrackerConfigurationPanel(Model model)
Returns a new GUI panel able to configure the settings suitable for the
target tracker identified by the key parameter.
|
boolean |
marshall(Map<String,Object> settings,
org.jdom2.Element element)
Marshalls a settings map to a JDom element, ready for saving to XML.
|
String |
toString(Map<String,Object> settings)
A utility method that builds a string representation of a settings map
owing to the currently selected tracker in this provider.
|
boolean |
unmarshall(org.jdom2.Element element,
Map<String,Object> settings)
Un-marshall a JDom element to update a settings map, and sets the target
tracker of this provider from the element.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforbidMultithreadingpublic static final String KEY_SCALE_FACTOR
Doubles.public static final Double DEFAULT_SCALE_FACTOR
public static final String KEY_MIN_IOU
Doubles.public static final Double DEFAULT_MIN_IOU
public static final String KEY_IOU_CALCULATION
FAST_CALCULATION
and PRECISE_CALCULATION.public static final String FAST_CALCULATION
KEY_IOU_CALCULATIONpublic static final String PRECISE_CALCULATION
KEY_IOU_CALCULATIONpublic static final String TRACKER_KEY
public static final String TRACKER_NAME
public static final String TRACKER_INFO_TEXT
public String getKey()
TrackMateModulegetKey in interface TrackMateModulepublic String getName()
TrackMateModulegetName in interface TrackMateModulepublic String getInfoText()
TrackMateModulegetInfoText in interface TrackMateModulepublic ImageIcon getIcon()
TrackMateModulenull.getIcon in interface TrackMateModulenull to be safely ignored.public SpotTracker create(SpotCollection spots, Map<String,Object> settings)
SpotTrackerFactorySpotTracker configured to operate
on the specified SpotCollection, using the specified settins map.create in interface SpotTrackerFactoryspots - the SpotCollection containing the spots to track.settings - the settings map configuring the tracker.SpotTracker instance.public ConfigurationPanel getTrackerConfigurationPanel(Model model)
SpotTrackerFactorygetTrackerConfigurationPanel in interface SpotTrackerFactorymodel - the model that will be modified by the target tracker.public boolean marshall(Map<String,Object> settings, org.jdom2.Element element)
SpotTrackerFactory
Only parameters specific to the concrete tracker factory are marshalled.
The element also always receive an attribute named
that saves the target
SpotTracker key.
marshall in interface SpotTrackerFactorySpotTrackerFactory.getErrorMessage()public boolean unmarshall(org.jdom2.Element element,
Map<String,Object> settings)
SpotTrackerFactoryConcretely: the the specific settings map for the targeted tracker is updated from the element.
unmarshall in interface SpotTrackerFactoryelement - the JDom element to read from.settings - the map to update. Is cleared prior to updating, so that it
contains only the parameters specific to the target tracker.SpotTrackerFactory.getErrorMessage()public String toString(Map<String,Object> settings)
SpotTrackerFactorytoString in interface SpotTrackerFactorysettings - the map to echo.public Map<String,Object> getDefaultSettings()
SpotTrackerFactorygetDefaultSettings in interface SpotTrackerFactorypublic boolean checkSettingsValidity(Map<String,Object> settings)
SpotTrackerFactorycheckSettingsValidity in interface SpotTrackerFactorySpotTrackerFactory.getErrorMessage()public String getErrorMessage()
SpotTrackerFactorygetErrorMessage in interface SpotTrackerFactorySpotTrackerFactory.marshall(Map, Element),
SpotTrackerFactory.unmarshall(Element, Map),
SpotTrackerFactory.checkSettingsValidity(Map)Copyright © 2015–2021 Fiji. All rights reserved.