public class TrackAnalyzer extends ReportGenerator
Modifier and Type | Field and Description |
---|---|
private Hashtable<Integer,Vector<Point2D.Double>> |
centroids |
private double |
maxDist |
private Hashtable<Integer,Integer> |
offsets |
private Vector<Trajectory2D> |
trajectories |
Constructor and Description |
---|
TrackAnalyzer(Vector<Trajectory2D> trajectories) |
getAverageMean, getAverageStdDev, getExcluded, getObjectsMeans, getObjectsStdDevs, getReport, getSettings, hashtableToString, hashtableToString, numberToString, pointHashtableToString, pointHashtableToStringX, pointHashtableToStringY, pointVectorToString, pointVectorToStringX, pointVectorToStringY, setDeltaT, setDeltaX, setDeltaY, setExcluded, setMinTrackLength, setUnitAngle, setUnitSpace, setUnitTime, trim, vectorToString, vectorToString
readResolve
addOperatorExecutionProgressEventListener, addParameter, addParameter, addParameterUnconditioned, fieldContained, fireOperatorExecutionProgressEvent, getALDPortHashAccessKey, getConstructionMode, getDocumentation, getHidingMode, getInactiveParameterNames, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterDescriptorUnconditioned, getParameterNames, getParameterUnconditioned, getSupplementalNames, getVerbose, getVersion, handleOperatorExecutionProgressEvent, hasInOutParameters, hasParameter, isAnnotatedParameter, isConfigured, print, print, print, printInterface, printInterface, readHistory, reinitializeParameterDescriptors, removeOperatorExecutionProgressEventListener, removeParameter, runOp, runOp, runOp, setConstructionMode, setConstructionMode, setConstructionMode, setHidingMode, setName, setParameter, setParameterUnconditioned, setVerbose, toStringVerbose, unconfiguredItems, validate, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory
@Parameter(label="trajectories", required=true, direction=IN, supplemental=false, description="trajectories", dataIOOrder=0) private Vector<Trajectory2D> trajectories
private Hashtable<Integer,Vector<Point2D.Double>> centroids
private double maxDist
public TrackAnalyzer(Vector<Trajectory2D> trajectories) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
trajectories
- de.unihalle.informatik.Alida.exceptions.ALDOperatorException
protected void operate() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException, de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
operate
in class de.unihalle.informatik.Alida.operator.ALDOperator
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
private void extractTrajectoriesWithOffsets()
private Hashtable<Integer,Vector<Double>> getDistances()
private Hashtable<Integer,Vector<Double>> getSpeeds(Hashtable<Integer,Vector<Double>> distances)
distances
- distances the objects movedprivate Hashtable<Integer,Vector<Double>> getNumberOfFrames()
private Hashtable<Integer,Vector<Double>> getDirections()
private Hashtable<Integer,Vector<Double>> getDirectionalDifferences(Hashtable<Integer,Vector<Double>> directions)
directions
- private Hashtable<Integer,Vector<Double>> getPersistences(Hashtable<Integer,Vector<Double>> speeds, Hashtable<Integer,Vector<Double>> dirDiffs)
speeds
- dirDiffs
- private Hashtable<Integer,Vector<Double>> getTotalDistances(Hashtable<Integer,Vector<Double>> distances)
distances
- distances that the objects moved from one frame to anotherprivate Hashtable<Integer,Vector<Double>> getNetDistances()
private Hashtable<Integer,Vector<Double>> getDirectionalities(Hashtable<Integer,Vector<Double>> netDistances, Hashtable<Integer,Vector<Double>> totalDistances)
netDistances
- net distance the objects movedtotalDistances
- total distance the objects movedprivate Hashtable<Integer,Vector<Double>> getNetDirections()
private double distance(Point2D.Double p, Point2D.Double q, double deltaX, double deltaY)
p
- q
- deltaX
- deltaY
- private double angle(Point2D.Double p, Point2D.Double q)
p
- q
- Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.