private static extern void cvRectangle(ref IplImage img, CvPoint pt1, CvPoint pt2, CvScalar color, int thickness, int line_type, int shift);
public static void CvRectangle(IntPtr img, CvPoint pt1, CvPoint pt2, CvScalar color, int thickness, int line_type, int shift) { IplImage _img = (IplImage)Marshal.PtrToStructure(img, typeof(IplImage)); cvRectangle(ref _img, pt1, pt2, color, thickness, line_type, shift); }
private static extern void cvFilter2D(ref CvMat src, ref CvMat dst, ref CvMat kernel, CvPoint anchor);
private static extern void cvPutText(ref IplImage img, [MarshalAs(UnmanagedType.LPStr)] String text, CvPoint org, ref CvFont font, CvScalar color);
public static void CvFilter2D(ref CvMat src, ref CvMat dst, ref CvMat kernel, CvPoint anchor) { cvFilter2D(ref src, ref dst, ref kernel, anchor); }