Relative Content

Tag Archive for pythonc++numpypybind11

How to copy Numpy arrays into C++ arrays quickly

I’m trying to create an circular buffer for images in C++ that receives the images as Numpy arrays. I can correctly store the images and retrieve them, but it’s crazy slow, 100’s of times slower than just doing it all in Python. I’m learning C++, but I’m not sure how to speed this up. Any help would be greatly appreciated.