/// <summary>
 /// Calculate the similarity to another image.
 /// </summary>
 /// <param name="compare">The image to compare with.</param>
 /// <returns>Return a value from 0 to 1 that is the similarity.</returns>
 public double CalculateSimilarity(ComparableImage compare)
 {
     return(projections.CalculateSimilarity(compare.projections));
 }
 /// <summary>
 /// Calculate the similarity to another image.
 /// </summary>
 /// <param name="compare">The image to compare with.</param>
 /// <returns>Return a value from 0 to 1 that is the similarity.</returns>
 public double CalculateSimilarity(ComparableImage compare)
 {
     return projections.CalculateSimilarity(compare.projections);
 }
		/// <summary>
		/// Calculate the percentages difference between 2 images.
		/// </summary>
		/// <returns>The difference.</returns>
		/// <param name="fileSource">Image source.</param>
		/// <param name="fileTarget">Target image that will be compare to <paramref name="fileSource"/>.</param>
		public static double PercentageDifference(this string fileSource, string fileTarget)
		{
			using (var comparableSource = new ComparableImage(new FileInfo(fileSource)))
			using (var comparableTarget = new ComparableImage(new FileInfo(fileTarget)))
			{
				return comparableSource.CalculateSimilarity(comparableTarget);
			}
		}
 public SimilarityImages(ComparableImage source, ComparableImage destination, double similarity)
 {
     this.source      = source;
     this.destination = destination;
     this.similarity  = similarity;
 }