Emgu.CV.CvInvoke.cvSegmentMotion C# (CSharp) Метод

cvSegmentMotion() приватный Метод

private cvSegmentMotion ( IntPtr mhi, IntPtr segMask, IntPtr storage, double timestamp, double segThresh ) : IntPtr
mhi IntPtr
segMask IntPtr
storage IntPtr
timestamp double
segThresh double
Результат IntPtr
        public static extern IntPtr cvSegmentMotion(
          IntPtr mhi,
          IntPtr segMask,
          IntPtr storage,
          double timestamp,
          double segThresh);

Usage Example

Пример #1
0
        /// <summary>
        /// Get a sequence of motion component
        /// </summary>
        /// <param name="storage">The storage used by the motion components</param>
        /// <returns>A sequence of motion components</returns>
        public Seq <MCvConnectedComp> GetMotionComponents(MemStorage storage)
        {
            TimeSpan ts = _lastTime.Subtract(_initTime);

            if (_segMask == null)
            {
                _segMask = new Image <Gray, float>(_mhi.Size);
            }
            Seq <MCvConnectedComp> seq = new Seq <MCvConnectedComp>(CvInvoke.cvSegmentMotion(_mhi, _segMask, storage, ts.TotalSeconds, _maxTimeDelta), storage);

            return(seq);
        }
CvInvoke