public abstract class ReportGenerator extends MTBOperator
Modifier and Type | Field and Description |
---|---|
protected int |
bgLabel |
protected double |
deltaT |
protected double |
deltaX |
protected double |
deltaY |
protected double |
deltaZ |
protected Vector<Integer> |
exclude |
protected int |
minTrackLength |
protected String |
naString |
protected NumberFormat |
nf |
protected String |
report |
protected String |
unitAngle |
protected String |
unitSpace |
protected String |
unitTime |
Constructor and Description |
---|
ReportGenerator() |
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, operate, 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="\u0394 x", required=false, direction=IN, supplemental=false, description="pixel length in x-direction", dataIOOrder=5) protected double deltaX
@Parameter(label="\u0394 y", required=false, direction=IN, supplemental=false, description="pixel length in y-direction", dataIOOrder=6) protected double deltaY
@Parameter(label="\u0394 z", required=false, direction=IN, supplemental=false, description="pixel length in z-direction", dataIOOrder=7) protected double deltaZ
@Parameter(label="\u0394 t", required=false, direction=IN, supplemental=false, description="time between consecutive frames", dataIOOrder=8) protected double deltaT
@Parameter(label="unit of space", required=false, direction=IN, supplemental=false, description="unit of space", dataIOOrder=9) protected String unitSpace
@Parameter(label="unit of time", required=false, direction=IN, supplemental=false, description="unit of time", dataIOOrder=10) protected String unitTime
@Parameter(label="unit of angles", required=false, direction=IN, supplemental=false, description="unit of angles", dataIOOrder=11) protected String unitAngle
@Parameter(label="minimum track length", required=false, direction=IN, supplemental=false, description="minimum length a track must have to be considered", dataIOOrder=12) protected int minTrackLength
@Parameter(label="report", required=true, direction=OUT, supplemental=false, description="resulting report") protected String report
protected NumberFormat nf
protected final String naString
protected int bgLabel
public ReportGenerator() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
protected Hashtable<Integer,Vector<Double>> getObjectsMeans(Hashtable<Integer,Vector<Double>> values)
values
- hash table containing object id-value list pairsprotected Hashtable<Integer,Vector<Double>> getObjectsStdDevs(Hashtable<Integer,Vector<Double>> values)
values
- hash table containing object id-value list pairsprotected Hashtable<Integer,Vector<Double>> trim(Hashtable<Integer,Vector<Double>> values, int minLength)
values
- hash table containing object id-value list pairsminLength
- minimum length a track must have to be keptprotected double getAverageMean(Hashtable<Integer,Vector<Double>> meanValues)
meanValues
- protected double getAverageStdDev(Hashtable<Integer,Vector<Double>> meanValues)
meanValues
- protected String hashtableToString(Hashtable<Integer,Vector<Double>> table, String caption)
table
- caption
- heading for the dataprotected String hashtableToString(Hashtable<Integer,Vector<Double>> table, String caption, Hashtable<Integer,Integer> offsets)
table
- data to printcaption
- heading for the dataoffsets
- number of time points where no data are available for the respective objectsprotected String pointHashtableToString(Hashtable<Integer,Vector<Point2D.Double>> table, String caption)
table
- caption
- heading for the dataprotected String pointHashtableToStringX(Hashtable<Integer,Vector<Point2D.Double>> table, String caption)
table
- caption
- heading for the dataprotected String pointHashtableToStringY(Hashtable<Integer,Vector<Point2D.Double>> table, String caption)
table
- caption
- heading for the dataprotected StringBuffer vectorToString(Vector<Double> values)
values
- protected StringBuffer vectorToString(int offset, Vector<Double> values)
offset
- values
- protected StringBuffer pointVectorToString(Vector<Point2D.Double> values)
values
- protected StringBuffer pointVectorToStringX(Vector<Point2D.Double> values)
values
- protected StringBuffer pointVectorToStringY(Vector<Point2D.Double> values)
values
- protected String numberToString(double num)
num
- input numberprotected String getSettings()
protected String getExcluded()
public void setDeltaT(double dt)
dt
- public void setDeltaX(double dx)
dx
- public void setDeltaY(double dy)
dy
- public void setUnitTime(String unitT)
unitT
- public void setUnitSpace(String unitXY)
unitXY
- public void setUnitAngle(String unitAngle)
unitAngle
- public void setMinTrackLength(int minTrackLength)
minTrackLength
- public String getReport()
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.