public class TrackMotilityAnalyzer extends Object implements TrackAnalyzer
| Modifier and Type | Field and Description |
|---|---|
static Map<String,Dimension> |
FEATURE_DIMENSIONS |
static Map<String,String> |
FEATURE_NAMES |
static Map<String,String> |
FEATURE_SHORT_NAMES |
static List<String> |
FEATURES |
static Map<String,Boolean> |
IS_INT |
static String |
KEY |
static String |
TRACK_CONFINMENT_RATIO |
static String |
TRACK_LINEARITY_OF_FORWARD_PROGRESSION |
static String |
TRACK_MAX_DISTANCE_TRAVELED |
static String |
TRACK_MEAN_DIRECTIONAL_CHANGE_RATE |
static String |
TRACK_MEAN_STRAIGHT_LINE_SPEED |
static String |
TRACK_TOTAL_DISTANCE_TRAVELED |
| Constructor and Description |
|---|
TrackMotilityAnalyzer() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Dimension> |
getFeatureDimensions()
Returns the map of feature dimension this analyzer can compute.
|
Map<String,String> |
getFeatureNames()
Returns the map of names for any feature this analyzer can compute.
|
List<String> |
getFeatures()
Returns the list of features this analyzer can compute.
|
Map<String,String> |
getFeatureShortNames()
Returns the map of short names for any feature the analyzer
can compute.
|
ImageIcon |
getIcon()
Returns the icon for this action.
|
String |
getInfoText()
Returns a html string containing a descriptive information about this
module.
|
Map<String,Boolean> |
getIsIntFeature()
Returns the map that states whether the key feature is a feature that
returns integers.
|
String |
getKey()
Returns a unique identifier of this module.
|
String |
getName()
Returns the human-compliant name of this module.
|
int |
getNumThreads() |
long |
getProcessingTime() |
boolean |
isLocal()
Returns
true if this analyzer is a local analyzer. |
boolean |
isManualFeature()
Returns whether all the features declared in this
FeatureAnalyzer are manual features. |
void |
process(Collection<Integer> trackIDs,
Model model)
Compute the features of the track whose ID is given.
|
void |
setNumThreads() |
void |
setNumThreads(int numThreads) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforbidMultithreadingpublic static final String KEY
public static final String TRACK_TOTAL_DISTANCE_TRAVELED
public static final String TRACK_MAX_DISTANCE_TRAVELED
public static final String TRACK_CONFINMENT_RATIO
public static final String TRACK_MEAN_STRAIGHT_LINE_SPEED
public static final String TRACK_LINEARITY_OF_FORWARD_PROGRESSION
public static final String TRACK_MEAN_DIRECTIONAL_CHANGE_RATE
public long getProcessingTime()
getProcessingTime in interface Benchmarkpublic Map<String,Dimension> getFeatureDimensions()
FeatureAnalyzergetFeatureDimensions in interface FeatureAnalyzerpublic Map<String,String> getFeatureNames()
FeatureAnalyzergetFeatureNames in interface FeatureAnalyzerpublic Map<String,String> getFeatureShortNames()
FeatureAnalyzergetFeatureShortNames in interface FeatureAnalyzerpublic List<String> getFeatures()
FeatureAnalyzergetFeatures in interface FeatureAnalyzerpublic Map<String,Boolean> getIsIntFeature()
FeatureAnalyzertrue, then special treatment is applied
when saving/loading, etc. for clarity and precision.getIsIntFeature in interface FeatureAnalyzerpublic boolean isManualFeature()
FeatureAnalyzerFeatureAnalyzer are manual features.
Manual features are not calculated normally using an analyzer, nor
cleared at each recalculation. Another classes are responsible to set
their value. The concrete FeatureAnalyzer calculation method is
not called by TrackMate when a change happens to the model.
Therefore the calculation routine of the FeatureAnalyzer can be
used to discard the manually stored value of these features.
isManualFeature in interface FeatureAnalyzertrue if the features declared in this analyzer are
manual feature.public ImageIcon getIcon()
TrackMateModulenull.getIcon in interface TrackMateModulenull to be safely ignored.public String getInfoText()
TrackMateModulegetInfoText in interface TrackMateModulepublic String getKey()
TrackMateModulegetKey in interface TrackMateModulepublic String getName()
TrackMateModulegetName in interface TrackMateModulepublic int getNumThreads()
getNumThreads in interface MultiThreadedpublic void setNumThreads()
setNumThreads in interface MultiThreadedpublic void setNumThreads(int numThreads)
setNumThreads in interface MultiThreadedpublic boolean isLocal()
TrackAnalyzertrue if this analyzer is a local analyzer. That is:
a modification that affects only one track requires the track features to
be re-calculated only for this track. If false, any model
modification involving edges will trigger a recalculation over all the
visible tracks of the model.
Example of a local track feature: the number of spots in a track. It does not depend on the number of spots in other tracks.
Example of a non-local track feature: the rank of the track sorted by its number of spots, compared to other tracks.
isLocal in interface TrackAnalyzerpublic void process(Collection<Integer> trackIDs, Model model)
TrackAnalyzerprocess in interface TrackAnalyzertrackIDs - the IDs of the track whose features are to be calculated.model - the Model from which actual tracks are to be
retrieved.Copyright © 2015–2021 Fiji. All rights reserved.