High-quality-ellipse-detection icon indicating copy to clipboard operation
High-quality-ellipse-detection copied to clipboard

How to migrate the code to Linux?

Open Yishun99 opened this issue 6 years ago • 6 comments

Can you provide some idea for migrating the code/compilation to Linux?

Yishun99 avatar Jul 22 '19 09:07 Yishun99

I tried and got stuck. It seems the repo has been abandoned.

guysoft avatar Jan 27 '20 13:01 guysoft

for me it works perfectly under ubuntu linux. first you need to install the opencv either from the website or from the repo using sudo apt install libopencv-dev then you should be able to mex using mex -lmwlapack -lopencv_core -lopencv_highgui -lopencv_imgproc generateEllipseCandidates.cpp in case of questions feel free to ask.

maaaaadn avatar Jan 30 '20 11:01 maaaaadn

ah, I forgot one thing... I had to add using namespace std; in the generateEllipseCandidates.cpp file, e.g. just after using namespace cv; (line 17)

maaaaadn avatar Jan 30 '20 11:01 maaaaadn

@maaaaadn Where are what mex command from? Matlab? If so what version?

What does the ouput of which mex?

guysoft avatar Jan 30 '20 13:01 guysoft

@guysoft , the mex command is a matlab command yes. I'm currently running matlab R2019b which mex gives me built-in (/usr/local/MATLAB/R2019b/toolbox/matlab/general/mex) note, /usr/local/MATLAB/R2019b/ is my matlab root directory.

maaaaadn avatar Jan 30 '20 14:01 maaaaadn

I have successfully ported to Ubuntu 20.04 and Opencv4.5.5, you can download my compiled mexa64 file from my repository and try it out:https://github.com/liang-zijian/High-quality-ellipse-detection-ubuntu20

liang-zijian avatar Mar 22 '23 03:03 liang-zijian