I am having a bit of annoying problem with OpenCV CV_* constants for functions.
I know OpenCV has recently got rid of the CV_ for a lot of constants, however I can not find any updated documentation. And all the documentation that exits it still shows the old constants.
For example CV_BGR2GRAY has been switched to COLOUR_BGR2GRAY.
Where Can I find the new updated documentation for these constants like
CV_AA, CV_HOUGH_GRADIENT. (before someone says their original website, I have already checked and it shows older versions).
Any links would be nice.
Many thanks for your help.
Here's OpenCV 3.0 documentation:
http://docs.opencv.org/trunk/index.html
Conversion constants are described here:
http://docs.opencv.org/trunk/modules/imgproc/doc/miscellaneous_transformations.html
Related
Following these instructions, I have already managed to fix the IntelliSense suggestions for my C++ hello world program using Qt headers. So for instance, when I type QString::, the class methods append, arg, etc. are suggested correctly. However, when I choose any of them, I would expect to read a short documentation comment describing what the selected method does do. Unfortunately, this information is not available.
I have also followed this tip and installed qt5-doc on my Ubuntu system, but I have no idea how I can use the .qch documentation files in VS Code. Do you have any pointer for me?
I am trying to extract the LBPFeatures of an image using OpenCV and C++, but there seems to be no in-built function to extract the features.
Can anyone help me?
I need to find the feature points and not the histogram.
The LBP authors give an optimized C code in one of their papers: here is the link.
you can find an old implementation of OpenCV in https://github.com/bytefish/opencv/tree/master/lbp
That libraries are included in newer versions of OpenCV, but the link have an example implementation
I'm trying to compile my code with opencv 3.0.0 (that worked with previous opencv versions)
cvtColor(img, img, CV_RGB2BGR);
and get compilation error
‘CV_RGB2BGR’ was not declared in this scope
The option also does not exist in the documentation
How can I get the same functionality (RGB2BGR) with the new version?
Use constant cv::COLOR_RGB2BGR instead of CV_RGB2BGR.
It works for other convertions too, just change CV_ to cv::COLOR_ .
Just checked it it works for me.
Maybe you have a namespace issue?
The enum is defined here, and in any case, it is exactly the same as CV_BGR2RGB - it just mixes the channels. You could also use mixChannels() directly.
Be careful, OpenCV 3 is something new, it is very probable that it has changed some macros and also functions and especially functionality. More it is not a stable versions, meaning it is still in dev. I have seen that there are some other names for the macros, like COLOR_RGB2BGR. The CV_RGB2BGR seems to be in types_c.h
In OpenCV 2.4.9 there is a nice function cv::adaptiveBilateralFilter(). It is documented here http://docs.opencv.org/modules/imgproc/doc/filtering.html?highlight=bilateralfilter#adaptivebilateralfilter
In OpenCV 3 (from GIT) all references to it has been removed. Even sample code is gone.
Can anybody explain reasons for removing it. Probably some other way to use cv::bilateralFilter() as adaptive? How?
Its been removed from 2.4 because of low quality.
( search https://github.com/Itseez/opencv for 'removed ABF' ).
But anything can happen as opencv-3 is not yet released. I guess, we just have to wait for the official changelog and perhaps alternate functionality.
I have looked at the opencv 2.4 reference and I cannot find an equivalent of snakeImage. Therefore what other methods can I implement to achieve the same result?
Many Thanks
You can use the definition of the snake of previous releases (eg. opencv2.0).
snake opencv 2.0
It works efficiently.
This is one approach: Active Contour (Snake) with OpenCV
But search on Google, you'll find more interesting results.
It was moved to legacy.
Python binding: cv2.cv.SnakeImage()