estimation

Results 16 comments of estimation

> Dear developer, > > I attempted to change the code so it could run on C++. In file generateEllipseCandidates.cpp I replaced mexFunction by the following one: > > ```...

@IaBogdi Finally, I think I get the cause. If anybody is using LAPACKE, then the following line of code is NOT correct: `LAPACKE_dggev(xxxx)` It should not be ROW_MAJOR, but COL_MAJOR.

Solution: find the `error` function in the cpp file. change the `char *` to `std::string`. I guess you will also meet some errors concerning the `vector`, then add `using namespace...

> After compiling the cpp file and generating the "mexmaci64" file successfully (I'm working on MacOS), I ran the "LCS_ellipse.m". However, the Matlab crashed every time I ran this file....

@dcmesh I do not think Alan is still maintaining this repository since he hasn't answered any questions since 2-3 years ago... In fact, I think I have answered and solved...

> Error using mex > Undefined symbols for architecture x86_64: > "cv::Mat::deallocate()", referenced from: > cvCanny3(void const*, void*, void*, void*, int) in generateEllipseCandidates.o > Canny3(cv::_InputArray const&, cv::_OutputArray const&, cv::_OutputArray const&,...

> @xiahaa > So how to link flag? > When I mex the file, some errors like: > undefined reference to `cv::Exception::Exception(int, std::string const&, std::string > const&, std::string const&, int)'...

> @xiahaa > But the error persist: > C:\Users\AppData\Local\Temp\mex_93217854689248_9244\generateEllipseCandidates.obj:generateEllipseCandidates.cpp:(.text+0x8e67): > undefined reference to `cv::Exception::Exception(int, std::string const&, std::string > const&, std::string const&, int)' this is not a link error. try add...

if you open D:\Program Files\opencv_2.4.9\build\x64\vc11\lib can u see opencv_core249.lib, etc?

try uncomment the following code, and make a visual studio project using this pure c++ code (no mex functions are used). Once you have successfully compiled the code and run...