Esempio n. 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="location"></param>
 /// <param name="size"></param>
 public Rectf(Point2f location, Size2f size)
 {
     X      = location.X;
     Y      = location.Y;
     Width  = size.Width;
     Height = size.Height;
 }
 public static extern void core_Mat_push_back_Size2f(IntPtr self, Size2f v);
Esempio n. 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="box"></param>
 public RotatedRect(CvBox2D box)
 {
     Center = box.Center;
     Size   = box.Size;
     Angle  = box.Angle;
 }
Esempio n. 4
0
        /// <summary>
        /// このCvRectを指定の量だけ膨らませる
        /// </summary>
        /// <param name="size">この四角形の膨張量</param>
#else
        /// <summary>
        /// Inflates this Rect by the specified amount.
        /// </summary>
        /// <param name="size">The amount to inflate this rectangle. </param>
#endif
        public void Inflate(Size2f size)
        {
            Inflate(size.Width, size.Height);
        }
Esempio n. 5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="center"></param>
 /// <param name="size"></param>
 /// <param name="angle"></param>
 public RotatedRect(Point2f center, Size2f size, float angle)
 {
     Center = center;
     Size   = size;
     Angle  = angle;
 }