public override IObservable <IplImage> Process(IObservable <IplImage> source) { return(source.Select(input => { var output = new IplImage(input.Size, IplDepth.U8, 1); CV.AdaptiveThreshold(input, output, MaxValue, AdaptiveMethod, ThresholdType, BlockSize, Parameter); return output; })); }