public async Task <PHash> ComputePHash(Photogragh photogragh) { return(await Task.Run(() => { return new PHash(photogragh.ComputePHash()); })); }
/// <summary> /// /// </summary> /// <param name="photogragh"></param> /// <exception cref="FileNotFoundException"></exception> /// <exception cref="Exception"></exception> public static Digest ComputePHash(this Photogragh photogragh) => ImagePhash.ComputeDigest(photogragh.Path.ReadBitmap().GetImageSource().ToLuminanceImage());