public static Detection GetInstance() { if (instance == null) { instance = new Detection(); } 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(); }