What Matlab support is available with QuickLINK 2? |
UPDATE: Gitlab version of wrapper with example code! Very well supported with great example code. https://gitlab.eyetechds.com/windows_public/ql2-matlab-wrapper
If you are interested in just getting the data from a single study into Matlab, see this question: |
One more question: coming from QL1 there used to be a function 'StartBulkCapture'. How do I perform an asynchronous frameData capture in Matlab with QL2? To answer my own question: i guess a Matlab timer object can be used to fire QL2MW_GetFrame perdiodically.
(31 Mar '15, 11:03)
Vk9d
You are correct. Buffering it yourself is the only way to do it with QL2. I may move this to be its own separate question on the site. Thanks again for your help on the Matlab wrapper.
(31 Mar '15, 17:41)
phyatt ♦♦
|
I have seen the wrapper. What about the actual matlab sample use code? I am struggling passing the array pointers in QLCalibration_GetTargets. Hi @Vk9d, The Matlab wrapper hasn't been updated for a while, and it looks like it didn't include the struct mapping for calibration target objects... I just spent some time looking through it. I would make the array similar to how some of the other structs are made in
(24 Mar '15, 18:47)
phyatt ♦♦
phyatt, thanks for your response. I figured out the calibration call. Now struggling with getting the frame data. It does look like matlab can handle nested structs by I have a memory access violation somewhere when passing arguments in the call that crashes the matlab. Code below: frameP = libstruct('QLFrameData'); frameP.ImageData = libstruct('QLImageData'); % same initialization for all other structs inside the QLFrameData %......
(26 Mar '15, 09:04)
Vk9d
Can you post all the Matlab QuickLink2 calls? It may be easier to find the bug with some more code. I'll see if I can get a better sample ready.
(26 Mar '15, 12:04)
phyatt ♦♦
see my update to the original answer.
(27 Mar '15, 20:29)
phyatt ♦♦
|
|
The bottomline is that the args are not unpacking right. It is a black box to me so I don't know where to look. I managed to invoke other quicklink2.dll funcs, but not this one. The MatlabWrapper is supposed to help with almost all of the array access. I almost have it built... otherwise you have to use the bit packing mentioned in
(27 Mar '15, 17:42)
phyatt ♦♦
see my update to the original answer.
(27 Mar '15, 20:29)
phyatt ♦♦
|
Thanks, phyatt! The example works and loads the library (under x64). The get-frame functions still need work and a good example to be usable to me. I guess a wrapper is a more elegant way than wrapping it all in matlab (or writing a mex file). Keep up the good work, awaiting the results anxiously! And done! See the updates on the project. It looks good and runs well.
(30 Mar '15, 19:23)
phyatt ♦♦
|
Thank you for the update again. The example works. Could not find any description of other functions though. What are the parameters to use 'QL2MW_GetCalibrationScoring'? I haven't implemented this one yet, but it is important to have. I'll work on it shortly.
(31 Mar '15, 15:02)
phyatt ♦♦
Wrapper dll updated and example code added.
(31 Mar '15, 17:35)
phyatt ♦♦
|