public class TrackCollectionData extends SpotsCollectionData
Constructor and Description |
---|
TrackCollectionData(ModelData other) |
TrackCollectionData(Model model,
Settings settings,
ij.ImagePlus image) |
Modifier and Type | Method and Description |
---|---|
void |
computeEdgeFeatures(JIPipeProgressInfo progressInfo) |
void |
computeTrackFeatures(JIPipeProgressInfo progressInfo) |
JIPipeThumbnailData |
createThumbnail(int width,
int height,
JIPipeProgressInfo progressInfo)
This function generates a thumbnail for this data
Can return null
|
void |
display(String displayName,
JIPipeWorkbench workbench,
JIPipeDataSource source)
This function should display the data in the GUI.
|
TrackCollectionData |
filterTracks(Set<Integer> selectedTrackIds)
Returns a copy of this track collection that has only the selected track IDs
Please note that all spots are still present
|
double |
getEdgeFeature(org.jgrapht.graph.DefaultWeightedEdge edge,
String feature,
double defaultValue)
Gets a feature from an edge.
|
Range<Double> |
getEdgeFeatureRange(String featureName)
Returns the range of values for a feature.
|
int |
getNTracks() |
double |
getTrackFeature(int trackId,
String feature,
double defaultValue)
Gets a feature from a track.
|
Range<Double> |
getTrackFeatureRange(String featureName)
Returns the range of values for a feature.
|
Iterable<Integer> |
getTrackIds() |
TrackModel |
getTrackModel() |
Set<Spot> |
getTrackSpots(int trackId) |
static TrackCollectionData |
importData(JIPipeReadDataStorage storage,
JIPipeProgressInfo progressInfo) |
Component |
preview(int width,
int height)
This function generates a preview component for usage within the GUI
Can return null
|
void |
recalculateEdgeFeatureRange() |
void |
recalculateTrackFeatureRanges() |
String |
toDetailedString()
This method returns a detailed string description (with multi-line, etc.) of the data.
|
String |
toString() |
ROIListData |
trackToROIList(int trackId) |
getNSpots, getSpotFeature, getSpotFeatureRange, getSpots, recalculateSpotFeatureRange, spotsToROIList
duplicate, exportData, getImage, getModel, getSettings
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, exportThumbnails, getDescriptionOf, getMenuPathOf, getNameOf, getSortedList, getStorageDocumentation, getStorageSchema, groupByMenuPath, isCommon, isHeavy, isHidden
public TrackCollectionData(ModelData other)
public static TrackCollectionData importData(JIPipeReadDataStorage storage, JIPipeProgressInfo progressInfo)
public TrackModel getTrackModel()
public void computeTrackFeatures(JIPipeProgressInfo progressInfo)
public void computeEdgeFeatures(JIPipeProgressInfo progressInfo)
public ROIListData trackToROIList(int trackId)
public int getNTracks()
public void display(String displayName, JIPipeWorkbench workbench, JIPipeDataSource source)
JIPipeData
JIPipeDataDisplayOperation
that can be registered separately.
This item will always be shown as "Default" in the list of operations.display
in interface JIPipeData
display
in class SpotsCollectionData
displayName
- a name that can be usedworkbench
- the workbenchsource
- optional source of the data. Can be null or any kind of data type (e.g. JIPipeDataSlot
)public TrackCollectionData filterTracks(Set<Integer> selectedTrackIds)
selectedTrackIds
- the selected trackspublic double getTrackFeature(int trackId, String feature, double defaultValue)
trackId
- the track IDfeature
- the featuredefaultValue
- the default valuepublic double getEdgeFeature(org.jgrapht.graph.DefaultWeightedEdge edge, String feature, double defaultValue)
edge
- the edgefeature
- the featuredefaultValue
- the default valuepublic Range<Double> getEdgeFeatureRange(String featureName)
featureName
- the featurepublic void recalculateEdgeFeatureRange()
public Range<Double> getTrackFeatureRange(String featureName)
featureName
- the featurepublic void recalculateTrackFeatureRanges()
public Component preview(int width, int height)
JIPipeData
preview
in interface JIPipeData
preview
in class SpotsCollectionData
width
- the target widthheight
- the target heightpublic JIPipeThumbnailData createThumbnail(int width, int height, JIPipeProgressInfo progressInfo)
JIPipeData
createThumbnail
in interface JIPipeData
createThumbnail
in class SpotsCollectionData
width
- the widthheight
- the heightprogressInfo
- the progress infopublic String toString()
toString
in class SpotsCollectionData
public String toDetailedString()
JIPipeData
toDetailedString
in interface JIPipeData
toDetailedString
in class SpotsCollectionData
Copyright © 2020–2024 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.