Ejemplo n.º 1
0
        public static double[] CalculateFCTHescriptor(Bitmap bitmap)
        {
            FCTH_Descriptor.FCTH FCTH = new FCTH_Descriptor.FCTH();

            return FCTH.Apply(bitmap, 2);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Citation : Savvas A. Chatzichristofis and Yiannis S. Boutalis
        /// FCTH: FUZZY COLOR AND TEXTURE HISTOGRAM. A LOW LEVEL FEATURE FOR ACCURATE IMAGE RETRIEVAL
        /// « 9th International Workshop on Image Analysis for Multimedia Interactive Services »,
        /// 2008, Xanthi, Greece
        /// </summary>
        /// <param name="img"></param>
        /// <returns></returns>
        public static float[] calculateFCTH(Bitmap img)
        {
            float[] result = new float[192];
            FCTH_Descriptor.FCTH fcth = new FCTH_Descriptor.FCTH();
            result = convertDoublesToFloats(fcth.Apply(img, 2));

            /*/ Debug
            foreach (float c in result) Console.Write(c + " ");
            Console.WriteLine("\n\n");
            */
            return result;
        }