|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.Alida.operator.ALDOperator
de.unihalle.informatik.MiToBo.core.operator.MTBOperator
de.unihalle.informatik.MiToBo.tracking.multitarget.datatools.DataConverter<S,T>
S
- input data typeT
- output data type@ALDMetaInfo(export=ALLOWED) public abstract class DataConverter<S,T>
An operator class to convert between data types. The class provides static methods for simple use. The implementations of the abstract DataConverter class are located within the static methods to reduce the number of operator class files (have a look at the implemented conversion methods)
Nested Class Summary |
---|
Nested classes/interfaces inherited from class de.unihalle.informatik.Alida.operator.ALDOperator |
---|
de.unihalle.informatik.Alida.operator.ALDOperator.HidingMode |
Field Summary | |
---|---|
S |
inputData
|
T |
outputData
|
Fields inherited from class de.unihalle.informatik.Alida.operator.ALDOperator |
---|
completeDAG, name, operatorExecutionEventlistenerList, portHashAccess, verbose, versionProvider |
Constructor Summary | |
---|---|
protected |
DataConverter()
|
Method Summary | |
---|---|
static MTBRegion2DSetBag |
observationsToRegions(boolean hidden,
Vector<MultiState<MotionModelID>> observations,
double xmin,
double xmax,
double ymin,
double ymax)
Convert observations to regions. |
static HashMap<Short,int[]> |
observationsToTracks(Vector<MultiState<MotionModelID>> observations,
HashMap<Integer,Vector<Integer>> clutterObs)
Obtain observations assigned to each target from observations with assigned target IDs |
static Vector<MultiState<MotionModelID>> |
regionsToObservations(boolean hidden,
MTBRegion2DSetBag regionsets)
Convert regions to observations |
Methods inherited from class de.unihalle.informatik.MiToBo.core.operator.MTBOperator |
---|
readResolve |
Methods inherited from class de.unihalle.informatik.Alida.operator.ALDOperator |
---|
addOperatorExecutionProgressEventListener, fieldContained, fireOperatorExecutionProgressEvent, getALDPortHashAccessKey, getConstructionMode, getHidingMode, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterNames, getSupplementalNames, getVerbose, getVersion, handleOperatorExecutionProgressEvent, isConfigured, operate, print, print, print, printInterface, printInterface, readHistory, reinitializeParameterDescriptors, removeOperatorExecutionProgressEventListener, runOp, runOp, runOp, setConstructionMode, setHidingMode, setName, setParameter, setVerbose, toStringVerbose, unconfiguredItems, validate, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Parameter(label="inputData", required=true, direction=IN, description="Data that has to be converted") public S inputData
@Parameter(label="outputData", required=false, direction=OUT, description="Converted data") public T outputData
Constructor Detail |
---|
protected DataConverter() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Method Detail |
---|
public static Vector<MultiState<MotionModelID>> regionsToObservations(boolean hidden, MTBRegion2DSetBag regionsets) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException, de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
public static MTBRegion2DSetBag observationsToRegions(boolean hidden, Vector<MultiState<MotionModelID>> observations, double xmin, double xmax, double ymin, double ymax) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException, de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
public static HashMap<Short,int[]> observationsToTracks(Vector<MultiState<MotionModelID>> observations, HashMap<Integer,Vector<Integer>> clutterObs)
observations
- observations with target IDs assigned (ID=0 means clutter)clutterObs
- if this map is not null, all clutter observations per time step are stored here (the map is cleared before)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |