Changeset 31742 for lang/cpluspluscli

Show
Ignore:
Timestamp:
03/31/09 22:19:04 (5 years ago)
Author:
schima
Message:

cvCheckContourConvexity (int -> bool)

Location:
lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp/Core
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp/Core/CvDll.cs

    r31739 r31742  
    6464        public static extern void cvCanny(IntPtr image, IntPtr edges, double threshold1, double threshold2, [MarshalAs(UnmanagedType.U4)] ApertureSize aperture_size); 
    6565        [DllImport(DLL_CV)] 
    66         //[return: MarshalAs(UnmanagedType.Bool)] 
    67         //public static extern bool cvCheckContourConvexity(IntPtr contour); 
    68         public static extern int cvCheckContourConvexity(IntPtr contour); 
     66        [return: MarshalAs(UnmanagedType.Bool)] 
     67        public static extern bool cvCheckContourConvexity(IntPtr contour); 
     68        //public static extern int cvCheckContourConvexity(IntPtr contour); 
    6969        [DllImport(DLL_CV)] 
    7070        public static extern void cvClearHist(IntPtr hist); 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp/Core/Cv_A-F.cs

    r31739 r31742  
    14071407                throw new ArgumentNullException("contour"); 
    14081408            } 
    1409             //return CvDll.cvCheckContourConvexity(contour.CvPtr); 
    1410             return CvDll.cvCheckContourConvexity(contour.CvPtr) != 0; 
     1409            return CvDll.cvCheckContourConvexity(contour.CvPtr); 
     1410            //return CvDll.cvCheckContourConvexity(contour.CvPtr) != 0; 
    14111411        } 
    14121412        #endregion