energy change
This commit is contained in:
1 parent
6a0020ce81
commit
aff8d1a0d8
3 files changed
+4
-4
No files matched your search
@@ -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