public __CvScalar(CVScalar scalar) { v0 = scalar.val[0]; v1 = scalar.val[1]; v2 = scalar.val[2]; v3 = scalar.val[3]; }
///<summary> /// Warps image with affine transform /// TODO: Remove 'dst' argument and return a CVImage object ///</summary> public void WarpAffine(CVArr dst, CVMat map_matrix, WarpFlags flags, CVScalar fillval) { PInvoke.cvWarpAffine(new __CvArrPtr(this), new __CvArrPtr(dst), new __CvMatPtr(map_matrix), (int)flags, new __CvScalar(fillval)); }
/// <summary> /// Copies source 2D array inside of the larger destination array and /// makes a border of the specified type (IPL_BORDER_*) around the copied area. /// </summary> public CVImage CopyMakeBorder(CVImage dst, Point offset, int bordertype, CVScalar value) { PInvoke.cvCopyMakeBorder(new __CvArrPtr(this), new __CvArrPtr(dst), new __CvPoint(offset), bordertype, new __CvScalar(value)); return(dst); }
///<summary> /// Warps image with affine transform /// TODO: Remove 'dst' argument and return a CVImage object ///</summary> public void WarpAffine(CVArr dst, CVMat map_matrix, WarpFlags flags, CVScalar fillval) { PInvoke.cvWarpAffine(new __CvArrPtr(this), new __CvArrPtr(dst), new __CvMatPtr(map_matrix), (int)flags, new __CvScalar(fillval)); CVUtils.CheckLastError(); }
/// <summary> /// Copies source 2D array inside of the larger destination array and /// makes a border of the specified type (IPL_BORDER_*) around the copied area. /// </summary> public CVImage CopyMakeBorder(CVImage dst, Point offset, int bordertype, CVScalar value) { PInvoke.cvCopyMakeBorder(new __CvArrPtr(this), new __CvArrPtr(dst), new __CvPoint(offset), bordertype, new __CvScalar(value)); CVUtils.CheckLastError(); return dst; }