Hi Lukas Capan,
It is my understanding that you are facing the error LNK2019, when trying to create a mex file. The error LNK2019 is a linker error indicating that the linker cannot find an external symbol that was referenced in the code. Here, the linker cannot find the implementation of “registerModelToScene” method in the linked libraries.
Here are some steps to troubleshoot and resolve this issue:
- Ensure OpenCV is Properly Linked: Make sure that you have correctly set up the linker to include the OpenCV libraries that contain the implementation of “registerModelToScene”.
- Check OpenCV Version: Make sure you are using the correct version of OpenCV that includes the “ppf_match_3d” module.
- OpenCV with MATLAB: If you are using a pre-built OpenCV with MATLAB, make sure that it is compatible with the version of MATLAB you are using.
- Recompile and Link: After making sure all paths and libraries are correctly set up, recompile the mex file and ensure that all necessary libraries are linked.
Best Regards,
Abhishek Chakram