clr

2023-09-21T14:08:58.406469Z

Hi, I am trying to interface with OpenCvSharp. Specifically I want to construct a Mat class. This class has overloaded constructors, some with the same number of arguments.

2023-09-21T14:09:46.461769Z

And I can't get the code in a form that it selects the right one.

2023-09-21T14:10:04.845479Z

I.e. it seems to select the first option, and then complain about types.

2023-09-21T14:11:27.902609Z

to be clear: We have `Mat(Size, MatType)` and `Mat(String, ImreadModes)`

2023-09-21T14:11:34.876479Z

and it selects the second one

2023-09-21T14:11:58.345329Z

With code like:

(let [^Size x (Size. 4 5)
        ^MatType y MatType/CV_64F]
    (Mat.  x  y)))

2023-09-21T14:12:27.925909Z

I get "expected String, got Size"

2023-09-21T14:13:10.663999Z

I've tried to put the type meta's everywhere, but simply cannot get it to work.

2023-09-21T14:13:36.471439Z

Any hints?