Пример #1
0
 /// <summary>
 /// Draws contour outlines or filled interiors on the image
 /// </summary>
 /// <param name="img"></param>
 /// <param name="contour"></param>
 /// <param name="external_color"></param>
 /// <param name="hole_color"></param>
 /// <param name="max_level"></param>
 /// <param name="thickness"></param>
 public static void cvDrawContours(__CvArrPtr img, __CvSeqPtr contour,
                                   __CvScalar external_color, __CvScalar hole_color,
                                   int max_level, int thickness)
 {
     cvDrawContours(img, contour, external_color, hole_color,
                    max_level, thickness, 8, new __CvPoint(0, 0));
 }
Пример #2
0
 public static void cvCalcHist(__IplImagePtr[] image, IntPtr hist, int accumulate, __CvArrPtr mask)
 {
     __CvArrPtr[] arrs = new __CvArrPtr[image.Length];
     for (int i = 0; i < image.Length; ++i)
     {
         arrs[i] = image[i];
     }
     cvCalcArrHist(arrs, hist, accumulate, mask);
 }
Пример #3
0
 public static void cvCalcBackProject(__IplImagePtr[] image, __CvArrPtr dst, IntPtr hist)
 {
     __CvArrPtr[] arrs = new __CvArrPtr[image.Length];
     for (int i = 0; i < image.Length; ++i)
     {
         arrs[i] = image[i];
     }
     cvCalcArrBackProject(arrs, dst, hist);
 }
Пример #4
0
 public static void cvCalcHist(__IplImagePtr[] image, IntPtr hist)
 {
     __CvArrPtr[] arrs = new __CvArrPtr[image.Length];
     for (int i = 0; i < image.Length; ++i)
     {
         arrs[i] = image[i];
     }
     cvCalcArrHist(arrs, hist, 0, IntPtr.Zero);
 }
Пример #5
0
 /// <summary>
 /// Retrieves outer and optionally inner boundaries of white (non-zero) connected
 /// components in the black (zero) background
 /// </summary>
 /// <param name="image"></param>
 /// <param name="storage"></param>
 /// <param name="first_contour"></param>
 /// <returns></returns>
 public static int cvFindContours(__CvArrPtr image, __CvMemStoragePtr storage,
                                  out __CvSeqPtr first_contour)
 {
     unsafe
     {
         return(cvFindContours(
                    image, storage, out first_contour, sizeof(__CvContour),
                    CV_RETR.CV_RETR_LIST, CV_CHAIN.CV_CHAIN_APPROX_SIMPLE, new __CvPoint(0, 0)));
     }
 }
Пример #6
0
 public static extern void cvMorphologyEx(__CvArrPtr src, __CvArrPtr dst, __CvArrPtr temp, __IplConvKernelPtr element, int operation, int iterations /* CV_DEFAULT(1) */);
Пример #7
0
 public static extern void cvLogPolar(__CvArrPtr src, __CvArrPtr dst, __CvPoint2D32f center, double M, int flags /* CV_DEFAULT(CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS) */);
Пример #8
0
 public static extern void cvWarpPerspective(__CvArrPtr src, __CvArrPtr dst, __CvMatPtr map_matrix, int flags /* CV_DEFAULT(CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS) */, __CvScalar fillval /* CV_DEFAULT(__CvScalarAll(0)) */);
Пример #9
0
 public static extern void cvCvtColor(__CvArrPtr src, __CvArrPtr dst, int code);
Пример #10
0
 public static extern void cvSobel(__CvArrPtr src, __CvArrPtr dst, int xorder, int yorder, int aperture_size /* CV_DEFAULT(3) */);
Пример #11
0
 public static extern void cvWatershed(__CvArrPtr image, __CvArrPtr markers);
Пример #12
0
 public static extern void cvIntegral(__CvImagePtr image, __CvArrPtr sum, __CvArrPtr sqsum, __CvArrPtr tilted_sum);
Пример #13
0
 /// <summary>
 /// Calculates back project
 /// </summary>
 /// <param name="image"></param>
 /// <param name="dst"></param>
 /// <param name="hist"></param>
 public static void cvCalcBackProject(__CvArrPtr[] image, __CvArrPtr dst, IntPtr hist)
 {
     cvCalcArrBackProject(image, dst, hist);
 }
Пример #14
0
 public static extern void cvCalcArrBackProject(__CvArrPtr[] image, __CvArrPtr dst, IntPtr hist);
Пример #15
0
 public static extern void cvFilter2D(__CvArrPtr src, __CvArrPtr dst, __CvMatPtr kernel, __CvPoint anchor);
Пример #16
0
 public static extern void cvSmooth(__CvArrPtr src, __CvArrPtr dst, int smoothtype, int param1, int param2, double param3, double param4);
Пример #17
0
 public static extern void cvPyrMeanShiftFiltering(__CvArrPtr src, __CvArrPtr dst, double sp, double sr, int max_level /* CV_DEFAULT(1) */, CVTermCriteria termcrit /* CV_DEFAULT(cvTermCriteria(CV_TERMCRIT_ITER+CV_TERMCRIT_EPS,5,1)) */);
Пример #18
0
 public static extern int cvMeanShift(__CvArrPtr image, __CvRect window, __CvTermCriteria criteria, ref __CvConnectedComp comp);
Пример #19
0
 public static extern void cvInpaint(__CvArrPtr src, __CvArrPtr inpaint_mask, __CvArrPtr dst, double inpaintRange, int flags);
Пример #20
0
 public static extern int cvCamShift(__CvArrPtr prob, __CvRect window, __CvTermCriteria criteria, ref __CvConnectedComp comp, /*__CvBox2D*/ IntPtr box);
Пример #21
0
 public static extern void cvLaplace(__CvArrPtr src, __CvArrPtr dst, int aperture_size /* CV_DEFAULT(3) */);
Пример #22
0
 public static int cvCamShift(__CvArrPtr prob, __CvRect window, __CvTermCriteria criteria, ref __CvConnectedComp comp)
 {
     return(cvCamShift(prob, window, criteria, ref comp, IntPtr.Zero));
 }
Пример #23
0
 public static extern void cvResize(__CvArrPtr src, __CvArrPtr dst, int interpolation /* CV_DEFAULT( CV_INTER_LINEAR ) */);
Пример #24
0
 public static extern int cvFindContours(__CvArrPtr image, __CvMemStoragePtr storage,
                                         out __CvSeqPtr first_contour, int header_size, CV_RETR mode,
                                         CV_CHAIN method, __CvPoint offset);
Пример #25
0
 public static extern void cvRemap(__CvArrPtr src, __CvArrPtr dst, __CvArrPtr mapx, __CvArrPtr mapy, int flags /* CV_DEFAULT(CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS) */, __CvScalar fillval /* CV_DEFAULT(__CvScalarAll(0)) */);
Пример #26
0
 /// <summary>
 /// Retrieves outer and optionally inner boundaries of white (non-zero) connected
 /// components in the black (zero) background
 /// </summary>
 /// <param name="image"></param>
 /// <param name="storage"></param>
 /// <param name="first_contour"></param>
 /// <param name="header_size"></param>
 /// <param name="mode"></param>
 /// <param name="method"></param>
 /// <returns></returns>
 public static int cvFindContours(__CvArrPtr image, __CvMemStoragePtr storage,
                                  out __CvSeqPtr first_contour, int header_size, CV_RETR mode, CV_CHAIN method)
 {
     return(cvFindContours(image, storage, out first_contour, header_size, mode, method, new __CvPoint(0, 0)));
 }
Пример #27
0
 public static extern void cvDilate(__CvArrPtr src, __CvArrPtr dst, __IplConvKernelPtr element /* CV_DEFAULT(NULL) */, int iterations /* CV_DEFAULT(1) */);
Пример #28
0
 public static extern void cvCalcPyramid(__CvImagePtr src, __CvArrPtr container, IntPtr levels, int level_count, int filter);
Пример #29
0
 public static extern void cvMoments(__CvArrPtr arr, __CvMomentsPtr moments, int binary /* CV_DEFAULT(0) */);
Пример #30
0
 /// <summary>
 /// Retrieves outer and optionally inner boundaries of white (non-zero) connected
 /// components in the black (zero) background
 /// </summary>
 /// <param name="image"></param>
 /// <param name="storage"></param>
 /// <param name="first_contour"></param>
 /// <param name="header_size"></param>
 /// <param name="mode"></param>
 /// <param name="method"></param>
 /// <returns></returns>
 public static int cvFindContours(__CvArrPtr image, __CvMemStoragePtr storage,
                                  out __CvSeqPtr first_contour, int header_size)
 {
     return(cvFindContours(image, storage, out first_contour, header_size, CV_RETR.CV_RETR_LIST, CV_CHAIN.CV_CHAIN_APPROX_SIMPLE, new __CvPoint(0, 0)));
 }