/// <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);
        }
      /// <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);
      }
Beispiel #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);
 }
 /// <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);
 }