Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. class morphoFeatures {
  2. private:
  3. int threshold;
  4. cv::Mat cross;
  5. cv::Mat square;
  6. cv::Mat diamond;
  7. cv::Mat x;
  8. };
  9. int main(int argc, char**argv) {
  10. Mat img = imread("cars2.jpg");
  11. if (img.empty())
  12. cout << "failed!";
  13. cvtColor(img,img, CV_RGB2GRAY);
  14. Mat result;
  15.  
  16. //I get 4 errors in this line:
  17. morphoFeatures(): threshold(-1), cross(5, 5, CV_8U, Scalar(0)),square(5, 5, CV_8U, Scalar(1)), diamond(5, 5, CV_8U, scalar(1)), x(5, 5, CV_8U, Scalar(0)){}
  18.  
  19. waitKey();
  20. return 0;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement