Пример #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="wholeSize"></param>
 /// <param name="ofs"></param>
 public void LocateROI(out Size wholeSize, out Point ofs)
 {
     ThrowIfDisposed();
     try
     {
         CvSize wholeSize2;
         CvPoint ofs2;
         CppInvoke.core_Mat_locateROI(ptr, out wholeSize2, out ofs2);
         wholeSize = wholeSize2;
         ofs = ofs2;
     }
     catch (BadImageFormatException ex)
     {
         throw PInvokeHelper.CreateException(ex);
     }
 }
Пример #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="size"></param>
 /// <param name="type"></param>
 /// <param name="s"></param>
 public Mat(Size size, int type, Scalar s)
 {
     ptr = CppInvoke.core_Mat_new(size.Width, size.Height, type, s);
 }
Пример #3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="size"></param>
 /// <param name="type"></param>
 /// <returns></returns>
 public static MatExpr Ones(Size size, int type)
 {
     throw new NotImplementedException();
     //Mat retVal = new Mat(n_ones(size.Width, size.Height, type));
     //return retVal;
 }
Пример #4
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="size"></param>
 /// <param name="type"></param>
 public void Create(Size size, MatrixType type)
 {
     Create(size.Width, size.Height, type);
 }
Пример #5
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="size"></param>
 /// <param name="type"></param>
 /// <returns></returns>
 public static MatExpr Eye(Size size, MatrixType type)
 {
     return Eye(size.Height, size.Width, type);
 }