private void Open() { string imageLocation = FileBrowser.BrowseForImageFiles(); if (string.IsNullOrWhiteSpace(imageLocation)) { ImageLocation = string.Empty; BackgroundLocation = string.Empty; return; } string bgImageLocation = FileBrowser.BrowseForImageFiles(); if (string.IsNullOrWhiteSpace(bgImageLocation)) { ImageLocation = string.Empty; BackgroundLocation = string.Empty; return; } ImageLocation = imageLocation; BackgroundLocation = bgImageLocation; ProcessFrame(); }
private void OpenImage() { string image = FileBrowser.BrowseForImageFiles(); if (string.IsNullOrWhiteSpace(image)) { return; } MainImage = new Image <Gray, byte>(image); }