Np.asarray in c++

I am new to c++ and have done some OpenCV Coding in python before. In python you use numpy to convert and image into an array containing all of the pixel information. Is there a function liek this for c++?

what is your “use-case” for it ?

show us, what you have, and what you want to do with it, please.

could you take a look at the tutorials, and try to refine your question ?