Class ComputeSimilarityMatrixImage.SimilarityMatrix

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) ArrayDBIDs ids
      The database IDs used
      (package private) java.awt.image.RenderedImage img
      Our image
      (package private) java.io.File imgfile
      The file we have written the image to
      private static java.lang.String IMGFILEPREFIX
      Prefix for filenames
      (package private) Relation<?> relation
      The database
    • Field Detail

      • IMGFILEPREFIX

        private static final java.lang.String IMGFILEPREFIX
        Prefix for filenames
        See Also:
        Constant Field Values
      • relation

        Relation<?> relation
        The database
      • img

        java.awt.image.RenderedImage img
        Our image
      • imgfile

        java.io.File imgfile
        The file we have written the image to
    • Constructor Detail

      • SimilarityMatrix

        public SimilarityMatrix​(java.awt.image.RenderedImage img,
                                Relation<?> relation,
                                ArrayDBIDs ids)
        Constructor
        Parameters:
        img - Image data
    • Method Detail

      • getImage

        public java.awt.image.RenderedImage getImage()
        Description copied from interface: PixmapResult
        Get the image pixmap
        Specified by:
        getImage in interface PixmapResult
        Returns:
        the image pixmap
      • getAsFile

        public java.io.File getAsFile()
        Description copied from interface: PixmapResult
        Get the image result as file (usually a temporary file).
        Specified by:
        getAsFile in interface PixmapResult
        Returns:
        Image file
      • getRelation

        public Relation<?> getRelation()
        Get the relation
        Returns:
        the relation
      • getIDs

        public ArrayDBIDs getIDs()
        Get the IDs
        Returns:
        the ids
      • getLongName

        public java.lang.String getLongName()
      • getShortName

        public java.lang.String getShortName()