Exemplo n.º 1
0
 /// <summary>
 /// Calculates phase using Atan2 (secondImage / firstImage).
 /// </summary>
 /// <param name="imageX">First image.</param>
 /// <param name="imageY">Second image.</param>
 /// <returns>Phase.</returns>
 public static Gray <double>[,] Phase(this  Gray <double>[,] imageX, Gray <double>[,] imageY)
 {
     return(imageX.Calculate(imageY, phase_Double, inPlace: false));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Calculates magnitude using Euclidean distance.
 /// </summary>
 /// <param name="imageA">First image.</param>
 /// <param name="imageB">Second image.</param>
 /// <returns>Magnitude.</returns>
 public static Gray <double>[,] Magnitude(this Gray <double>[,] imageA, Gray <double>[,] imageB)
 {
     return(imageA.Calculate(imageB, magnitude_Double, inPlace: false));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Calculates phase using Atan2 (secondImage / firstImage).
 /// </summary>
 /// <param name="imageX">First image.</param>
 /// <param name="imageY">Second image.</param>
 /// <returns>Phase.</returns>
 public static Gray <float>[,] Phase(this  Gray <float>[,] imageX, Gray <float>[,] imageY)
 {
     return(imageX.Calculate(imageY, phase_Float, inPlace: false));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Calculates magnitude using Euclidean distance.
 /// </summary>
 /// <param name="imageA">First image.</param>
 /// <param name="imageB">Second image.</param>
 /// <returns>Magnitude.</returns>
 public static Gray <float>[,] Magnitude(this Gray <float>[,] imageA, Gray <float>[,] imageB)
 {
     return(imageA.Calculate(imageB, magnitude_Float, inPlace: false));
 }