Esempio n. 1
0
 public async Task <PHash> ComputePHash(Photogragh photogragh)
 {
     return(await Task.Run(() =>
     {
         return new PHash(photogragh.ComputePHash());
     }));
 }
Esempio n. 2
0
 /// <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());