protected override List <ulong> CalculatePreceptiveHashesByImage(Color[,] image) { var imageWithSuperimposedSobelFilter = SobelFilter.Transform(image); var threshold = OtcuBinarization.CalcThreshold(imageWithSuperimposedSobelFilter); return(PreceptiveHash.ByImage(imageWithSuperimposedSobelFilter, threshold)); }
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)); }