Export image header in opencv

Hi to all!
I have read an image with imread correctly. Now i want to export the image header.
In C++ i use for example…
“char hdr[64];
int hdrsize=image.exportHdr(hdr);”
But opencv has no member named ‘exportHdr’
How can i export the header?
Thanks in advance guys!

where is exportHdr from? it’s not part of OpenCV, that much we agree on.

why do you need OpenCV to be able to do that? what is that header supposed to contain? why can’t you use the library you seem to be using already?