Esempio n. 1
0
 public static DeformBspline GetInstance()
 {
     if (instance == null)
     {
         instance = new DeformBspline();
     }
     return(instance);
 }
 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();
 }