public static VectorOfVectorOfPoint FindContour( this Image<Gray,byte> src , int up , int dw) { return FnFindContour( up, dw )( src ) ; }
public static VectorOfVectorOfPoint FindContour( this Image <Gray, byte> src , int up , int dw) { src.Save(@"C:\01test\Test1\test1.bmp"); return(FnFindContour(up, dw)(src)); }
public Task <Point[][]> GetContourList(byte [ , , ] input, int areaup, int areadw) { return(Task.Run <Point[][]>(() => { return input.Map(x => new Image <Gray, byte>(x)) .Map(x => FnFindContour(areaup, areadw)(x)) .ToArrayOfArray(); })); }
public Task <List <System.Drawing.Rectangle> > GetBoxList(byte [ , , ] input, int areaup, int areadw) { return(Task.Run <List <System.Drawing.Rectangle> >(() => { return input.Map(x => new Image <Gray, byte>(x)) .Map(x => FnFindContour(areaup, areadw)(x)) .Map(x => FnSortcontours()(x)) .Map(x => FnApplyBox(areaup, areadw)(x)); })); }