public void CreateVectors() { try { for (var i = 0; i < TrainFaces.Count; i++) { TrainFaces[i].VectorBeforeFft = ImageToVector(TrainFaces[i].FullName); } for (var i = 0; i < TestFaces.Count; i++) { if (TrainFaces.Contains(TestFaces[i]) == false) { TestFaces[i].VectorBeforeFft = ImageToVector(TestFaces[i].FullName); } } } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, "BisunessLogic Policy"); if (rethrow) { throw; } MessageBox.Show("Failed convert image to vector"); } }
public void CreateVectors() { for (var i = 0; i < TrainFaces.Count; i++) { TrainFaces[i].VectorBeforeFft = ImageToVector(TrainFaces[i].FullName); } for (var i = 0; i < TestFaces.Count; i++) { if (TrainFaces.Contains(TestFaces[i]) == false) { TestFaces[i].VectorBeforeFft = ImageToVector(TestFaces[i].FullName); } } }