energy change
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user