Class PositionObjectMerge<T,V>
- java.lang.Object
-
- science.aist.imaging.core.objectprocessing.merge.impl.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 Summary
Constructors Constructor Description PositionObjectMerge()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecognizedObject<T,V>
merge(RecognizedObject<T,V> object1, RecognizedObject<T,V> object2, double threshold)
Merges two different objects.
-
-
-
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 interfaceObjectMerge<T,V>
- Parameters:
object1
- object 1 to mergeobject2
- object 2 to mergethreshold
- threshold to consider during the merge process- Returns:
- merged object or null, if objects don't fit according to threshold
-
-