mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 13:10:12 +08:00
Fixing errors
This commit is contained in:
parent
03662c0589
commit
d4ec359f11
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user