public Task <byte[, , ]> Threshold(byte [ , , ] input, int thres) { return(Task.Run <byte [, , ]>(() => FnThreshold(ThresholdMode.Manual) (new Image <Gray, byte>(input), thres) .Data)); }
public static Image <Gray, byte> Threshold( this Image <Gray, byte> src , int thresValue) { return(FnThreshold(ThresholdMode.Manual)(src, thresValue)); }