예제 #1
0
        public static List <Fov> GetFov(string ID, Image <Gray, byte> ImgGerber, Rectangle ROI, Size FOV, SPI_AOI.Utils.StartPoint StartPoint)
        {
            List <Fov> fovs = new List <Fov>();

            Point[] anchors = SPI_AOI.Utils.FOVOptimize.GetAnchorsFOV(ImgGerber, ROI, FOV, StartPoint);
            for (int i = 0; i < anchors.Length; i++)
            {
                Fov fov = new Fov();
                fov.ID       = ID;
                fov.NO       = i;
                fov.Anchor   = anchors[i];
                fov.ROI      = new Rectangle(mParam.IMAGE_SIZE.Width / 2 - FOV.Width / 2, mParam.IMAGE_SIZE.Height / 2 - FOV.Height / 2, FOV.Width, FOV.Height);
                fov.PadItems = new List <int>();
                fovs.Add(fov);
            }
            return(fovs);
        }
예제 #2
0
 public void SetStartPoint(SPI_AOI.Utils.StartPoint StartPoint, Size FOV)
 {
     this.StartPoint = StartPoint;
     this.ResetMark();
 }