コード例 #1
0
ファイル: Hsv.cs プロジェクト: goupviet/dot-imaging
        public static Bgr <byte> ToBgr(this Hsv <byte> hsv)
        {
            Bgr <byte> bgr = default(Bgr <byte>);

            Hsv <byte> .Convert(hsv, ref bgr);

            return(bgr);
        }
コード例 #2
0
 /// <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>[,] ToGray(this Hsv <byte>[,] image, Rectangle area)
 {
     return(image.Convert <Hsv <byte>, Bgr <byte> >(Hsv <byte> .Convert, area));
 }
コード例 #3
0
 /// <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 Hsv <byte>[,] image)
 {
     return(image.Convert <Hsv <byte>, Bgr <byte> >(Hsv <byte> .Convert));
 }