energy change

This commit is contained in:
sun
2019-07-18 13:07:31 +08:00
parent 6a0020ce81
commit aff8d1a0d8
3 changed files with 4 additions and 4 deletions

View File

@@ -23,8 +23,8 @@ void Energy::clearAll(){
// 此函数用于图像预处理
// ---------------------------------------------------------------------------------------------------------------------
void Energy::initImage(cv::Mat &src){
// imagePreprocess(src);
// if(show_process)imshow("img_preprocess", src);
imagePreprocess(src);
if(show_process)imshow("img_preprocess", src);
if (src.type() == CV_8UC3)cvtColor(src, src, COLOR_BGR2GRAY);
threshold(src, src, energy_part_param_.GRAY_THRESH, 255, THRESH_BINARY);
if (show_process)imshow("bin", src);