Class LabeledImage

  • All Implemented Interfaces:
    Comparable<LabeledImage>

    public class LabeledImage
    extends Object
    implements Comparable<LabeledImage>
    A labeled image used to benchmark hashing algorithms.

    Labeled images bind an image to a category. All images in the same category are expected to produce a match if an image matcher is queried.

    Since:
    2.0.0, 2.1.1 moved to new file, 2.2.0 renamed to LabeledImage previously TestData
    Author:
    Kilian
    • Field Detail

      • name

        protected String name
        A character representation of the file for easy feedback
      • category

        protected int category
        The category of the image. Same categories equals similar images
    • Constructor Detail

      • LabeledImage

        public LabeledImage​(int category,
                            File f)
        Parameters:
        category - The image category. Images with the same category are expected to be classified as similar images
        f - The Fie pointing to the image