public Result Calculate(string testType) { Result ret = AnalyzerIntf.GetAnalyzer(testType).Calculate(Imgs, _distances); _distances.Clear(); Imgs.Clear(); return(ret); }
public Result Analyze(string testType, double distance) { AnalyzerIntf analyzer = AnalyzerIntf.GetAnalyzer(testType); CircleImage i; if (CurImage != null) { i = analyzer.FindCircle(CurImage, HoughParams(distance.ToString())); } else { i = analyzer.FindCircle(_filePath, HoughParams(distance.ToString())); } Imgs.Add(i); AnalyzedImage = i.RetImg; CurImage = null; return(new Result("Ok", "", AnalyzedImage)); }