public class ManualEdgeColorAnalyzer extends Object implements EdgeAnalyzer
| Modifier and Type | Field and Description |
|---|---|
static String |
FEATURE |
static String |
KEY |
| Constructor and Description |
|---|
ManualEdgeColorAnalyzer() |
| 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<org.jgrapht.graph.DefaultWeightedEdge> edges,
Model model)
Scores a collection of link between two spots.
|
void |
setNumThreads() |
void |
setNumThreads(int numThreads) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforbidMultithreadingpublic static final String FEATURE
public static final String KEY
public long getProcessingTime()
getProcessingTime in interface Benchmarkpublic String getKey()
TrackMateModulegetKey in interface TrackMateModulepublic List<String> getFeatures()
FeatureAnalyzergetFeatures in interface FeatureAnalyzerpublic Map<String,String> getFeatureShortNames()
FeatureAnalyzergetFeatureShortNames in interface FeatureAnalyzerpublic Map<String,String> getFeatureNames()
FeatureAnalyzergetFeatureNames in interface FeatureAnalyzerpublic Map<String,Dimension> getFeatureDimensions()
FeatureAnalyzergetFeatureDimensions 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 void setNumThreads()
setNumThreads in interface MultiThreadedpublic void setNumThreads(int numThreads)
setNumThreads in interface MultiThreadedpublic int getNumThreads()
getNumThreads in interface MultiThreadedpublic String getInfoText()
TrackMateModulegetInfoText in interface TrackMateModulepublic ImageIcon getIcon()
TrackMateModulenull.getIcon in interface TrackMateModulenull to be safely ignored.public String getName()
TrackMateModulegetName in interface TrackMateModulepublic void process(Collection<org.jgrapht.graph.DefaultWeightedEdge> edges, Model model)
EdgeAnalyzerFeatureModel.
Note: ideally concrete implementation should work in a multi-threaded fashion for performance reason, when possible.
process in interface EdgeAnalyzeredges - the collection of edges whose features are to be calculated.model - the Model they belong to.public boolean isLocal()
EdgeAnalyzertrue if this analyzer is a local analyzer. That is:
a modification that affects only one edge requires the edge features to
be re-calculated only for this edge. If false, any model
modification involving an edge will trigger a recalculation over the
whole track this edge belong to.
Example of local edge feature: the edge length (distance between the two spots). This one does not depend on other edge values.
Example of non-local edge feature: the local curvature of the trajectory, which depends on the neighbor edges.
isLocal in interface EdgeAnalyzerpublic 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.Copyright © 2015–2021 Fiji. All rights reserved.