findCirclesGridDefault doesn't work on Android
Is there some bug in the OpenCV android library that is making this function crash? I keep getting this error:
04-09 19:31:11.094: E/cv::error()(32451): OpenCV Error: Unsupported format or combination of formats (Blob detector only supports 8-bit images!) in virtual void cv::SimpleBlobDetector::detectImpl(const cv::Mat&, std::vector<cv::KeyPoint>&, const cv::Mat&) const, file /hdd2/buildbot/slaves/slave_ardbeg1/50-SDK/opencv/modules/features2d/src/blobdetector.cpp, line 286
04-09 19:31:11.094: E/org.opencv.calib3d(32451): calib3d::findCirclesGridDefault_11() caught cv::Exception: /hdd2/buildbot/slaves/slave_ardbeg1/50-SDK/opencv/modules/features2d/src/blobdetector.cpp:286: error: (-210) Blob detector only supports 8-bit images! in function virtual void cv::SimpleBlobDetector::detectImpl(const cv::Mat&, std::vector<cv::KeyPoint>&, const cv::Mat&) const
The line that it fails on in the code is this:
mPatternWasFound = Calib3d.findCirclesGridDefault(grayFrame, mPatternSize,
mCorners, Calib3d.CALIB_CB_ASYMMETRIC_GRID);
I'm using OpenCV library 2.4.11