nbergst / cuda_aruco

Aruco library with cuda optimizations
Other
19 stars 5 forks source link

Static allocation in #2

Open avh opened 7 years ago

avh commented 7 years ago

In MarkerDetector::detect a static tmp buffer is allocated. If you later call this method with an image of different size, memory is corrupted. Recommended fix; dont use static buffers.... ever.

nbergst commented 7 years ago

I know, it’s terrible. It was fine for the specific application I had do make the optimization for, but you’re absolutely right. And It won’t work with multiple instances either. Feel free to fix and make a pull request.