using System.Drawing;
using Tesseract;
using PointF = System.Drawing.PointF;
using Rectangle = CrossCutting.Rectangle;




namespace InterpreterLibrary.Processing
{
    public class Blob
    {
        public Blob(Blob other)
        {
            Area = other.Area;
            CenterOfGravity = other.CenterOfGravity;
            ColorMean = other.ColorMean;
            ColorStdDev = other.ColorStdDev;
            Fullness = other.Fullness;
            Id = other.Id;
            Image = other.Image;
            OriginalSize = other.OriginalSize;
            Rectangle = new Rectangle(other.Rectangle.X, other.Rectangle.Y, other.Rectangle.Width,
                other.Rectangle.Height);
        }

        public Blob(int id, Rectangle rectangle)
        {
            Id = id;
            Rectangle = rectangle;
        }

        public Rectangle Rectangle { get; set; }
        public int Id { get; set; }
        public int Area { get; set; }
        public PointF CenterOfGravity { get; set; }
        public Color ColorMean { get; internal set; }
        public Color ColorStdDev { get; set; }
        public double Fullness { get; set; }
        public Pix Image { get; internal set; }
        public bool OriginalSize { get; set; }
    }
}
