推荐用法:(参数勿动)

threshold(gray,binary,0,255,CV_THRESH_OTSU+CV_THRESH_BINARY);