void ExecuteFilter(ISignalProcessor <IsgTimeImageSignalSource, IsgTimeImageSignalSource> processor) { //Get a copy of the selected image and create new image, that can be operated on var imageSource = new IsgTimeImageSignalSource(Image.BitmapImage2Bitmap()); //Use the selected filter on the image IsgTimeImageSignalSource res = processor.Process(imageSource); //Change the image in the view Image = BitmapToImageSource(res.Image); //dispose the copied image imageSource.Image.Dispose(); }
public IsgTimeImageSignalSource Process(IsgTimeImageSignalSource input) { return(null); }