Class TextureAnalysis

    • Field Detail

      • contrast

        private int contrast
      • correlation

        private double correlation
      • dissimilarity

        private int dissimilarity
      • energy

        private int energy
      • entropy

        private double entropy
      • homogeneity

        private double homogeneity
      • sum

        private int sum
      • symmetry

        private boolean symmetry
    • Constructor Detail

      • TextureAnalysis

        public TextureAnalysis()
    • Method Detail

      • compute

        public static TextureAnalysis compute​(IntegerImage image,
                                              int channelIndex)
                                       throws MissingParameterException
        For one channel of the argument image, create a TextureAnalysis operation with all attributes
        Parameters:
        image - the IntegerImage for which the texture analysis is being done
        channelIndex - zero-based index of channel to work on
        Returns:
        TextureAnalysis object with all attributes computed
        Throws:
        MissingParameterException - if matrix is null
        Since:
        0.14.2
      • getContrast

        public int getContrast()
        Returns the contrast value determined in process(). Also called inertia.
      • getCorrelation

        public double getCorrelation()
        Returns the correlation determined in process().
      • getDissimilarity

        public int getDissimilarity()
        Returns the dissimilarity value determined in process().
      • getEnergy

        public int getEnergy()
        Returns the energy value determined in process().
      • getEntropy

        public double getEntropy()
        Returns the entropy value determined in process().
      • getHomogeneity

        public double getHomogeneity()
        Returns the homogeneity value determined in process(). Also called inverse difference moment.
      • getSum

        public int getSum()
        Returns the sum of all entries in the matrix.
      • isSymmetrical

        public boolean isSymmetrical()
      • setMatrix

        public void setMatrix​(CoOccurrenceMatrix m)
        Sets the matrix to be used by this operation to the argument value.
        Parameters:
        m - the matrix for which the various properties will be computed