Matlab watershed method to segment image code