protected override List <ulong> CalculatePreceptiveHashesByImage(Color[,] image)
        {
            var imageWithSuperimposedSobelFilter = SobelFilter.Transform(image);
            var threshold = OtcuBinarization.CalcThreshold(imageWithSuperimposedSobelFilter);

            return(PreceptiveHash.ByImage(imageWithSuperimposedSobelFilter, threshold));
        }
Ejemplo n.º 2
0
        private ulong CalculatePreceptiveHash(Color[,] image)
        {
            var threshold    = OtcuBinarization.CalcThreshold(image);
            var binarization = OtcuBinarization.Binarization(image, threshold);

            return(PreceptiveHash.Get(binarization, threshold));
        }
        protected override List <ulong> CalculatePreceptiveHashesByImage(Color[,] image)
        {
            var maskedImage = MaskedImageTransform.Transform(image);
            var threshold   = OtcuBinarization.CalcThreshold(maskedImage);

            return(PreceptiveHash.ByImage(maskedImage, threshold));
        }