add segmentDetect matlab function
add createSegments function and segmented image
change the mex to run for segments