/// <summary> /// Converts the source color to the destination color. /// </summary> /// <param name="image">Source image.</param> /// <param name="area">Working area.</param> /// <returns>image with converted color.</returns> public static Hsv <byte>[,] ToHsv(this Bgr <byte>[,] image, Rectangle area) { return(image.Convert <Bgr <byte>, Hsv <byte> >(Bgr <byte> .Convert, area)); }
/// <summary> /// Converts the source color to the destination color. /// </summary> /// <param name="image">Source image.</param> /// <param name="area">Working area.</param> /// <returns>image with converted color.</returns> public static Gray <byte>[,] ToGray(this Bgr <byte>[,] image, Rectangle area) { return(image.Convert <Bgr <byte>, Gray <byte> >(Bgr <byte> .Convert, area)); }
/// <summary> /// Converts the source color to the destination color. /// </summary> /// <param name="image">Source image.</param> /// <returns>image with converted color.</returns> public static Hsv <byte>[,] ToHsv(this Bgr <byte>[,] image) { return(image.Convert <Bgr <byte>, Hsv <byte> >(Bgr <byte> .Convert)); }
/// <summary> /// Converts the source color to the destination color. /// </summary> /// <param name="image">Source image.</param> /// <returns>image with converted color.</returns> public static Gray <byte>[,] ToGray(this Bgr <byte>[,] image) { return(image.Convert <Bgr <byte>, Gray <byte> >(Bgr <byte> .Convert)); }