Documentation of 'Catalano.Imaging.Tools.ColorMoments' Java class
ColorMoments
Catalano.Imaging.Tools

Class ColorMoments



  • public class ColorMoments
    extends java.lang.Object
    Color Moments. Color moments are measures that can be used differentiate images based on their features of color. These moments provide a measurement for color similarity between images. These values of similarity can then be compared to the values of images indexed in a database for tasks like image retrieval. Reference: http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/AV0405/KEEN/av_as2_nkeen.pdf
    • Constructor Summary

      Constructors 
      Constructor and Description
      ColorMoments()
      Initialize a new instance of the ColorMoments class.
      ColorMoments(double weight1, double weight2, double weight3)
      Initialize a new instance of the ColorMoments class.
    • Constructor Detail

      • ColorMoments

        public ColorMoments()
        Initialize a new instance of the ColorMoments class.
      • ColorMoments

        public ColorMoments(double weight1,
                            double weight2,
                            double weight3)
        Initialize a new instance of the ColorMoments class.
        Parameters:
        weight1 - Weight 1.
        weight2 - Weight 2.
        weight3 - Weight 3.
    • Method Detail

      • getWeight

        public double[] getWeight()
        Get weight.
        Returns:
        Weight.
      • setWeight

        public void setWeight(double[] weight)
        Set weight.
        Parameters:
        weight - Weight.
      • Compute

        public double Compute(FastBitmap fastBitmap1,
                              FastBitmap fastBitmap2)
        Compute moment.
        Parameters:
        fastBitmap1 - Image to be processed.
        fastBitmap2 - Image to be processed.
        Returns:
        Moment.
      • Compute

        public double Compute(double[][] momentA,
                              double[][] momentB)
        Compute moment.
        Parameters:
        momentA - Matrix contains moment.
        momentB - Matrix contains moment.
        Returns:
        Moment.
      • ComputeMatrixMoment

        public double[][] ComputeMatrixMoment(FastBitmap fastBitmap)
        Compute matrix moment.
        Parameters:
        fastBitmap - Image to be processed.
        Returns:
        Matrix moment.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.