Add detect segment function, and digital image union operation.
Commit modified files. I thought I have commit them, but it is not.