Class ValueObjectMerge<T,V extends Number>
- java.lang.Object
-
- science.aist.imaging.core.objectprocessing.merge.impl.ValueObjectMerge<T,V>
-
- All Implemented Interfaces:
ObjectMerge<T,V>
public class ValueObjectMerge<T,V extends Number> extends Object implements ObjectMerge<T,V>
Merges objects, if their value is close enough (depends on threshold as well).- Since:
- 1.0
- Author:
- Christoph Praschl, Andreas Pointner
-
-
Constructor Summary
Constructors Constructor Description ValueObjectMerge()
-
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 extends Number>
- 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
-
-