I would like to do some camera calibration using functionality that is available in opencv
. (I have my own code for this and want to compare the opencv
solution.) I see that there is an OpenCVLink
in the Mathematica application's Links
directory. Alas, it looks like it is merely 'glue' for some of the built-in Mathematica image processing routines (defining filters, enhancing routines, etc).
I was wondering if anyone else has bothered to 'embrace and expand/enhance' the supplied OpenCVLink to provide other opencv
capabilities. Most importantly, it looks like there's some support/glue/voodoo for passing the Mathematica Image
data structure into the opencv
calls. For example -
$LineSegmentDetector = ... "opencv_LineSegmentDetector", { {"Image", "Constant"}}, {_Real, 1}];
seems to suggest it calls into the DLL w an image and a real parameter. If this is the case it would seem like one might be able to add a few things, depending on the complexities of the interface, etc. I can imagine, however, that this might be particularly tricky based on assumptions about what the objects/classes want with respect to messages, etc. (for example. I can't find a member function for LineSegmentDetector
that looks like the above call template.)
Has anyone tried this? Are there any 'unofficial' mechanisms for this? Any suggestions?