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