Comments (6)
Send that feature request to OpenCV developers.
On Feb 22, 2013, at 12:19, Peugas [email protected] wrote:
I'm trying to use cv.cornerSubPix but I'm having some error:(-210).
I'm using it almost the same way it is used in the camera calibration
sample.
This is my code:
corners_left_ = cv.findChessboardCorners(image_left, [10, 7]);
corners_left = cv.cornerSubPix(image_left, corners_left_);
where image_left is an RGB image (uint8) with the hole chessboard.
Error using cv.cornerSubPix
Unexpected Standard exception from MEX file.
What()
is:/home/tiago/Downloads/OpenCV-2.4.3/modules/imgproc/src/cornersubpix.cpp:70:
error: (-210) The source image must be 8-bit single-channel (CV_8UC1) in
function cvFindCornerSubPix
For me it makes no sense using a single-channel image in cv.cornerSubPix
and looking at the camera calibration sample, it is used an RGB image
(uint8).
β
Reply to this email directly or view it on
GitHubhttps://github.com//issues/46.
from mexopencv.
@peugas: you should know that cvFindChessboardCorners internally converts RGB images to grayscale..
from mexopencv.
"Send that feature request to OpenCV developers."
I'm not requesting any feature...
from mexopencv.
@peugas You're requesting the new feature for cv.cornerSubPix to accept RGB image;)
from mexopencv.
Sorry, my bad.
I didn't realized that I was supposed to provide an grayscale image to cv.cornerSubPix.
Maybe it's a good idea to change cv.cornerSubPix help file to something like:
"im: Source chessboard view. It must be an 8Βbit grayscale."
from mexopencv.
The help description is from the official OpenCV docs.
http://docs.opencv.org/modules/imgproc/doc/feature_detection.html#cornersubpix
Actually, it makes sense to me the function only takes single channel because the definition of corner in this algorithm is defined only up to a single channel (not necessarily grayscale). And the function cannot assume RGB or BGR input if multiple channels are given. It can be any color space.
As for the help description, I can add single-channel requirement. But please keep in mind that the mexopencv api is almost always based on the official OpenCV api.
from mexopencv.
Related Issues (20)
- Mexopencv using MatLab Runtime
- Using homebrew to install OpenCV==3.4.1
- windows opencv3.4.1 cmake
- Setting up mexopencv for matlab 2018b HOT 2
- No output from cv.getBuildInformation() in Octave 5.1.0
- maybe bug about the queryIdx and trainIdx
- ld: symbol(s) not found for architecture x86_64
- Invalid MEX-file : Missing dependent shared libraries
- [error 3] gcc >= 4.4 g++ >= 4.4 is installed
- v3.2.0 and xfeatures2d HOT 1
- mexopencv not compiling HOT 2
- error in setup opencv and mexopencv
- how Mac to mexopencv HOT 1
- [lib/mexopencv_features2d.o] Error 255 HOT 1
- MxArray::toMoments out of order arguments to cv::Moments
- Consider leveraging MATLAB in your CI
- MATLAB Error: Unrecognized function or variable 'FeaturesFinder_'.
- why can't I use the 'cv.detectMarkers' function???
- Hi all, I have a big problem when I am using matlab R2021a to builed mexopencv. HOT 1
- mexopencv building error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mexopencv.