Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 private DualTVL1OpticalFlow()
 {
     detectorPtr = null;
     ptr         = IntPtr.Zero;
 }
Exemple #2
0
 /// <summary>
 /// Creates instance by cv::Ptr&lt;T&gt;
 /// </summary>
 internal BFMatcher(Ptr detectorPtr)
 {
     this.detectorPtr = detectorPtr;
     this.ptr         = detectorPtr.Get();
 }
 private static IntPtr GetEntityPointer(IntPtr ptrObjPtr, out Ptr ptrObj)
 {
     ptrObj = new Ptr(ptrObjPtr);
     return(ptrObj.Get());
 }
 /// <summary>
 /// Releases managed resources
 /// </summary>
 protected override void DisposeManaged()
 {
     objectPtr?.Dispose();
     objectPtr = null;
     base.DisposeManaged();
 }
Exemple #5
0
 internal BackgroundSubtractorMOG(IntPtr ptr)
 {
     this.objectPtr = new Ptr <BackgroundSubtractorMOG>(ptr);
     this.ptr       = ptr;
 }
Exemple #6
0
 /// <summary>
 /// Releases managed resources
 /// </summary>
 protected override void DisposeManaged()
 {
     ptrObj?.Dispose();
     ptrObj = null;
     base.DisposeManaged();
 }
Exemple #7
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="p"></param>
 protected BRISK(IntPtr p)
     : base()
 {
     ptrObj = new Ptr(p);
     ptr    = ptrObj.Get();
 }
Exemple #8
0
 /// <summary>
 /// constructor
 /// </summary>
 protected StereoBM(IntPtr ptr)
     : base(ptr)
 {
     ptrObj = new Ptr(ptr);
 }
Exemple #9
0
 /// <summary>
 ///
 /// </summary>
 protected SimpleBlobDetector(IntPtr p)
 {
     ptrObj = new Ptr(p);
     ptr    = ptrObj.Get();
 }
 /// <summary>
 /// Creates instance by raw pointer T*
 /// </summary>
 internal FlannBasedMatcher(IntPtr rawPtr)
 {
     detectorPtr = null;
     ptr         = rawPtr;
 }
Exemple #11
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="p"></param>
 protected GFTTDetector(IntPtr p)
 {
     ptrObj = new Ptr <GFTTDetector>(p);
     ptr    = ptrObj.Get();
 }
 /// <summary>
 /// Creates instance by cv::Ptr&lt;T&gt;
 /// </summary>
 internal FlannBasedMatcher(Ptr <FlannBasedMatcher> detectorPtr)
 {
     this.detectorPtr = detectorPtr;
     this.ptr         = detectorPtr.Get();
 }
Exemple #13
0
// ReSharper restore InconsistentNaming
#pragma warning restore 1591

        #endregion

        #region Init and Disposal

        /// <summary>
        /// Creates instance by raw pointer cv::ml::EM*
        /// </summary>
        protected EM(IntPtr p)
        {
            ptrObj = new Ptr <EM>(p);
            ptr    = ptrObj.Get();
        }
 /// <summary>
 ///
 /// </summary>
 private DenseOpticalFlowImpl()
 {
     detectorPtr = null;
     ptr         = IntPtr.Zero;
 }
Exemple #15
0
 /// <summary>
 /// Releases managed resources
 /// </summary>
 protected override void DisposeManaged()
 {
     detectorPtr.Dispose();
     detectorPtr = null;
     base.DisposeManaged();
 }
Exemple #16
0
 /// <summary>
 ///
 /// </summary>
 internal AKAZE(Ptr <AKAZE> p)
     : base(p.Get())
 {
     ptrObj = p;
 }
Exemple #17
0
        //internal override IntPtr PtrObj => ptrObj.CvPtr;

        #region Init & Disposal

        /// <summary>
        ///
        /// </summary>
        protected KAZE(IntPtr p)
        {
            ptrObj = new Ptr(p);
            ptr    = ptrObj.Get();
        }
 internal BackgroundSubtractorKNN(IntPtr ptr)
 {
     this.objectPtr = new Ptr(ptr);
     this.ptr       = objectPtr.Get();
 }
 /// <summary>
 ///
 /// </summary>
 private SuperResolutionImpl()
 {
     detectorPtr = null;
     ptr         = IntPtr.Zero;
 }
Exemple #20
0
 /// <summary>
 ///
 /// </summary>
 protected FastFeatureDetector(IntPtr ptr)
 {
     ptrObj = new Ptr <FastFeatureDetector>(ptr);
     ptr    = ptrObj.Get();
 }