Class PositionObjectMerge<T,​V>

  • All Implemented Interfaces:
    ObjectMerge<T,​V>

    public class PositionObjectMerge<T,​V>
    extends Object
    implements ObjectMerge<T,​V>
    Merges two objects depending on if a certain number of coordinates overlap.
    Since:
    1.0
    Author:
    Christoph Praschl, Andreas Pointner
    • Constructor Detail

      • PositionObjectMerge

        public PositionObjectMerge()
    • Method Detail

      • merge

        public RecognizedObject<T,​V> merge​(RecognizedObject<T,​V> object1,
                                                 RecognizedObject<T,​V> object2,
                                                 double threshold)
        Description copied from interface: ObjectMerge
        Merges two different objects. Considers the threshold during the merge. If the objects do not fit according to the threshold, will not merge and return null.
        Specified by:
        merge in interface ObjectMerge<T,​V>
        Parameters:
        object1 - object 1 to merge
        object2 - object 2 to merge
        threshold - threshold to consider during the merge process
        Returns:
        merged object or null, if objects don't fit according to threshold