Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class morphoFeatures {
- private:
- int threshold;
- cv::Mat cross;
- cv::Mat square;
- cv::Mat diamond;
- cv::Mat x;
- };
- int main(int argc, char**argv) {
- Mat img = imread("cars2.jpg");
- if (img.empty())
- cout << "failed!";
- cvtColor(img,img, CV_RGB2GRAY);
- Mat result;
- //I get 4 errors in this line:
- 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)){}
- waitKey();
- return 0;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement