public FaceDetectionControl() { _trainImages = new ObservableCollection <FaceImage>(); _testImages = new ObservableCollection <FaceImage>(); _faceDetectionRepository = new FdFaceDetection(); _faceDetectionViewModel = new FaceDetectionViewModel(); this.DataContext = _faceDetectionViewModel; InitializeComponent(); }
public PreprocessingPanelViewModel() { _trainFaces = new ObservableCollection <FaceImage>(); _testFaces = new ObservableCollection <FaceImage>(); _trainImages = new ObservableCollection <FaceImage>(); _testImages = new ObservableCollection <FaceImage>(); _extractFeatures = new ExtractFeatures(); _faceDetectionRepository = new FdFaceDetection(); PreprocessingPanelControl.FaceImagesSavedEvent += new EventHandler(PreprocessingPanelControl_FaceImagesSavedEvent); PreprocessingPanelControl.FacesGotEvent += new EventHandler(PreprocessingPanelControl_FacesGotEvent); }