Exemple #1
0
        public DPacket GetDifferenceMask(Byte threshold)
        {
            DPacketReader rdr = new DPacketReader()
            {
                Resolution = _stateFrameDifferencingHighRes ? 16 : 8
            };

            DPacket packet = _c.SendCommandGetPacket(rdr, "MD", threshold);

            return(packet);
        }
Exemple #2
0
        public IEnumerable <DPacket> GetDifferenceMaskStream(Byte threshold)
        {
            DPacketReader rdr = new DPacketReader()
            {
                Resolution = _stateFrameDifferencingHighRes ? 16 : 8
            };

            IEnumerable <DPacket> stream = _c.SendCommandGetPacketStream(rdr, "MD", threshold);

            return(stream);
        }
Exemple #3
0
        /// <summary><para>Calls Frame Differencing against the last loaded frame (using the LoadFrame command). It returns data containing the middle mass, bounding box, pixel count, and confidence of any change since the previously loaded frame. It does this by calculating the average color intensity of an 8x8 grid of 64 regions ont he image and comparing those (plus or minus the threshhold value). The larger the threshold the less sensitive the camera will be towards differences in the image. Usually values between 5 and 20 yield good results.</para><para>In High-resolution mode a 16x16 grid is used with 256 regions.</para></summary>
        public DPacket GetDifference(Byte threshold)
        {
            SetLineMode(LineMode.Differencing, 0);

            DPacketReader rdr = new DPacketReader()
            {
                Resolution = _stateFrameDifferencingHighRes ? 16 : 8
            };

            DPacket dpak = _c.SendCommandGetPacket(rdr, "FD", threshold);

            return(dpak);
        }