/// <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 Bgr <byte>[,] ToBgr(this Rgb <byte>[,] image, Rectangle area) { return(image.Convert <Rgb <byte>, Bgr <byte> >(Rgb <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 Bgr <byte>[,] ToBgr(this Rgb <byte>[,] image) { return(image.Convert <Rgb <byte>, Bgr <byte> >(Rgb <byte> .Convert)); }