Giter Site home page Giter Site logo

opencv / opencv_contrib Goto Github PK

View Code? Open in Web Editor NEW
9.1K 386.0 5.7K 149.13 MB

Repository for OpenCV's extra modules

License: Apache License 2.0

CMake 0.56% C++ 87.87% TeX 0.28% C 0.84% Python 1.66% MATLAB 0.08% Cuda 7.83% Shell 0.18% Java 0.14% Objective-C++ 0.03% Jupyter Notebook 0.07% Assembly 0.33% Julia 0.12% Dockerfile 0.01%
opencv

opencv_contrib's Introduction

OpenCV: Open Source Computer Vision Library

Resources

Contributing

Please read the contribution guidelines before starting work on a pull request.

Summary of the guidelines:

  • One pull request per issue;
  • Choose the right base branch;
  • Include tests and documentation;
  • Clean up "oops" commits before submitting;
  • Follow the coding style guide.

Additional Resources

opencv_contrib's People

Contributors

alalek avatar albenoit avatar aleksandrpanov avatar arrybn avatar asmorkalov avatar auron-x avatar bellaktris avatar berak avatar cbalint13 avatar cudawarped avatar cv3d avatar dkurt avatar garybradski avatar jiuerbujie avatar kurnianggoro avatar laurentberger avatar lluisgomez avatar mirceamp avatar mshabunin avatar nailbiter avatar nmoutinho avatar paroj avatar sghoshcvc avatar sovrasov avatar sturkmen72 avatar tomoaki0705 avatar vlad-shakhuro avatar vladx avatar vpisarev avatar wangyida avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

opencv_contrib's Issues

Building OpenCV 3.0.0-beta contrib text sample application

I am trying to build the sample applications from opencv-3.0.0-beta with opencv_contrib-3.0.0-beta.

Here is what I have done

  1. Downloaded and unzipped: https://github.com/Itseez/opencv/tree/3.0.0-beta to /home/me/opencv
  2. Downloaded and unzipped https://github.com/Itseez/opencv_contrib/tree/3.0.0-beta to /home/me/opencv
  3. mkdir /home/me/opencv/opencv-3.0.0-beta/build
  4. cd /home/me/opencv/opencv-3.0.0-beta/build
  5. cmake -DOPENCV_EXTRA_MODULES_PATH=/home/me/opencv/opencv_contrib-3.0.0-beta/modules /home/me/opencv/opencv-3.0.0-beta
  6. make -j5
    The above works perfectly, no errors.

However I was expecting the sample applications to build, the only one I really care about is: /home/me/opencv/opencv_contrib-3.0.0-beta/modules/text/

I have tried building it with the following steps

  1. cd /home/me/opencv/opencv_contrib-3.0.0-beta/modules/text/

  2. sudo cmake .
    However I get an error, here is the output I get!

    -- Tesseract: NO CMake Error at CMakeLists.txt:21 (ocv_define_module): Unknown CMake command "ocv_define_module".

    CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as

    cmake_minimum_required(VERSION 2.8)
    should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it.

    -- Configuring incomplete, errors occurred!

Test this repository with Travis-CI

I want to try to test this repo using Travis-CI. I think it is possible, since right now we only several modules, so tests shouldn't take too much time.

Also, it will be tested on Ubuntu Linux only (but with GCC and Clang), but it is better than nothing (what we have right now).

Reference to non-existent field 'rootfilters'

Hi,

When I run the script on 'person_final.mat' of VOC2010 models as:

mat2xml('person_final.mat','person.xml')

it give me the error:
Reference to non-existent field 'rootfilters'.

Please help me solve this error. Thank you.

cannot build opencv with modules

Hi there

thanks for the great work on opencv! I'm facing the following problem
Linking CXX shared library ../../lib/libopencv_xobjdetect.so
/usr/bin/ld: cannot find -lWRAP
/usr/bin/ld: cannot find -lpython
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libopencv_xobjdetect.so.3.0.0] Error 1
make[1]: *** [modules/xobjdetect/CMakeFiles/opencv_xobjdetect.dir/all] Error 2
make: *** [all] Error 2

any ideas?

Issue deallocate: Ptr<OCRTesseract>

Hi,
like the title, in all two sample, the object Ptr present issue when program end: in memory deallocation phase.

My system configuration is:

  • Win 8.1
  • VS2013
  • OpenCV 3 beta.

error is:
HEAP CORRUPTION DETECTED

I have not this error if declare static Ptr and run app in release mode.

Sorry for my English.
Nicola

I have attached screenshot error.
image

computeSaliency does not get correct results

i use BING as algorithm type to compute the boundingbox of an image, the sample project "computeSaliency" runs fine ,but the result is not ok, it gets too many boxes.

i painted the results on the source image ,like this
objectness

i compile opencv contrib with opencv 3.0, i wonder to know has anyone successfully run the example and get right results? what the problem may i meet?

Two issues in utils.cpp (datasets modul) when building with mingw-w64

Hi,

building with mingw-w64 leads to:

too many arguments to function int mkdir (const char*)

and:

alphasort was not declared in this scope

Possible solutions:

  • First error
void createDirectory(const string &path)
{
#if defined __GNUC__ && !defined __MINGW32__
    mkdir(path.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
#else
    mkdir(path.c_str());
#endif
}

  • Second error
void getDirList(const string &dirName, vector<string> &fileNames)
{
#if defined __GNUC__ && !defined __MINGW32__
...
#else // for WIN32
...

Error make OpenCV v3.0.0 master branch + extra modules (linux)

I am trying to build OpenCV from the master branch with extra modules enabled, both in the latest versions, but compilation fails with the following error:

 14%] Built target pch_Generate_opencv_objdetect
Scanning dependencies of target pch_Generate_opencv_xobjdetect
[ 14%] Generating precomp.hpp
[ 14%] Generating precomp.hpp.gch/opencv_xobjdetect_Release.gch
[ 14%] In file included from /usr/include/opencv2/ximgproc.hpp:40:0,
                 from /home/tt/Desktop/packages/opencv-git/src/opencv/modules/ximgproc/precomp.hpp:49:
/usr/include/opencv2/ximgproc/edge_filter.hpp:220:30: error: ‘SigmaS’ has not been declared
     CV_PURE_PROPERTY(double, SigmaS)
                              ^
/usr/include/opencv2/ximgproc/edge_filter.hpp:220:36: error: expected ‘;’ at end of member declaration
     CV_PURE_PROPERTY(double, SigmaS)
                                    ^
/usr/include/opencv2/ximgproc/edge_filter.hpp:221:30: error: ‘SigmaR’ has not been declared
     CV_PURE_PROPERTY(double, SigmaR)
                              ^
/usr/include/opencv2/ximgproc/edge_filter.hpp:221:36: error: expected ‘;’ at end of member declaration
     CV_PURE_PROPERTY(double, SigmaR)
                                    ^
/usr/include/opencv2/ximgproc/edge_filter.hpp:221:5: error: ‘int cv::ximgproc::AdaptiveManifoldFilter::CV_PURE_PROPERTY(double, int)’ cannot be overloaded
     CV_PURE_PROPERTY(double, SigmaR)
     ^
/usr/include/opencv2/ximgproc/edge_filter.hpp:220:5: error: with ‘int cv::ximgproc::AdaptiveManifoldFilter::CV_PURE_PROPERTY(double, int)’
     CV_PURE_PROPERTY(double, SigmaS)
     ^
/usr/include/opencv2/ximgproc/edge_filter.hpp:222:27: error: ‘TreeHeight’ has not been declared
     CV_PURE_PROPERTY(int, TreeHeight)
                           ^
/usr/include/opencv2/ximgproc/edge_filter.hpp:222:37: error: expected ‘;’ at end of member declaration
     CV_PURE_PROPERTY(int, TreeHeight)
                                     ^
/usr/include/opencv2/ximgproc/edge_filter.hpp:223:27: error: ‘PCAIterations’ has not been declared
     CV_PURE_PROPERTY(int, PCAIterations)
                           ^
/usr/include/opencv2/ximgproc/edge_filter.hpp:223:40: error: expected ‘;’ at end of member declaration
     CV_PURE_PROPERTY(int, PCAIterations)
                                        ^
/usr/include/opencv2/ximgproc/edge_filter.hpp:223:5: error: ‘int cv::ximgproc::AdaptiveManifoldFilter::CV_PURE_PROPERTY(int, int)’ cannot be overloaded
     CV_PURE_PROPERTY(int, PCAIterations)
     ^
/usr/include/opencv2/ximgproc/edge_filter.hpp:222:5: error: with ‘int cv::ximgproc::AdaptiveManifoldFilter::CV_PURE_PROPERTY(int, int)’
     CV_PURE_PROPERTY(int, TreeHeight)
     ^
/usr/include/opencv2/ximgproc/edge_filter.hpp:224:28: error: ‘AdjustOutliers’ has not been declared
     CV_PURE_PROPERTY(bool, AdjustOutliers)
                            ^
/usr/include/opencv2/ximgproc/edge_filter.hpp:224:42: error: expected ‘;’ at end of member declaration
     CV_PURE_PROPERTY(bool, AdjustOutliers)
                                          ^
/usr/include/opencv2/ximgproc/edge_filter.hpp:225:28: error: ‘UseRNG’ has not been declared
     CV_PURE_PROPERTY(bool, UseRNG)
                            ^
/usr/include/opencv2/ximgproc/edge_filter.hpp:225:34: error: expected ‘;’ at end of member declaration
     CV_PURE_PROPERTY(bool, UseRNG)
                                  ^
/usr/include/opencv2/ximgproc/edge_filter.hpp:225:5: error: ‘int cv::ximgproc::AdaptiveManifoldFilter::CV_PURE_PROPERTY(bool, int)’ cannot be overloaded
     CV_PURE_PROPERTY(bool, UseRNG)
     ^
/usr/include/opencv2/ximgproc/edge_filter.hpp:224:5: error: with ‘int cv::ximgproc::AdaptiveManifoldFilter::CV_PURE_PROPERTY(bool, int)’
     CV_PURE_PROPERTY(bool, AdjustOutliers)
     ^
Built target pch_Generate_opencv_superres
Scanning dependencies of target pch_Generate_opencv_bgsegm
[ 14%] Generating precomp.hpp
[ 14%] Generating precomp.hpp.gch/opencv_bgsegm_Release.gch
[ 14%] Built target pch_Generate_opencv_xobjdetect
Scanning dependencies of target pch_Generate_opencv_bioinspired
[ 14%] Generating precomp.hpp
[ 14%] Generating precomp.hpp.gch/opencv_bioinspired_Release.gch
[ 14%] Built target pch_Generate_opencv_bgsegm
Scanning dependencies of target pch_Generate_opencv_features2d
[ 14%] Generating precomp.hpp
[ 14%] Generating precomp.hpp.gch/opencv_features2d_Release.gch
modules/ximgproc/CMakeFiles/pch_Generate_opencv_ximgproc.dir/build.make:53: recipe for target 'modules/ximgproc/precomp.hpp.gch/opencv_ximgproc_Release.gch' failed
make[2]: *** [modules/ximgproc/precomp.hpp.gch/opencv_ximgproc_Release.gch] Error 1
CMakeFiles/Makefile2:4829: recipe for target 'modules/ximgproc/CMakeFiles/pch_Generate_opencv_ximgproc.dir/all' failed
make[1]: *** [modules/ximgproc/CMakeFiles/pch_Generate_opencv_ximgproc.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 14%] Built target pch_Generate_opencv_ts
[ 14%] Built target pch_Generate_opencv_tracking
[ 14%] Built target pch_Generate_opencv_bioinspired
[ 14%] Built target pch_Generate_opencv_features2d
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

any idea?

Sample from modules/reg/samples/map_test.cpp does not compile

Hi Kiril,

Sorry if i assigned the issue to you but the author Alfonso (alfonsosanchezbeato ) does not appear in the assignies list.

this sample does not compile.

First, you should change your includes referring to opencv modules
For example: replace

#include <opencv2/highgui/highgui.hpp>
by
#include <opencv2/highgui.hpp> // but note that teire are two similar lines including highgui

Here is the compiler errors i have with the original submission

[ 75%] Built target opencv_reg
Scanning dependencies of target example_reg_map_test
[ 75%] Building CXX object modules/reg/CMakeFiles/example_reg_map_test.dir/samples/map_test.cpp.o
In file included from /home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:43:0:
/home/noob/install/OpenCV/github/opencv/modules/highgui/include/opencv2/highgui/highgui.hpp:45:2: error: #error this is a compatibility header which should not be used inside the OpenCV library
 #error this is a compatibility header which should not be used inside the OpenCV library
  ^
In file included from /home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:44:0:
/home/noob/install/OpenCV/github/opencv/modules/imgproc/include/opencv2/imgproc/imgproc.hpp:45:2: error: #error this is a compatibility header which should not be used inside the OpenCV library
 #error this is a compatibility header which should not be used inside the OpenCV library
  ^
In file included from /home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:45:0:
/usr/local/include/opencv2/features2d/features2d.hpp:45:2: error: #error this is a compatibility header which should not be used inside the OpenCV library
 #error this is a compatibility header which should not be used inside the OpenCV library
  ^
In file included from /home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:46:0:
/usr/local/include/opencv2/nonfree/nonfree.hpp:45:2: error: #error this is a compatibility header which should not be used inside the OpenCV library
 #error this is a compatibility header which should not be used inside the OpenCV library
  ^
In file included from /home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:47:0:
/usr/local/include/opencv2/calib3d/calib3d.hpp:45:2: error: #error this is a compatibility header which should not be used inside the OpenCV library
 #error this is a compatibility header which should not be used inside the OpenCV library
  ^
In file included from /home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:48:0:
/home/noob/install/OpenCV/github/opencv/modules/imgproc/include/opencv2/imgproc/imgproc.hpp:45:2: error: #error this is a compatibility header which should not be used inside the OpenCV library
 #error this is a compatibility header which should not be used inside the OpenCV library
  ^
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp: In function ‘void showDifference(const cv::Mat&, const cv::Mat&, const char*)’:
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:68:6: warning: no previous declaration for ‘void showDifference(const cv::Mat&, const cv::Mat&, const char*)’ [-Wmissing-declarations]
 void showDifference(const Mat& image1, const Mat& image2, const char* title)
      ^
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp: In function ‘void testShift(const cv::Mat&)’:
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:89:6: warning: no previous declaration for ‘void testShift(const cv::Mat&)’ [-Wmissing-declarations]
 void testShift(const Mat& img1)
      ^
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp: In function ‘void testEuclidean(const cv::Mat&)’:
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:121:6: warning: no previous declaration for ‘void testEuclidean(const cv::Mat&)’ [-Wmissing-declarations]
 void testEuclidean(const Mat& img1)
      ^
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp: In function ‘void testSimilarity(const cv::Mat&)’:
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:159:6: warning: no previous declaration for ‘void testSimilarity(const cv::Mat&)’ [-Wmissing-declarations]
 void testSimilarity(const Mat& img1)
      ^
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp: In function ‘void testAffine(const cv::Mat&)’:
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:198:6: warning: no previous declaration for ‘void testAffine(const cv::Mat&)’ [-Wmissing-declarations]
 void testAffine(const Mat& img1)
      ^
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp: In function ‘void testProjective(const cv::Mat&)’:
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:233:6: warning: no previous declaration for ‘void testProjective(const cv::Mat&)’ [-Wmissing-declarations]
 void testProjective(const Mat& img1)
      ^
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp: In function ‘void calcHomographyFeature(const cv::Mat&, const cv::Mat&)’:
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:270:6: warning: no previous declaration for ‘void calcHomographyFeature(const cv::Mat&, const cv::Mat&)’ [-Wmissing-declarations]
 void calcHomographyFeature(const Mat& image1, const Mat& image2)
      ^
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp: In function ‘void calcHomographyPixel(const cv::Mat&, const cv::Mat&)’:
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:352:6: warning: no previous declaration for ‘void calcHomographyPixel(const cv::Mat&, const cv::Mat&)’ [-Wmissing-declarations]
 void calcHomographyPixel(const Mat& img1, const Mat& img2)
      ^
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp: In function ‘void comparePixelVsFeature(const cv::Mat&, const cv::Mat&)’:
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:373:6: warning: no previous declaration for ‘void comparePixelVsFeature(const cv::Mat&, const cv::Mat&)’ [-Wmissing-declarations]
 void comparePixelVsFeature(const Mat& img1_8b, const Mat& img2_8b)
      ^
make[2]: *** [modules/reg/CMakeFiles/example_reg_map_test.dir/samples/map_test.cpp.o] Erreur 1
make[1]: *** [modules/reg/CMakeFiles/example_reg_map_test.dir/all] Erreur 2
make: *** [all] Erreur 2

Now, if i correct the includes

I got these problems : code warnings and liker error (you should specifiy which module to link to in the config files)

Scanning dependencies of target example_reg_map_test
[ 75%] Building CXX object modules/reg/CMakeFiles/example_reg_map_test.dir/samples/map_test.cpp.o
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp: In function ‘void showDifference(const cv::Mat&, const cv::Mat&, const char*)’:
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:68:6: warning: no previous declaration for ‘void showDifference(const cv::Mat&, const cv::Mat&, const char*)’ [-Wmissing-declarations]
 void showDifference(const Mat& image1, const Mat& image2, const char* title)
      ^
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp: In function ‘void testShift(const cv::Mat&)’:
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:89:6: warning: no previous declaration for ‘void testShift(const cv::Mat&)’ [-Wmissing-declarations]
 void testShift(const Mat& img1)
      ^
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp: In function ‘void testEuclidean(const cv::Mat&)’:
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:121:6: warning: no previous declaration for ‘void testEuclidean(const cv::Mat&)’ [-Wmissing-declarations]
 void testEuclidean(const Mat& img1)
      ^
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp: In function ‘void testSimilarity(const cv::Mat&)’:
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:159:6: warning: no previous declaration for ‘void testSimilarity(const cv::Mat&)’ [-Wmissing-declarations]
 void testSimilarity(const Mat& img1)
      ^
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp: In function ‘void testAffine(const cv::Mat&)’:
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:198:6: warning: no previous declaration for ‘void testAffine(const cv::Mat&)’ [-Wmissing-declarations]
 void testAffine(const Mat& img1)
      ^
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp: In function ‘void testProjective(const cv::Mat&)’:
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:233:6: warning: no previous declaration for ‘void testProjective(const cv::Mat&)’ [-Wmissing-declarations]
 void testProjective(const Mat& img1)
      ^
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp: In function ‘void calcHomographyFeature(const cv::Mat&, const cv::Mat&)’:
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:270:6: warning: no previous declaration for ‘void calcHomographyFeature(const cv::Mat&, const cv::Mat&)’ [-Wmissing-declarations]
 void calcHomographyFeature(const Mat& image1, const Mat& image2)
      ^
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp: In function ‘void calcHomographyPixel(const cv::Mat&, const cv::Mat&)’:
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:352:6: warning: no previous declaration for ‘void calcHomographyPixel(const cv::Mat&, const cv::Mat&)’ [-Wmissing-declarations]
 void calcHomographyPixel(const Mat& img1, const Mat& img2)
      ^
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp: In function ‘void comparePixelVsFeature(const cv::Mat&, const cv::Mat&)’:
/home/noob/install/OpenCV/github/opencv_contrib/modules/reg/samples/map_test.cpp:373:6: warning: no previous declaration for ‘void comparePixelVsFeature(const cv::Mat&, const cv::Mat&)’ [-Wmissing-declarations]
 void comparePixelVsFeature(const Mat& img1_8b, const Mat& img2_8b)
      ^
Linking CXX executable ../../bin/example_reg_map_test
CMakeFiles/example_reg_map_test.dir/samples/map_test.cpp.o: dans la fonction « calcHomographyFeature(cv::Mat const&, cv::Mat const&) »:
map_test.cpp:(.text+0x72f9): référence indéfinie vers « cv::SURF::SURF(double, int, int, bool, bool) »
map_test.cpp:(.text+0x7396): référence indéfinie vers « cv::FeatureDetector::detect(cv::_InputArray const&, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >&, cv::_InputArray const&) const »
map_test.cpp:(.text+0x73f3): référence indéfinie vers « cv::FeatureDetector::detect(cv::_InputArray const&, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >&, cv::_InputArray const&) const »
map_test.cpp:(.text+0x7400): référence indéfinie vers « cv::SURF::SURF() »
map_test.cpp:(.text+0x7592): référence indéfinie vers « cv::Feature2D::compute(cv::_InputArray const&, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >&, cv::_OutputArray const&) const »
map_test.cpp:(.text+0x762c): référence indéfinie vers « cv::Feature2D::compute(cv::_InputArray const&, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >&, cv::_OutputArray const&) const »
map_test.cpp:(.text+0x764f): référence indéfinie vers « cv::flann::SearchParams::SearchParams(int, float, bool) »
map_test.cpp:(.text+0x7698): référence indéfinie vers « cv::flann::KDTreeIndexParams::KDTreeIndexParams(int) »
map_test.cpp:(.text+0x76e6): référence indéfinie vers « cv::FlannBasedMatcher::FlannBasedMatcher(cv::Ptr<cv::flann::IndexParams> const&, cv::Ptr<cv::flann::SearchParams> const&) »
map_test.cpp:(.text+0x77e9): référence indéfinie vers « cv::DescriptorMatcher::match(cv::_InputArray const&, cv::_InputArray const&, std::vector<cv::DMatch, std::allocator<cv::DMatch> >&, cv::_InputArray const&) const »
map_test.cpp:(.text+0x7e6e): référence indéfinie vers « cv::findHomography(cv::_InputArray const&, cv::_InputArray const&, int, double, cv::_OutputArray const&) »
map_test.cpp:(.text+0x87df): référence indéfinie vers « vtable for cv::FlannBasedMatcher »
map_test.cpp:(.text+0x87e8): référence indéfinie vers « cv::DescriptorMatcher::DescriptorCollection::~DescriptorCollection() »
map_test.cpp:(.text+0x8885): référence indéfinie vers « cv::DescriptorMatcher::~DescriptorMatcher() »
map_test.cpp:(.text+0x8984): référence indéfinie vers « VTT for cv::SURF »
map_test.cpp:(.text+0x898b): référence indéfinie vers « VTT for cv::SURF »
map_test.cpp:(.text+0x8990): référence indéfinie vers « VTT for cv::SURF »
map_test.cpp:(.text+0x8997): référence indéfinie vers « VTT for cv::SURF »
map_test.cpp:(.text+0x89c4): référence indéfinie vers « cv::DescriptorExtractor::~DescriptorExtractor() »
map_test.cpp:(.text+0x89d1): référence indéfinie vers « VTT for cv::SURF »
map_test.cpp:(.text+0x89d6): référence indéfinie vers « cv::FeatureDetector::~FeatureDetector() »
map_test.cpp:(.text+0x8a18): référence indéfinie vers « VTT for cv::SURF »
map_test.cpp:(.text+0x8a39): référence indéfinie vers « cv::DescriptorExtractor::~DescriptorExtractor() »
map_test.cpp:(.text+0x8a46): référence indéfinie vers « VTT for cv::SURF »
map_test.cpp:(.text+0x8a4b): référence indéfinie vers « cv::FeatureDetector::~FeatureDetector() »
map_test.cpp:(.text+0x8d24): référence indéfinie vers « cv::DescriptorMatcher::~DescriptorMatcher() »
map_test.cpp:(.text+0x8ec4): référence indéfinie vers « VTT for cv::SURF »
map_test.cpp:(.text+0x8ecc): référence indéfinie vers « cv::FeatureDetector::~FeatureDetector() »
map_test.cpp:(.text+0x8fe2): référence indéfinie vers « VTT for cv::SURF »
map_test.cpp:(.text+0x8fea): référence indéfinie vers « cv::FeatureDetector::~FeatureDetector() »
CMakeFiles/example_reg_map_test.dir/samples/map_test.cpp.o: dans la fonction « cv::SURF::~SURF() »:
map_test.cpp:(.text._ZN2cv4SURFD1Ev[_ZN2cv4SURFD1Ev]+0x2): référence indéfinie vers « VTT for cv::SURF »
map_test.cpp:(.text._ZN2cv4SURFD1Ev[_ZN2cv4SURFD1Ev]+0x15): référence indéfinie vers « VTT for cv::SURF »
map_test.cpp:(.text._ZN2cv4SURFD1Ev[_ZN2cv4SURFD1Ev]+0x1c): référence indéfinie vers « VTT for cv::SURF »
map_test.cpp:(.text._ZN2cv4SURFD1Ev[_ZN2cv4SURFD1Ev]+0x30): référence indéfinie vers « VTT for cv::SURF »
map_test.cpp:(.text._ZN2cv4SURFD1Ev[_ZN2cv4SURFD1Ev]+0x38): référence indéfinie vers « cv::DescriptorExtractor::~DescriptorExtractor() »
map_test.cpp:(.text._ZN2cv4SURFD1Ev[_ZN2cv4SURFD1Ev]+0x3d): référence indéfinie vers « VTT for cv::SURF »
map_test.cpp:(.text._ZN2cv4SURFD1Ev[_ZN2cv4SURFD1Ev]+0x45): référence indéfinie vers « cv::FeatureDetector::~FeatureDetector() »
map_test.cpp:(.text._ZN2cv4SURFD1Ev[_ZN2cv4SURFD1Ev]+0x5b): référence indéfinie vers « VTT for cv::SURF »
map_test.cpp:(.text._ZN2cv4SURFD1Ev[_ZN2cv4SURFD1Ev]+0x66): référence indéfinie vers « cv::FeatureDetector::~FeatureDetector() »
CMakeFiles/example_reg_map_test.dir/samples/map_test.cpp.o: dans la fonction « cv::detail::PtrOwnerImpl<cv::flann::SearchParams, cv::DefaultDeleter<cv::flann::SearchParams> >::deleteSelf() »:
map_test.cpp:(.text._ZN2cv6detail12PtrOwnerImplINS_5flann12SearchParamsENS_14DefaultDeleterIS3_EEE10deleteSelfEv[_ZN2cv6detail12PtrOwnerImplINS_5flann12SearchParamsENS_14DefaultDeleterIS3_EEE10deleteSelfEv]+0x16): référence indéfinie vers « cv::flann::IndexParams::~IndexParams() »
CMakeFiles/example_reg_map_test.dir/samples/map_test.cpp.o: dans la fonction « cv::detail::PtrOwnerImpl<cv::flann::KDTreeIndexParams, cv::DefaultDeleter<cv::flann::KDTreeIndexParams> >::deleteSelf() »:
map_test.cpp:(.text._ZN2cv6detail12PtrOwnerImplINS_5flann17KDTreeIndexParamsENS_14DefaultDeleterIS3_EEE10deleteSelfEv[_ZN2cv6detail12PtrOwnerImplINS_5flann17KDTreeIndexParamsENS_14DefaultDeleterIS3_EEE10deleteSelfEv]+0x16): référence indéfinie vers « cv::flann::IndexParams::~IndexParams() »
CMakeFiles/example_reg_map_test.dir/samples/map_test.cpp.o: dans la fonction « cv::FlannBasedMatcher::~FlannBasedMatcher() »:
map_test.cpp:(.text._ZN2cv17FlannBasedMatcherD2Ev[_ZN2cv17FlannBasedMatcherD5Ev]+0x11): référence indéfinie vers « vtable for cv::FlannBasedMatcher »
map_test.cpp:(.text._ZN2cv17FlannBasedMatcherD2Ev[_ZN2cv17FlannBasedMatcherD5Ev]+0x16): référence indéfinie vers « cv::DescriptorMatcher::DescriptorCollection::~DescriptorCollection() »
map_test.cpp:(.text._ZN2cv17FlannBasedMatcherD2Ev[_ZN2cv17FlannBasedMatcherD5Ev]+0xc2): référence indéfinie vers « cv::DescriptorMatcher::~DescriptorMatcher() »
map_test.cpp:(.text._ZN2cv17FlannBasedMatcherD2Ev[_ZN2cv17FlannBasedMatcherD5Ev]+0x84): référence indéfinie vers « cv::DescriptorMatcher::~DescriptorMatcher() »
CMakeFiles/example_reg_map_test.dir/samples/map_test.cpp.o: dans la fonction « cv::FlannBasedMatcher::~FlannBasedMatcher() »:
map_test.cpp:(.text._ZN2cv17FlannBasedMatcherD0Ev[_ZN2cv17FlannBasedMatcherD0Ev]+0x11): référence indéfinie vers « vtable for cv::FlannBasedMatcher »
map_test.cpp:(.text._ZN2cv17FlannBasedMatcherD0Ev[_ZN2cv17FlannBasedMatcherD0Ev]+0x16): référence indéfinie vers « cv::DescriptorMatcher::DescriptorCollection::~DescriptorCollection() »
map_test.cpp:(.text._ZN2cv17FlannBasedMatcherD0Ev[_ZN2cv17FlannBasedMatcherD0Ev]+0x7e): référence indéfinie vers « cv::DescriptorMatcher::~DescriptorMatcher() »
map_test.cpp:(.text._ZN2cv17FlannBasedMatcherD0Ev[_ZN2cv17FlannBasedMatcherD0Ev]+0xc2): référence indéfinie vers « cv::DescriptorMatcher::~DescriptorMatcher() »
collect2: error: ld returned 1 exit status
make[2]: *** [bin/example_reg_map_test] Erreur 1
make[1]: *** [modules/reg/CMakeFiles/example_reg_map_test.dir/all] Erreur 2
make: *** [all] Erreur 2

With IPP, text detection sample fails with floating point exception.

The exception happens only when I build opencv with IPP option on. It succeeds when I build with IPP option off.

$ DYLD_LIBRARY_PATH=/usr/local/opencv-20140730/lib; gdb ./a.out GNU gdb 6.3.50-20050815 (Apple version gdb-1824) (Wed Feb  6 22:51:23 UTC 2013)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ........
warning: .o file "/Users/xxxx/workspace/opencv/build/modules/imgcodecs/../../3rdparty/lib/liblibwebp.a(alpha.c.o)" more recent than executable timestamp in "/usr/local/opencv-20140730/lib/libopencv_imgcodecs.3.0.0.dylib"

...

(gdb) run scenetext01.jpg 
Starting program: /Users/xxxx/workspace/opencv_contrib/modules/text/samples/a.out scenetext01.jpg
Reading symbols for shared libraries ++++++++++........................................bfd_mach_o_scan_read_symtab_symbol: symbol "_bzero" is unsupported 'indirect' reference: setting to undefined

...

Extracting Class Specific Extremal Regions from 9 channels ...
    (...) this may take a while (...)


Program received signal EXC_ARITHMETIC, Arithmetic exception.
0x0000000100249a3c in cv::meanStdDev (_src=@0x7fff5fbface0, _mean=@0x7fff5fbfac60, _sdv=@0x7fff5fbfac40, _mask=@0x100849f98) at /Users/xxxx/workspace/opencv/modules/core/src/stat.cpp:1038
1038        int rows = src.size[0], cols = (int)(total_size/rows);
(gdb) bt
#0  0x0000000100249a3c in cv::meanStdDev (_src=@0x7fff5fbface0, _mean=@0x7fff5fbfac60, _sdv=@0x7fff5fbfac40, _mask=@0x100849f98) at /Users/xxxx/workspace/opencv/modules/core/src/stat.cpp:1038
#1  0x0000000101a67361 in cv::text::erGrouping (_src=@0x7fff5fbfed90, regions=@0x7fff5fbfee10, filename=@0x7fff5fbfed78, minProbability=0.5, text_boxes=@0x7fff5fbfedb0) at /Users/xxxx/workspace/opencv_contrib/modules/text/src/erfilter.cpp:3110
#2  0x000000010000238d in main (argc=2, argv=0x7fff5fbff768) at textdetection.cpp:63
(gdb) list
1033    
1034        int k, cn = src.channels(), depth = src.depth();
1035    
1036    #if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
1037        size_t total_size = src.total();
1038        int rows = src.size[0], cols = (int)(total_size/rows);
1039        if( src.dims == 2 || (src.isContinuous() && mask.isContinuous() && cols > 0 && (size_t)rows*cols == total_size) )
1040        {
1041            Ipp64f mean_temp[3];
1042            Ipp64f stddev_temp[3];
(gdb) frame 1
#1  0x0000000101a67361 in cv::text::erGrouping (_src=@0x7fff5fbfed90, regions=@0x7fff5fbfee10, filename=@0x7fff5fbfed78, minProbability=0.5, text_boxes=@0x7fff5fbfedb0) at /Users/xxxx/workspace/opencv_contrib/modules/text/src/erfilter.cpp:3110
3110                meanStdDev(Mat(edge_distances),dist_mean, dist_std);
(gdb) list
3105                else
3106                    data_arrays.at(i).push_back((float)horiz_edges/(horiz_edges+non_horiz_edges));
3107    
3108                // remove groups where objects are not equidistant enough
3109                Scalar dist_mean, dist_std;
3110                meanStdDev(Mat(edge_distances),dist_mean, dist_std);
3111                if (dist_std[0] == 0)
3112                    data_arrays.at(i).push_back(0.f);
3113                else
3114                    data_arrays.at(i).push_back((float)(dist_std[0]/dist_mean[0]));

Building system on branch master fails, while 2.4 branch works

After trying to debug this for several hours, I ask for your help:

The cvv module builds fine against the opencv 2.4 branch.
After updating cvv for opencv master branch (see cvv_opencv_3.0.0 branch https://github.com/andreasBihlmaier/opencv_contrib/tree/cvv_opencv_3.0.0),
it compiles just fine against current master with an external CMakeLists.txt (https://github.com/CVVisualPSETeam/CVVisual/blob/master/CMakeLists.txt).
However, building it as extra module results in a totally broken libopencv_cvv.so [1], which manifests itself as a linker error for the cvv example [2]. I hope the diff shows why I believe this to be a problem in the opencv build system and not in the cvv module (the compare version works with the 2.4 branch): andreasBihlmaier/opencv_contrib@andreasBihlmaier:cvv_fix_docs...cvv_opencv_3.0.0

[1]:

> objdump -tT lib/libopencv_cvv.so | grep showImage
0000000000046ea0 l     F .text  000000000000000c              _ZN3cvv4impl9showImageERKN2cv11_InputArrayERKNS0_12CallMetaDataEPKcS9_
> objdump -tT lib/libopencv_cvv.so | grep showImage | c++filt
0000000000046ea0 l     F .text  000000000000000c              cvv::impl::showImage(cv::_InputArray const&, cvv::impl::CallMetaData const&, char const*, char const*)

> readelf -Ws lib/libopencv_cvv.so | grep showImage
2642: 0000000000046ea0    12 FUNC    LOCAL  DEFAULT   11 _ZN3cvv4impl9showImageERKN2cv11_InputArrayERKNS0_12CallMetaDataEPKcS9_
> readelf -Ws lib/libopencv_cvv.so | grep showImage | c++filt
2642: 0000000000046ea0    12 FUNC    LOCAL  DEFAULT   11 cvv::impl::showImage(cv::_InputArray const&, cvv::impl::CallMetaData const&, char const*, char const*)


> nm -D -C lib/libopencv_cvv.so | grep -i showimage
#nothing


# build as extra module with master branch
> nm -D -C lib/libopencv_cvv.so | wc -l
967

# build with external CMakeLists.txt
> nm -D -C libcvvisual.so | wc -l
18544
> nm -D -C libcvvisual.so  | grep -i showimage
00000000002e4efe T cvv::gui::OverviewTable::showImages()
00000000003a309b T cvv::impl::showImage(cv::_InputArray const&, cvv::impl::CallMetaData const&, char const*, char const*)

[2]:

Linking CXX executable ../../bin/example_cvv_cvv_demo
cd /home/ahb/software/opencv/build/modules/cvv && /usr/bin/cmake -E cmake_link_script CMakeFiles/example_cvv_cvv_demo.dir/link.txt --verbose=true
/usr/bin/c++   -std=c++11   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith  -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mavx -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -std=c++11 -Wall -Wextra -pedantic -Wno-shadow -O2 -g -DNDEBUG     CMakeFiles/example_cvv_cvv_demo.dir/samples/cvv_demo.cpp.o CMakeFiles/example_cvv_cvv_demo.dir/example_cvv_cvv_demo_automoc.cpp.o  -o ../../bin/example_cvv_cvv_demo -rdynamic ../../lib/libopencv_cvv.so.3.0.0 ../../lib/libopencv_core.so.3.0.0 ../../lib/libopencv_flann.so.3.0.0 ../../lib/libopencv_imgproc.so.3.0.0 ../../lib/libopencv_imgcodecs.so.3.0.0 ../../lib/libopencv_videoio.so.3.0.0 ../../lib/libopencv_highgui.so.3.0.0 ../../lib/libopencv_ml.so.3.0.0 ../../lib/libopencv_features2d.so.3.0.0 ../../lib/libopencv_imgcodecs.so.3.0.0 ../../lib/libopencv_videoio.so.3.0.0 ../../lib/libopencv_highgui.so.3.0.0 ../../lib/libopencv_flann.so.3.0.0 ../../lib/libopencv_videoio.so.3.0.0 ../../lib/libopencv_imgcodecs.so.3.0.0 ../../lib/libopencv_imgproc.so.3.0.0 ../../lib/libopencv_ml.so.3.0.0 ../../lib/libopencv_core.so.3.0.0 -Wl,-rpath,/home/ahb/software/opencv/build/lib 
CMakeFiles/example_cvv_cvv_demo.dir/samples/cvv_demo.cpp.o: In function `debugDMatch':
/home/ahb/software/opencv_contrib/modules/cvv/include/opencv2/cvv/dmatch.hpp:36: undefined reference to `cvv::impl::debugDMatch(cv::_InputArray const&, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >, cv::_InputArray const&, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >, std::vector<cv::DMatch, std::allocator<cv::DMatch> >, cvv::impl::CallMetaData const&, char const*, char const*, bool)'
CMakeFiles/example_cvv_cvv_demo.dir/samples/cvv_demo.cpp.o: In function `showImage':
/home/ahb/software/opencv_contrib/modules/cvv/include/opencv2/cvv/show_image.hpp:29: undefined reference to `cvv::impl::showImage(cv::_InputArray const&, cvv::impl::CallMetaData const&, char const*, char const*)'
CMakeFiles/example_cvv_cvv_demo.dir/samples/cvv_demo.cpp.o: In function `debugFilter':
/home/ahb/software/opencv_contrib/modules/cvv/include/opencv2/cvv/filter.hpp:31: undefined reference to `cvv::impl::debugFilter(cv::_InputArray const&, cv::_InputArray const&, cvv::impl::CallMetaData const&, char const*, char const*)'
CMakeFiles/example_cvv_cvv_demo.dir/samples/cvv_demo.cpp.o: In function `finalShow':
/home/ahb/software/opencv_contrib/modules/cvv/include/opencv2/cvv/final_show.hpp:31: undefined reference to `cvv::impl::finalShow()'
collect2: error: ld returned 1 exit status

Compile error on RGBD modul (opencv_contrib)

Hi,
i report compile error on modules/rgbd/samples/odometry_evaluation.cpp
at line 38 and following

Here is a description :

these 3 include lines generate compile error
instead of

#include <opencv2/rgbd/rgbd.hpp>

i guess it should be

#include <opencv2/rgbd.hpp>

same remark for highgui and contrib includes

I have the following compilation error:

[ 80%] Built target opencv_rgbd
Scanning dependencies of target example_rgbd_odometry_evaluation
[ 80%] Building CXX object modules/rgbd/CMakeFiles/example_rgbd_odometry_evaluation.dir/samples/odometry_evaluation.cpp.o
/home/noob/install/OpenCV/github/opencv_contrib/modules/rgbd/samples/odometry_evaluation.cpp:36:33: fatal error: opencv2/rgbd/rgbd.hpp: Aucun fichier ou dossier de ce type
#include <opencv2/rgbd/rgbd.hpp>
^
compilation terminated.
make2: * [modules/rgbd/CMakeFiles/example_rgbd_odometry_evaluation.dir/samples/odometry_evaluation.cpp.o] Erreur 1
make1: [modules/rgbd/CMakeFiles/example_rgbd_odometry_evaluation.dir/all] Erreur 2
make: ** [all] Erreur 2

After correcting includes, i got this compile error
This must be related to missing opencv_XXX libraries links :

Scanning dependencies of target example_rgbd_odometry_evaluation
[ 80%] Building CXX object modules/rgbd/CMakeFiles/example_rgbd_odometry_evaluation.dir/samples/odometry_evaluation.cpp.o
In file included from /home/noob/install/OpenCV/github/opencv/modules/core/include/opencv2/core.hpp:56:0,
from /home/noob/install/OpenCV/github/opencv_contrib/modules/rgbd/include/opencv2/rgbd.hpp:43,
from /home/noob/install/OpenCV/github/opencv_contrib/modules/rgbd/samples/odometry_evaluation.cpp:36:
/home/noob/install/OpenCV/github/opencv/modules/core/include/opencv2/core/types.hpp: In function ‘cv::Scalar cv::operator*(const cv::Matx<_Tp, 4, 4>&, const Scalar&) [with Tp = double; cv::Scalar = cv::Scalar<double>]’:
/home/noob/install/OpenCV/github/opencv/modules/core/include/opencv2/core/types.hpp:1874:45: warning: dereferencing type-punned pointer might break strict-aliasing rules [-Wstrict-aliasing]
return reinterpret_cast<const Scalar&>(c);
^
/home/noob/install/OpenCV/github/opencv_contrib/modules/rgbd/samples/odometry_evaluation.cpp: In function ‘int main(int, char**)’:
/home/noob/install/OpenCV/github/opencv_contrib/modules/rgbd/samples/odometry_evaluation.cpp:147:55: error: conversion from ‘cv::OdometryFrame*’ to non-scalar type ‘cv::Ptr<cv::OdometryFrame>’ requested
Ptr<OdometryFrame> frame_prev = new OdometryFrame(),
^
/home/noob/install/OpenCV/github/opencv_contrib/modules/rgbd/samples/odometry_evaluation.cpp:148:59: error: conversion from ‘cv::OdometryFrame*’ to non-scalar type ‘cv::Ptr<cv::OdometryFrame>’ requested
frame_curr = new OdometryFrame();
^
/home/noob/install/OpenCV/github/opencv_contrib/modules/rgbd/samples/odometry_evaluation.cpp:209:35: error: ‘CV_BGR2GRAY’ was not declared in this scope
cvtColor(image, gray, CV_BGR2GRAY);
^
make2: * [modules/rgbd/CMakeFiles/example_rgbd_odometry_evaluation.dir/samples/odometry_evaluation.cpp.o] Erreur 1
make1: [modules/rgbd/CMakeFiles/example_rgbd_odometry_evaluation.dir/all] Erreur 2
make: ** [all] Erreur 2

[Request] Release tag for corresponding OpenCV release

Currently there is no tag/branch in opencv_contrib, which makes it hard to identify which commit to build with specific opencv version. For example, opencv_contrib (master branch as of Oct 1st, 2014) cannot be built with opencv-3.0.0-alpha. Please consider add release tag for opencv_contrib as well as opencv.

fatal error: opencv2/ts/ts.hpp: No such file or directory - on the tag 3.0.0-beta

I have opencv-3.0.0-beta downloaded and opencv_contrib checked out at the tag 3.0.0-beta.

~/projects/vk_person_photos/opencv_build_gcc> git -C ../opencv_contrib/ status
HEAD detached at 3.0.0-beta
nothing to commit, working directory clean

CMake creates the Makefile successfully with the following command

cmake ../opencv-3.0.0-beta/ -DCMAKE_BUILD_TYPE=Debug -DWITH_QT=ON -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules -G "Unix Makefiles"

But the building process (make) fails with this error:

[ 34%] Building CXX object modules/cvv/CMakeFiles/opencv_test_cvv_pch_dephelp.dir/opencv_test_cvv_pch_dephelp.cxx.o
In file included from /home/crabman/projects/vk_person_photos/opencv_build_gcc/modules/cvv/opencv_test_cvv_pch_dephelp.cxx:1:0:
/home/crabman/projects/vk_person_photos/opencv_contrib/modules/cvv/test/test_precomp.hpp:14:29: fatal error: opencv2/ts/ts.hpp: No such file or directory
 #include <opencv2/ts/ts.hpp>
                             ^
compilation terminated.
modules/cvv/CMakeFiles/opencv_test_cvv_pch_dephelp.dir/build.make:64: recipe for target 'modules/cvv/CMakeFiles/opencv_test_cvv_pch_dephelp.dir/opencv_test_cvv_pch_dephelp.cxx.o' failed

And indeed, there is a file ts.hpp in opencv-3.0.0-beta/modules/ts/include/opencv2/ts.hpp, but it's not in ts directory as written in include.

Unknown CMake command "ocv_include_modules_recurse".

I tried to build the modules the same way you have mentioned but am stuck with this error

Command :

cmake -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules ..

Error:

CMake Error at /home/tonystark/opencv_latest/opencv_contrib/modules/adas/tools/fcw_train/CMakeLists.txt:16 (ocv_include_modules_recurse):
Unknown CMake command "ocv_include_modules_recurse".

Any idea how to fix this? please help me.

cv::viz::Mesh can't load .ply files as a rendered image

I am trying to render some data from .ply files and just use these codes:

viz::Mesh objmesh;
objmesh.load("/home/wangyida/workspaceEclipse/VizRender_src/Debug/mesh.ply");

But there is nothing loaded in objmesh, and the cloud and polygons are empty, is it a bug loading some particular .ply files since it is flexible in defining conponents?

changes in Basic HAL module affect the adas module

@mshabunin this pr of yours, I guess causes the adas module in opencv_contrib to fail, right? Or it doesn't have to do anything with that.

[ 49%] [ 49%] Built target example_bioinspired_OpenEXRimages_HDR_Retina_toneMapping
Built target example_bioinspired_retinaDemo
Scanning dependencies of target opencv_line_descriptor
Scanning dependencies of target opencv_text
Scanning dependencies of target opencv_saliency
In file included from /home/tt/Desktop/packages/opencv-git/src/opencv/modules/core/include/opencv2/core.hpp:50:0,
                 from /home/tt/Desktop/packages/opencv-git/src/opencv_contrib/modules/adas/tools/fcw_train/fcw_train.cpp:21:
/home/tt/Desktop/packages/opencv-git/src/opencv/modules/core/include/opencv2/core/cvdef.h:59:30: fatal error: opencv2/hal/defs.h: No such file or directory
 #include "opencv2/hal/defs.h"
                              ^
compilation terminated.
modules/adas/tools/fcw_train/CMakeFiles/opencv_fcw_train.dir/build.make:54: recipe for target 'modules/adas/tools/fcw_train/CMakeFiles/opencv_fcw_train.dir/fcw_train.cpp.o' failed
make[2]: *** [modules/adas/tools/fcw_train/CMakeFiles/opencv_fcw_train.dir/fcw_train.cpp.o] Error 1
CMakeFiles/Makefile2:5570: recipe for target 'modules/adas/tools/fcw_train/CMakeFiles/opencv_fcw_train.dir/all' failed
make[1]: *** [modules/adas/tools/fcw_train/CMakeFiles/opencv_fcw_train.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from /home/tt/Desktop/packages/opencv-git/src/opencv/modules/core/include/opencv2/core.hpp:50:0,
                 from /home/tt/Desktop/packages/opencv-git/src/opencv_contrib/modules/adas/tools/fcw_detect/fcw_detect.cpp:11:
/home/tt/Desktop/packages/opencv-git/src/opencv/modules/core/include/opencv2/core/cvdef.h:59:30: fatal error: opencv2/hal/defs.h: No such file or directory
 #include "opencv2/hal/defs.h"
                              ^
compilation terminated.
modules/adas/tools/fcw_detect/CMakeFiles/opencv_fcw_detect.dir/build.make:54: recipe for target 'modules/adas/tools/fcw_detect/CMakeFiles/opencv_fcw_detect.dir/fcw_detect.cpp.o' failed
make[2]: *** [modules/adas/tools/fcw_detect/CMakeFiles/opencv_fcw_detect.dir/fcw_detect.cpp.o] Error 1
CMakeFiles/Makefile2:5626: recipe for target 'modules/adas/tools/fcw_detect/CMakeFiles/opencv_fcw_detect.dir/all' failed
make[1]: *** [modules/adas/tools/fcw_detect/CMakeFiles/opencv_fcw_detect.dir/all] Error 2
[ 49%] [ 49%] [ 49%] [ 49%] Building CXX object modules/text/CMakeFiles/opencv_text.dir/src/ocr_hmm_decoder.cpp.o
Building CXX object modules/line_descriptor/CMakeFiles/opencv_line_descriptor.dir/src/binary_descriptor.cpp.o
Building CXX object modules/text/CMakeFiles/opencv_text.dir/src/erfilter.cpp.o
Building CXX object modules/text/CMakeFiles/opencv_text.dir/src/ocr_tesseract.cpp.o
[ 49%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/staticSaliencySpectralResidual.cpp.o
[ 49%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/objectness.cpp.o
[ 50%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/motionSaliencyBinWangApr2014.cpp.o
[ 50%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/motionSaliency.cpp.o
[ 50%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/staticSaliency.cpp.o
[ 50%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/saliency.cpp.o
[ 50%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/BING/CmShow.cpp.o
[ 50%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/BING/FilterTIG.cpp.o
[ 50%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/BING/ValStructVec.cpp.o
[ 50%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/BING/objectnessBING.cpp.o
[ 50%] [ 50%] Building CXX object modules/line_descriptor/CMakeFiles/opencv_line_descriptor.dir/src/LSDDetector.cpp.o
Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/BING/CmFile.cpp.o
[ 50%] Building CXX object modules/line_descriptor/CMakeFiles/opencv_line_descriptor.dir/src/binary_descriptor_matcher.cpp.o
[ 52%] Building CXX object modules/line_descriptor/CMakeFiles/opencv_line_descriptor.dir/src/draw.cpp.o
Linking CXX shared library ../../lib/libopencv_line_descriptor.so
[ 52%] Built target opencv_line_descriptor
Linking CXX shared library ../../lib/libopencv_saliency.so
[ 52%] Built target opencv_saliency
Linking CXX shared library ../../lib/libopencv_text.so
[ 52%] Built target opencv_text
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Cross compiling

Hi,
I've an issue when I try to recompile OpenCV (with contrib) for another architecture (mips). I tried opencv_contrib, downloaded from here as a zip, with OpenCV both 2.4.11 and 3.0.0-rc1.
With 2.4.11 (with linker options "-lstdc++ -lopencv_contrib -lopencv_core -lrt -lz -lm") it gives me an undefined reference to createEigenFaceRecognizer(), createFisherFaceRecognizer() and createLBPHFaceRecognizer(); I even tried to link each and every .a archive (from opencv_contrib to opencv_video), but without any success.
With 3.0.0-rc1 libopencv_contrib.a is not even created.
If it matters: in cmake-gui I've put the check in each entry 'BUILD_opencv_*' (apart highgui, which I don't think is needed as it's an embedded scenario, and opencv_world; to be honest I really need only face detection/recognition but for now linking everything is ok) and 'ENABLE_OMIT_FRAME_POINTER', specified (correctly, I checked it twice) 'OPENCV_EXTRA_MODULES_PATH', and deselected all the other entries. I noticed that, when I open cmake-gui again, the entry 'BUILD_FAT_JAVA_LIB' is now selected o_O
What am I doing wrong? Any suggestion?
TIA!

ld: library not found for -lWRAP

Following the instructions on compiling OpenCV 3 beta with opencv_contrib results in the following error. Any hint would be greatly appreciated.

[ 57%] Built target opencv_perf_imgcodecs
Linking CXX executable ../../bin/opencv_perf_videoio
[ 57%] Built target opencv_perf_videoio
Linking CXX shared library ../../lib/libopencv_video.dylib
[ 58%] Built target opencv_video
Linking CXX executable ../../bin/opencv_perf_video
[ 59%] Built target opencv_perf_video
Linking CXX shared library ../../lib/libopencv_bgsegm.dylib
ld: library not found for -lWRAP
clang: error: linker command failed with exit code 1 (use -v to see invocation)

SIFT descriptor calculation: incorrectly depends on firstOctave == -1

I noticed that when computing a list of keypoints des1 = kps[0:n], and computing only des2 = list(kps[0]), I can get different values for des1[0] and des2[0] - which obviously shouldn't happen.

Digging a little bit into the problem, I found that the octave matters. As long as the list of keypoints to be described contains a keypoint with octave -1 (the lowest possible octave), everything is fine. If one list contains an octave of -1, but another list only has higher octaves, the identical keypoints are not identical anymore. It does not matter if the second list's firstOctave is at 0, 1 or higher; it only changes depending on the firstOctave being -1 or >= 0.

I think the root of the problem is that when calling createInitialImage, doubleImageSize is set to true if firstOctave < 0, and that upsampling changes the image significantly.

Temporary workarounds:

  • hardcode firstOctave to -1 (requires recompiling)
  • always add a keypoint with octave -1

descriptor.hpp and types.hpp needs inttypes.h

Although inttypes.h is a part of C99, VS2010 (and also 2005?) does not come with it. However descriptor.hpp and types.hpp explicitly need inttypes.h (independent of the "HAVE_INTTYPES_H" flag in cvconfig.h).

It would be better to either include inttypes.h as a source file, or make it optional based on HAVE_INTTYPES_H.

I believe the VS impl of inttypes.h can be found here: https://code.google.com/p/msinttypes/downloads/detail?name=msinttypes-r26.zip&can=2&q=

cannot install contrib modules

Hi all,
I tried to install Saliency module from contrib modules. I read the documents and tried Cmake commands as follows:
cmake -D CMAKE_BUILD_TYPE=Debug -D CMAKE_INSTALL_PREFIX=~/local -D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules/ -D BUILD_DOCS=ON -D BUILD_EXAMPLES=ON -D WITH_CUDA=ON ..

After building, I cannot find saliency libraries or include files. It seems that my installation does not compile any contrib modules.
Thank you for your regards.

module reg - compilation problem(s)

Hello,

First I'd like to thank all of you, developers who shares freely your work to anyone, go on !

I want to compile and use the reg module. I try on windows 7 + MSYS + MinGW with opencv 2.4.8 and on linux/debian with opencv 2.4.9, same issues :
After some issues with some headers include ( opencv2/core.hpp => opencv2/core/core.hpp ) than I can handle, I got a fatal error during compilation :

/home/luc/projets/opencv/opencv-2.4.9/modules/contrib/modules/reg/src/mapperpyramid.cpp:93:25: error: ‘class cv::Ptrcv::reg::Map’ has no member named ‘get’

I don't know how to solve this problem. I don't know if I'm doing something wrong or if it is a bug in reg module.

Has anyone an idea to help me ? Thank you in advance !

Luc

About the naming of LatentSVM detector in opencv

Hi, I suggest to change the name of LatentSVM detector into DPM detector. As we know, latent svm refers to the training process of the deformable part-based model (DPM) but not testing. Currently, we haven't provided the training code of DPM in opencv, i.e., we acutally don't have a latent svm in opencv. 😄

Moving latentsvm test data into opencv_extra

Hi, I just noticed the test data of latentsvm are in opencv_contrib, under the module folder

Should we move the data into opencv_extra? In fact, after building opencv, the opencv_test_latentsvmdetector can not find these testing data.

Can't build with opencv-3.0.0 on Linux - Unknown CMake command "ocv_include_modules_recurse".

I am trying to build opencv with these extra modules, but CMake fails to generate Makefiles.

I run the following command

cmake ../opencv -DCMAKE_BUILD_TYPE=Debug -DWITH_QT=ON -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules -G "Unix Makefiles"

and get the following error:

CMake Error at /home/crabman/projects/vk_person_photos/opencv_contrib/modules/adas/tools/fcw_train/CMakeLists.txt:16 (ocv_include_modules_recurse):
  Unknown CMake command "ocv_include_modules_recurse".


-- Configuring incomplete, errors occurred!

FR_lfw::load() is not implemented

fr_lfw.cpp has its implementation in FR_lfwImp::load().
The author seems to forget to add it to FR_lfw::load().
This cause segmentation fault during execution of fr_lfw_benchmark.cpp.

Class compilation troubles of the Matlab bindings

Good morning,

I would like to start with a thumb up on all the work made by the maintainers of the OpenCV and OpenCV-contrib projects.

As mentioned in this post, I have noticed the files corresponding to class bindings generated in modules/matlab/src/private/ are not compiled.
This behaviour is due to the following line in the modules/matlab/compile.cmake file

file(GLOB SOURCE_FILES "${CMAKE_CURRENT_BINARY_DIR}/src/*.cpp")
# [...]

After modifications to compiles the files in this private/ folder, I ran into various errors:

Firstly, I have seen in generator/templates/template_class_base.cpp:22

typedef std::vector<Bridge> (*)({{clss.name}}&, const std::vector<Bridge>&) MethodSignature;

I am not a C++ expert but I do not think it will generate valid C++. I think it should be:

typedef std::vector<Bridge> MethodSignature({{clss.name}}&, const std::vector<Bridge>&);
// or C++11 variant:
using MethodSignature = std::vector<Bridge> (*)({{clss.name}}&, const std::vector<Bridge>&);

Then, according to my compilers errors, I think the std::vector<Bridge>& input parameter should not be declared const.

According to some Ptr_XXX not defined, I guess this module is still a work in progress.

Environment used

  • Ubuntu 12.04.2
  • gcc 4.7.4
  • Matlab 2014a

CMakeLists.txt in cvv module

-- General configuration for OpenCV 3.0.0-dev 
--   Version control:               3.0.0-beta-466-g97aa8d3
-- 
--   Platform:
--     Host:                        Windows 6.2 AMD64
--     CMake:                       3.1.0-rc1
--     CMake generator:             NMake Makefiles
--     CMake build tool:            nmake
--     MSVC:                        1800
--     Configuration:               Debug

Because MSVC compiler has only partial support for c++11 the compilation of cvv module fails on Windows with this compiler.

As a side note the flags

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra -pedantic")

should be changed to something like:

if(MSVC)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3")
endif()
if(CMAKE_COMPILER_IS_GNUCC)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra -pedantic")
endif()

in CMakeLists.txt.

PS Some keywords to help Google locate this bug report:
... is not a special member function which can be defaulted

problem while installation

cmake -DOPENCV_EXTRA_MODULES_PATH=/home/iiith/Desktop/Vision/opencv_contrib/modules -DBUILD_opencv_bioinspired=OFF -DBUILD_opencv_adas=OFF -DBUILD_opencv_bgsegm=OFF -DBUILD_opencv_ccalib=OFF -DBUILD_opencv_datasets=OFF -DBUILD_opencv_datasetstools=OFF -DBUILD_opencv_face=OFF -DBUILD_opencv_latentsvm=OFF -DBUILD_opencv_line_descriptor=OFF -DBUILD_opencv_matlab=OFF -DBUILD_opencv_optflow=OFF -DBUILD_opencv_reg=OFF -DBUILD_opencv_rgbd=OFF -DBUILD_opencv_saliency=OFF -DBUILD_opencv_surface_matching=OFF -DBUILD_opencv_text=OFF -DBUILD_opencv_tracking=OFF -DBUILD_opencv_xfeatures2d=OFF -DBUILD_opencv_stitching=OFF -D BUILD_NEW_PYTHON_SUPPORT=OFF /usr/share ..

I tried to run this make command
after that

make -j5

Output was .......
Note: Class Feature2D has more than 1 base class (not supported by Python C extensions)
Bases: cv::FeatureDetector, cv::DescriptorExtractor
Only the first base class will be used
Generator error: the class for method createSuperpixelSEEDS is missing
make[2]: *** [modules/python2/pyopencv_generated_include.h] Error 255
make[1]: *** [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2
make: *** [all] Error 2

si i am not able to install opencv_cintrib

bgsegm module description in README.md is misleading

In README.md file present in modules folder, the description of opencv_bgsegm module is provided as "opencv_bgsegm: Improved Adaptive Background Mixture Model for Real-time Tracking / Visual Tracking of Human Visitors under Variable-Lighting Conditions."

But, that is just the title of paper at http://goldberg.berkeley.edu/pubs/acc-2012-visual-tracking-final.pdf. The OpenCV implementation does only background/foreground segmentation and no tracking as such. For real time tracking the paper mentions use of bank of kalman filters which is not provided in the watered down version at bgfg_gmg.cpp. Only a part of the paper is implemented in OpenCV.

So could the description of bgsegm in README.md and inside modules/bgsegm be updated to "Statistical background image estimation and per-pixel Bayesian segmentation" ?. I could submit a pull request if required.

API consistency

Hi! As usual thanks for the outstanding work on OpenCV and contrib.
Is it possible to consider moving FAST, BRIEF and ORB under cv2.xfeatures2d like SURF and SIFT are? Or is there a specific reason I'm missing why they are in cv2 rather than the submodule. Thanks.

broken python wrappers for face module

no methods are exposed:

>>> model = cv2.face.createLBPHFaceRecognizer()
>>> model
<face_LBPHFaceRecognizer 00ADB100>
>>> help(model)
Help on face_LBPHFaceRecognizer object:

class face_LBPHFaceRecognizer(__builtin__.object)
 |  Methods defined here:
 |
 |  __repr__(...)
 |      x.__repr__() <==> repr(x)
 |
 |  ----------------------------------------------------------------------
 |  Data and other attributes defined here:
 |
 |  __new__ = <built-in method __new__ of type object>
 |      T.__new__(S, ...) -> a new object with type S, a subtype of T

>>> model2 = cv2.face.createFisherFaceRecognizer()
>>> help(model2)
Help on face_BasicFaceRecognizer object:

class face_BasicFaceRecognizer(__builtin__.object)
 |  Methods defined here:
 |
 |  __repr__(...)
 |      x.__repr__() <==> repr(x)
 |
 |  ----------------------------------------------------------------------
 |  Data and other attributes defined here:
 |
 |  __new__ = <built-in method __new__ of type object>
 |      T.__new__(S, ...) -> a new object with type S, a subtype of T

code in pyopencv_generated_types.h has this:


static void pyopencv_face_BasicFaceRecognizer_specials(void)
{
    pyopencv_face_BasicFaceRecognizer_Type.tp_base = NULL; // should be: &pyopencv_face_FaceRecognizer_Type;

CMake Error: Target "opencv_modules" of type UTILITY may not be linked into another target.

Hello there,

i tried compiling opencv with opencv_contrib and it failed during cmake with the following error:
CMake Error at cmake/OpenCVUtils.cmake:753 (target_link_libraries):
Target "opencv_modules" of type UTILITY may not be linked into another
target. One may link only to STATIC or SHARED libraries, or to executables
with the ENABLE_EXPORTS property set.
Call Stack (most recent call first):
modules/python/common.cmake:68 (ocv_target_link_libraries)
modules/python/python2/CMakeLists.txt:19 (include)

I'm on Centos 7.0 - cmake version 2.8.11
i tried on master and tag/3.0.0-beta
Let me know if you need further information!

BTW: I am not very familiar with cmake yet so please excuse me if this an easy problem to solve!

thanks in advance
Oliver

Problem outputMin outputMax in balanceWhite

After processing balanceWhite (xphoto /src/simple_color_balance.cpp), the values of the matrix it can not go into the range [outputMin, outputMax]

   Mat test(3,3,CV_32FC1);
    test.at<float>(0, 0) = 21000;
    test.at<float>(0, 1) = 24000;
    test.at<float>(0, 2) = 20000;
    test.at<float>(1, 0) = 21000;
    test.at<float>(1, 1) = 20000;
    test.at<float>(1, 2) = 20000;
    test.at<float>(2, 0) = 23000;
    test.at<float>(2, 1) = 20000;
    test.at<float>(2, 2) = 10000;
    double min1, max1;
    cv::minMaxIdx(test, &min1, &max1);
    cv::xphoto::balanceWhite(test, test,
                             cv::xphoto::WHITE_BALANCE_SIMPLE,
                             min1, max1,
                             0, 65536);
    cv::minMaxIdx(test, &min1, &max1);

In this example max1 = 76889.9 (mingw4.8.2)
When working with large matrices can greatly values go into the negative numbers
Thanks!

Error: no matching function for call to ‘cv::xfeatures2d::SURF::SURF(int&)’

'Morning.
I've installed over my already compiled and working OpenCV dist the opencv_contrib from this repository because im trying to use SURF.
The thing is that i've followed the steps from this page and is not working. It always returns me the same error.
Asking on the internet a guy told me that i need the library libopencv_xfeatures2d300.so but that file is not in the repo and it dosen't creates when i cmake.
The OpenCV forum is down and i'm a little desperate.
Anyone knows what is happening?
Thank you in advance.

updateMotionHistory, calcMotionGradient, calcGlobalOrientation not exposed to python/java

they're tagged as CV_EXPORTS_W in optflow/include/opencv2/optflow/motempl.hpp, but don't end up in the python or java wrappers.

this is probably due to a namespace problem, all other code is in namespace cv::optflow, the code from motempl.cpp in namespace cv::motempl

changing the namespace to cv::optflow, too will fix it, but feels like a gross change, hopefully someone has a better idea here.

linemod kinect magic number

I still see in linemod.cpp

@todo Magic number 1150 is focal length? This is something like
/// f in SXGA mode, but in VGA is more like 530.

@vrabaud Do you know why we still have this fixed parameter in linemod? Is it real the focal length?

__popcnt not declared with mingw-w64 in bitops.hpp (line_descriptor modul)

Hi,

building with mingw-w64 leads to the error:

__popcnt is not declared in this scope

The error seems to be in the ifdef block in bitops.hpp:

#include "precomp.hpp"
#ifdef _WIN32
# include <intrin.h>
# define popcnt __popcnt
# pragma warning( disable : 4267 )
#else
# define popcnt __builtin_popcount
#endif

#define popcnt __builtin_popcount after the last #endifsolves the problem.

Possible solution:

#if defined _WIN32 && !defined __MINGW32__
# include <intrin.h>
# define popcnt __popcnt
# pragma warning( disable : 4267 )
#else
# define popcnt __builtin_popcount
#endif

With IPP option on, Arithmetic exception happens in webcam_demo when switch to arbitrary oriented grouping.

Steps to reproduce:

  1. Build opencv (as of August 18) with IPP option on and with contrib modules.
  2. Build and run webcam_demo
  3. Press 'g' to switch to arbitrary oriented grouping.
  4. Exception happens.

Back Trace:

Program received signal EXC_ARITHMETIC, Arithmetic exception.
0x000000010026bca9 in cv::meanStdDev (_src=@0x7fff5fbf77a8, _mean=@0x7fff5fbf7788, _sdv=@0x7fff5fbf7768, _mask=@0x10084b628) at /Users/poly/workspace/opencv/modules/core/src/stat.cpp:1040
1040         int rows = src.size[0], cols = (int)(total_size/rows);
(gdb) bt
#0  0x000000010026bca9 in cv::meanStdDev (_src=@0x7fff5fbf77a8, _mean=@0x7fff5fbf7788, _sdv=@0x7fff5fbf7768, _mask=@0x10084b628) at /Users/poly/workspace/opencv/modules/core/src/stat.cpp:1040
#1  0x0000000101a29fd2 in cv::text::MaxMeaningfulClustering::probability (this=0x7fff5fbfb270, cluster=@0x1038ed008) at /Users/poly/workspace/opencv_contrib/modules/text/src/erfilter.cpp:2684
#2  0x0000000101a23072 in cv::text::MaxMeaningfulClustering::build_merge_info (this=0x7fff5fbfb270, Z=0x1037aa060, X=0x1038a2400, N=25, dim=7, use_full_merge_rule=false, merge_info=0x7fff5fbfadb0, meaningful_clusters=0x7fff5fbfb300) at /Users/poly/workspace/opencv_contrib/modules/text/src/erfilter.cpp:2366
#3  0x0000000101a20d2e in cv::text::MaxMeaningfulClustering::operator() (this=0x7fff5fbfb270, data=0x1038a2400, num=25, dim=7, method=0 '\0', metric=2 '\002', meaningful_clusters=0x7fff5fbfb300) at /Users/poly/workspace/opencv_contrib/modules/text/src/erfilter.cpp:2269
#4  0x0000000101a4b29c in cv::text::erGroupingGK (_image=@0x7fff5fbfcf40, _src=@0x7fff5fbfcf20, regions=@0x7fff5fbfd830, groups=@0x7fff5fbfcfd0, text_boxes=@0x7fff5fbfcfb8, filename=@0x7fff5fbfcf08, minProbability=0.5) at /Users/poly/workspace/opencv_contrib/modules/text/src/erfilter.cpp:3086
#5  0x0000000101a49db3 in cv::text::erGrouping (image=@0x7fff5fbfcf40, channels=@0x7fff5fbfcf20, regions=@0x7fff5fbfd830, groups=@0x7fff5fbfcfd0, groups_rects=@0x7fff5fbfcfb8, method=1, filename=@0x7fff5fbfcf08, minProbability=0.5) at /Users/poly/workspace/opencv_contrib/modules/text/src/erfilter.cpp:4084
#6  0x0000000100004a7d in main (argc=1, argv=0x7fff5fbff778) at webcam_demo.cpp:222
```'

Adas empty

Why adas module has adas.cpp and its header empty? We have also got many stability issue on training varying samples size, number of feature and weak counter.

Error make openCV 3.0beta + extra modules [MacOSX 10.10]

Hi all,
I tried to install openCV with extra modules on my macbook with Yosemite. The build phase is ok, using
$ cmake -DOPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules
but the make fails giving this errors:

Scanning dependencies of target opencv_face
[ 73%] Building CXX object modules/face/CMakeFiles/opencv_face.dir/src/eigen_faces.cpp.o
In file included from /local/opencv_contrib/modules/face/src/eigen_faces.cpp:19:
In file included from /local/opencv_contrib/modules/face/src/face_basic.hpp:4:
In file included from /local/opencv_contrib/modules/face/include/opencv2/face.hpp:358:
/local/opencv_contrib/modules/face/include/opencv2/face/facerec.hpp:23:27: error: unknown type name 'NumComponents'
    CV_PURE_PROPERTY(int, NumComponents)
                          ^
/local/opencv_contrib/modules/face/include/opencv2/face/facerec.hpp:23:5: error: C++ requires a type specifier for all declarations
    CV_PURE_PROPERTY(int, NumComponents)
    ^~~~~~~~~~~~~~~~
/local/opencv_contrib/modules/face/include/opencv2/face/facerec.hpp:23:41: error: expected ';' at end of declaration list
    CV_PURE_PROPERTY(int, NumComponents)
                                        ^
                                        ;
/local/opencv_contrib/modules/face/include/opencv2/face/facerec.hpp:98:27: error: unknown type name 'GridX'
    CV_PURE_PROPERTY(int, GridX)
                          ^
/local/opencv_contrib/modules/face/include/opencv2/face/facerec.hpp:98:5: error: C++ requires a type specifier for all declarations
    CV_PURE_PROPERTY(int, GridX)
    ^~~~~~~~~~~~~~~~
/local/opencv_contrib/modules/face/include/opencv2/face/facerec.hpp:98:33: error: expected ';' at end of declaration list
    CV_PURE_PROPERTY(int, GridX)
                                ^
                                ;
In file included from /local/opencv_contrib/modules/face/src/eigen_faces.cpp:19:
/local/opencv_contrib/modules/face/src/face_basic.hpp:156:27: error: C++ requires a type specifier for all declarations
    CV_IMPL_PROPERTY(int, NumComponents, _num_components)
                          ^~~~~~~~~~~~~
/local/opencv_contrib/modules/face/src/face_basic.hpp:156:42: error: unknown type name '_num_components'
    CV_IMPL_PROPERTY(int, NumComponents, _num_components)
                                         ^
/local/opencv_contrib/modules/face/src/face_basic.hpp:156:5: error: C++ requires a type specifier for all declarations
    CV_IMPL_PROPERTY(int, NumComponents, _num_components)
    ^~~~~~~~~~~~~~~~
/local/opencv_contrib/modules/face/src/face_basic.hpp:156:58: error: expected ';' at end of declaration list
    CV_IMPL_PROPERTY(int, NumComponents, _num_components)
                                                         ^
                                                         ;
/local/opencv_contrib/modules/face/src/face_basic.hpp:114:11: error: member initializer '_num_components' does not name a non-static data member or base class
        : _num_components(num_components), _threshold(threshold)
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/local/opencv_contrib/modules/face/src/face_basic.hpp:120:33: error: use of undeclared identifier '_num_components'
        fs["num_components"] >> _num_components;
                                ^
/local/opencv_contrib/modules/face/src/face_basic.hpp:143:35: error: use of undeclared identifier '_num_components'
        fs << "num_components" << _num_components;
                                  ^
/local/opencv_contrib/modules/face/src/eigen_faces.cpp:87:9: error: use of undeclared identifier '_num_components'
    if((_num_components <= 0) || (_num_components > n))
        ^
/local/opencv_contrib/modules/face/src/eigen_faces.cpp:87:35: error: use of undeclared identifier '_num_components'
    if((_num_components <= 0) || (_num_components > n))
                                  ^
/local/opencv_contrib/modules/face/src/eigen_faces.cpp:88:9: error: use of undeclared identifier '_num_components'
        _num_components = n;
        ^
/local/opencv_contrib/modules/face/src/eigen_faces.cpp:91:44: error: use of undeclared identifier '_num_components'
    PCA pca(data, Mat(), PCA::DATA_AS_ROW, _num_components);
                                           ^
17 errors generated.
make[2]: *** [modules/face/CMakeFiles/opencv_face.dir/src/eigen_faces.cpp.o] Error 1
make[1]: *** [modules/face/CMakeFiles/opencv_face.dir/all] Error 2
make: *** [all] Error 2

Can you help me please?

mapperpyramid.cpp does not compile with opencv 2.4.9

Hi,
if i compile the library with visual c++ 2010, i got these message:

mapperpyramid.cpp
......\contrib\modules\reg\src\mapperpyramid.cpp(93): error C2039: 'get': Ist kein Element von 'cv::Ptr<_Tp>'
with
[
_Tp=cv::reg::Map
]

Thank you,
Steff

Surface Matching and x64 : heap corruption

Hi,

In surface_matching\src\ppf_match_3d.cpp a function "murmurHash" is used like the following :
KeyType hashKey=0;
murmurHash(key, 4*sizeof(int), 42, &hashKey);

In case of a 64bit system, "murmurHash" is defined via a macro as "hashMurmurx64" in surface_matching\src\hash_murmur.hpp
However this function takes a void* as a parameter which should at least of length (2*sizeof(unsigned int)). Here &hashKey is given, and hashKey is an unsigned int, thus there is a heap corruption.

A workaround consists in forcing "murmurHash" to be defined as hashMurmurx86 even on 32 bit system, but in this case I don't understand the purpose of specific code for x64 systems.

Regards,
Romain

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.