Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

No member named 'Blender' in namespace 'cv::detail' stitching.hpp error when using Simple Blob Detector

$
0
0
Headers were added to the beginning as I was originally getting Parse Issues from the Expected Identifier ‘NO’ in the macro. By adding these headers, I removed the Parse Issues as recommended in the source files, but this resulted in the new errors as described above. **I removed all the number symbols before code lines as I could not figure out how to keep they symbols from enlarging and bolding the code.** ifndef OPENCV_STITCHING_BLENDERS_HPP define OPENCV_STITCHING_BLENDERS_HPP if defined(NO) warning Detected Apple 'NO' macro definition, it can cause build conflicts. Please, include this header before any Apple headers. endif ifndef OPENCV_STITCHING_EXPOSURE_COMPENSATE_HPP define OPENCV_STITCHING_EXPOSURE_COMPENSATE_HPP if defined(NO) warning Detected Apple 'NO' macro definition, it can cause build conflicts. Please, include this header before any Apple headers. endif import "OpenWrapper.h" import import import import using namespace std; using namespace cv; @implementation OpenWrapper +(UIImage *) makeGrayscale:(UIImage *)myImage{ // Convert UIImage to Mat Mat imageMat; UIImageToMat(myImage, imageMat); // Convert from color to grayscale image Mat graymat; cvtColor(imageMat, graymat, CV_BGR2GRAY); // Set up Simple Blob Parameters SimpleBlobDetector::Params params; params.minThreshold = 10; params.maxThreshold = 200; params.filterByArea = true; params.minArea = 1500; params.filterByCircularity = true; params.minConvexity = 0.87; params.filterByInertia = true; params.minInertiaRatio = 0.01; // Create dectector with keypoints vector keypoints; Ptr detector = SimpleBlobDetector::create(params); detector->detect(graymat, keypoints); // Mat im_with_keypoints; Mat im_with_keypoints; drawKeypoints(graymat, keypoints, im_with_keypoints, Scalar(0,0,255), DrawMatchesFlags::DRAW_RICH_KEYPOINTS); // Show blobs imshow("keypoints", im_with_keypoints ); waitKey(0); // Output results as UIIMage return MatToUIImage(graymat); } endif endif

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>