mercredi 29 janvier 2020

OpenCV - sizeof datatype at runtime [duplicate]

How can I get the byte size of a cv::Mat type with something equivalent to the sizeof function?

cv::Mat::type returns the cv type, but I need the byte size to be able to memcpy a cv::Mat buffer into another object.

cv type => byte size , how?

Aucun commentaire:

Enregistrer un commentaire