Fixing errors

This commit is contained in:
StevenPuttemans 2014-09-22 22:12:27 +02:00
parent 03662c0589
commit d4ec359f11

View 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;