Ejemplo n.º 1
0
 public static Detection GetInstance()
 {
     if (instance == null)
     {
         instance = new Detection();
     }
     return(instance);
 }
Ejemplo n.º 2
0
 public MainForm()
 {
     InitializeComponent();
     // Init all methods.
     while (File.Exists(string.Format("./data/{0}.jpg", totalImgs + 1)))
     {
         totalImgs++;
     }
     intp = Interpolation.GetInstance();
     bsp  = DeformBspline.GetInstance();
     tps  = DeformTPS.GetInstance();
     algn = Alignment.GetInstance();
     det  = Detection.GetInstance();
 }