Ejemplo n.º 1
0
        public void AddPixel(Pixel pixel)
        {
            Pixels.Add(pixel);

            IntegratedPixel.Append(pixel);
            IntegratedColor.Append(_img.Get(pixel));
        }
Ejemplo n.º 2
0
        public Segment(BImage img, Pixel rootPixel)
        {
            _img = img;
            _w   = img.W;

            RootPixel = rootPixel;
            Pixels    = new List <Pixel>();

            IntegratedColor = new IntegratedColor();
            IntegratedPixel = new IntegratedPixel();
        }
Ejemplo n.º 3
0
 public void Append(IntegratedPixel p)
 {
     P = Pixel.Create(P.Y + p.P.Y, P.X + p.P.X);
 }
Ejemplo n.º 4
0
 public void Realize()
 {
     AverageColor = IntegratedColor.ToColor(Pixels.Count);
     AveragePixel = IntegratedPixel.ToPixel(Pixels.Count);
 }