Class FilterSmallRecognizedObjects<T,​V>

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

    public class FilterSmallRecognizedObjects<T,​V>
    extends Object
    implements FilterObjects<T,​V>
    Removes recognized objects, which are too small. Will remove the object, if size is below the required threshold
    Since:
    1.0
    Author:
    Christoph Praschl, Andreas Pointner
    • Constructor Detail

      • FilterSmallRecognizedObjects

        public FilterSmallRecognizedObjects()
    • Method Detail

      • filter

        public List<RecognizedObject<T,​V>> filter​(List<RecognizedObject<T,​V>> recognizedObjects,
                                                        double threshold)
        Description copied from interface: FilterObjects
        Remove objects from the given list using a threshold.
        Specified by:
        filter in interface FilterObjects<T,​V>
        Parameters:
        recognizedObjects - objects to filter
        threshold - threshold to use during the filtering process
        Returns:
        new list containing filtered objects