Class CategorizationResult


  • public class CategorizationResult
    extends Object
    A categorization result describes the membership to a cluster. It contains the identifier of the category this image was matched to as well as a quality measurement.

    The quality metric is depended on the the actual implementation of the categorizer.

    Categorization results can be nested in case that multiple categorizers are chained together. The first result will point to the categorization result of the main matcher. The next to the first nested categorizer.

    Categorization results are only valid at the time they are created and may represent an invalid state as soon as the categorizer who produces this stage was changed.

    Since:
    3.0.0
    Author:
    Kilian
    See Also:
    CategoricalImageMatcher
    • Field Detail

      • category

        protected int category
      • qualityMeasurement

        protected double qualityMeasurement
    • Constructor Detail

      • CategorizationResult

        public CategorizationResult​(int category,
                                    double qualityMeasurement)
    • Method Detail

      • getCategory

        public int getCategory()
        Get the category of this result object. The category uniquely identifies the cluster this image was matched to.
        Returns:
        the category
      • getQuality

        public double getQuality()