Ejemplo n.º 1
0
        /// <summary>Gets a histogram of the specified channel. The histogram contains 28 bins each holding the number of pixels that occurred within that bin's range of color values. So bin 0 contains the number of red pixels that were between 16 and 23 in value. The value returned in each bin is the number of pixels in that bin divided by the total number of pixels multiplied 256 and capped at 255.</summary>
        public HPacket GetHistogram(Channel channel)
        {
            HPacketReader rdr = new HPacketReader();

            HPacket hpak = _c.SendCommandGetPacket(rdr, "GH", (byte)channel);

            return(hpak);
        }
Ejemplo n.º 2
0
        public IEnumerable <HPacket> GetHistogramStream(Channel channel)
        {
            HPacketReader rdr = new HPacketReader();

            IEnumerable <HPacket> stream = _c.SendCommandGetPacketStream(rdr, "GH", (byte)channel);

            IsStreaming = true;
            return(stream);
        }