update generate segment code
Merge branch 'schedule' of github.com:jmaglala/scalapipe into schedule
Merge branch 'schedule' of github.com:jmaglala/scalapipe into schedule
worked on segmentation generation code