Core image relatad methods.
All methods of this class are static and represent general routines used by different image processing classes.
        /// <summary>
        ///  Maximum cross-correlation feature point matching algorithm.
        /// </summary>
        /// <param name="correlationMatching"> Maximum cross-correlation feature point matching algorithm.</param>
        /// <param name="image1">First image.</param>
        /// <param name="image2">Second image.</param>
        /// <param name="points1">Points from the first image.</param>
        /// <param name="points2">Points from the second image.</param>
        /// <returns>Matched point-pairs.</returns>
        public static Point[][] Match(this CorrelationMatching correlationMatching,
            Image<Gray, byte> image1, Image<Gray, byte> image2, Point[] points1, Point[] points2)
        {
            var result = correlationMatching.Match
                (
                  image1.ToBitmap(copyAlways: false, failIfCannotCast: true),
                  image2.ToBitmap(copyAlways: false, failIfCannotCast: true),
                  points1,
                  points2
                );

            return result;
        }
 /// <summary>
 /// Computes the Gray-level Run-length for the given image source.
 /// </summary>
 /// <param name="grayLevelRunLengthMatrix">Gray-Level Run-Length Matrix.</param>
 /// <param name="source">The source image.</param>
 /// <returns>An array of run-length vectors containing level counts for every width pixel in <paramref name="source"/>.</returns>
 public static double[][] Compute(this GrayLevelRunLengthMatrix grayLevelRunLengthMatrix, Image<Gray<byte>> source)
 {
     return grayLevelRunLengthMatrix.Compute(source.AsAForgeImage());
 }
 /// <summary>
 /// Computes the Gray-level Run-length for the given image source.
 /// </summary>
 /// <param name="grayLevelRunLengthMatrix">Gray-Level Run-Length Matrix.</param>
 /// <param name="source">The source image.</param>
 /// <returns>An array of run-length vectors containing level counts for every width pixel in <paramref name="source"/>.</returns>
 public static double[][] Compute(this GrayLevelRunLengthMatrix grayLevelRunLengthMatrix, Image<Gray, byte> source)
 {
     return grayLevelRunLengthMatrix.Compute(source.ToAForgeImage(copyAlways: false, failIfCannotCast: true));
 }