Fixing errors
authorStevenPuttemans <steven.puttemans@kuleuven.be>
Mon, 22 Sep 2014 20:12:27 +0000 (22:12 +0200)
committerStevenPuttemans <steven.puttemans@kuleuven.be>
Mon, 22 Sep 2014 20:12:27 +0000 (22:12 +0200)
modules/features2d/src/blobdetector.cpp

index 610569d..36aac90 100644 (file)
@@ -282,7 +282,7 @@ void SimpleBlobDetector::detectImpl(const cv::Mat& image, std::vector<cv::KeyPoi
     else
         grayscaleImage = image;
 
-    if (grayscaleImage.type != CV_8UC1){
+    if (grayscaleImage.type() != CV_8UC1){
         CV_Error(CV_StsUnsupportedFormat, "Blob detector only supports 8-bit images!");
     }
     vector < vector<Center> > centers;