Start developing the segmentation software

And fix the bug of view