Browse Source

fix release build

boyska 7 years ago
parent
commit
fb15d3d5b1
2 changed files with 3 additions and 0 deletions
  1. 1 0
      .gitignore
  2. 2 0
      lines.cpp

+ 1 - 0
.gitignore

@@ -25,3 +25,4 @@ Test*.cpp
 # executables
 /lines
 unittest_*
+gmon.out

+ 2 - 0
lines.cpp

@@ -128,7 +128,9 @@ int main(int argc, char *argv[])
 	}
 	//dotwidth is just a simple size so that lines and dots are visible on big images
 	//but not huge on small images
+#ifdef _DEBUG
 	unsigned short dotwidth = img.cols >> 6;  // divide by 64, so efficient
+#endif
 
 	std::vector< std::vector<cv::Point> > contours;
 	std::vector<cv::Vec4i> hierarchy; //this is not really useful