|
||||||||
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 typepublic 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, portHashAccess, verbose, versionProvider |
Constructor Summary | |
---|---|
protected |
DataConverter()
|
Method Summary | |
---|---|
static MTBRegion2DSetBag |
observationsToRegions(boolean hidden,
java.util.Vector<MultiState<MotionModelID>> observations,
double xmin,
double xmax,
double ymin,
double ymax)
Convert observations to regions. |
static java.util.HashMap<java.lang.Short,int[]> |
observationsToTracks(java.util.Vector<MultiState<MotionModelID>> observations,
java.util.HashMap<java.lang.Integer,java.util.Vector<java.lang.Integer>> clutterObs)
Obtain observations assigned to each target from observations with assigned target IDs |
static java.util.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 |
---|
deserializeFromXmlFile, fieldContained, getALDPortHashAccessKey, getConstructionMode, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterNames, getSupplementalNames, getVerbose, getVersion, isConfigured, operate, parametersToXmlObject, print, print, print, printInterface, printInterface, readHistory, reinitializeParameterDescriptors, runOp, runOp, runOp, serializeToXmlFile, setConstructionMode, setName, setParameter, setParametersFromXml, setParametersFromXml, setVerbose, toStringVerbose, unconfiguredItems, validate, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory, writeParametersToXml |
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 MTBRegion2DSetBag observationsToRegions(boolean hidden, java.util.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 java.util.HashMap<java.lang.Short,int[]> observationsToTracks(java.util.Vector<MultiState<MotionModelID>> observations, java.util.HashMap<java.lang.Integer,java.util.Vector<java.lang.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)
public static java.util.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
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |