opencvsharp icon indicating copy to clipboard operation
opencvsharp copied to clipboard

Moving forward...HDR

Open Tharyn opened this issue 11 years ago • 2 comments

Thank you for the starting the HDR implementation. I now understand how it works and have been adding the rest of the functionality. I figured out what this error is in the process.

Unity3D ERROR: ArrayTypeMismatchException: Source array type cannot be assigned to destination array type. (wrapper stelemref) object:stelemref (object,intptr,object)

Answer: Unity3D uses an older version of Mono that has a bug preventing it from passing complex pointers of classes back. So you can't instantiate a class like CalibrateDebevec and hand the ptr back.

The solution was simple. I created several NativeMethods that take the same input variable and return a Mat with the result, doing all the work on the C++ side.

Cheers, Tharyn

Tharyn avatar Nov 28 '15 06:11 Tharyn

Thank you for your information :smile: I hear repeated stories of opencvsharp problems on Unity... Unity, please use the latest Mono :weary:

shimat avatar Nov 29 '15 14:11 shimat

We are all waiting for them to do so ;)

Tharyn avatar Nov 29 '15 20:11 Tharyn