/// <summary>
        /// Create a two pass video stabilizer.
        /// </summary>
        /// <param name="baseFrameSource">The capture object to be stabilized. Should not be a camera stream.</param>
        public TwoPassStabilizer(FrameSource baseFrameSource)
        {
            if (baseFrameSource.CaptureSource == Capture.CaptureModuleType.Camera)
            {
                throw new ArgumentException("Two pass stabilizer cannot process camera stream");
            }

            _baseFrameSource = baseFrameSource;

            _ptr = VideoStabInvoke.TwoPassStabilizerCreate(_baseFrameSource, ref _stabilizerBase, ref FrameSourcePtr);
        }
Esempio n. 2
0
      /// <summary>
      /// Create a two pass video stabilizer.
      /// </summary>
      /// <param name="baseFrameSource">The capture object to be stabilized. Should not be a camera stream.</param>
      public TwoPassStabilizer(FrameSource baseFrameSource)
      {
         if (baseFrameSource.CaptureSource == Capture.CaptureModuleType.Camera)
         {
            throw new ArgumentException("Two pass stabilizer cannot process camera stream");
         }

         _baseFrameSource = baseFrameSource;

         _ptr = VideoStabInvoke.TwoPassStabilizerCreate(_baseFrameSource, ref _stabilizerBase, ref FrameSourcePtr);
      }
Esempio n. 3
0
 /// <summary>
 /// Create a one pass stabilizer
 /// </summary>
 /// <param name="baseFrameSource">The capture object to be stabalized</param>
 public OnePassStabilizer(FrameSource baseFrameSource)
 {
     _baseFrameSource = baseFrameSource;
     _ptr             = VideoStabInvoke.cveOnePassStabilizerCreate(baseFrameSource.FrameSourcePtr, ref _stabilizerBase, ref FrameSourcePtr);
 }
Esempio n. 4
0
 /// <summary>
 /// Create a one pass stabilizer
 /// </summary>
 /// <param name="baseFrameSource">The capture object to be stabalized</param>
 public OnePassStabilizer(FrameSource baseFrameSource)
 {
    _baseFrameSource = baseFrameSource;
    _ptr = VideoStabInvoke.OnePassStabilizerCreate(baseFrameSource.FrameSourcePtr, ref _stabilizerBase, ref FrameSourcePtr);
 }