Esempio n. 1
0
        public ROI Duplicate()
        {
            ROI newRoi = new ROI(ID, 1, shape, type, turnOnStackRoi);

            newRoi.Comment = Comment;

            newRoi.W = W;
            newRoi.H = H;

            newRoi.Stack = stack;
            newRoi.D     = d;

            newRoi.firstTFrame = firstTFrame;
            newRoi.lastTFrame  = lastTFrame;
            newRoi.firstZFrame = firstZFrame;
            newRoi.lastZFrame  = lastZFrame;

            newRoi.SetLocationAll(this.GetLocationAll());

            return(newRoi);
        }
Esempio n. 2
0
        private CellToolDK.ROI ROItoCellToolDK(ROI roi)
        {
            CellToolDK.ROI newRoi = new CellToolDK.ROI(roi.getID, 1, roi.Shape, roi.Type, roi.turnOnStackRoi);

            newRoi.Checked = roi.Checked;
            newRoi.Comment = roi.Comment;

            newRoi.Width  = roi.Width;
            newRoi.Height = roi.Height;

            newRoi.Stack = roi.Stack;
            newRoi.D     = roi.D;

            newRoi.FromT = roi.FromT;
            newRoi.ToT   = roi.ToT;
            newRoi.FromZ = roi.FromZ;
            newRoi.ToZ   = roi.ToZ;

            newRoi.SetLocationAll(roi.GetLocationAll());

            return(newRoi);
        }