How to read an image from memory instead of a file?

asked 2014-10-04 04:44:33 -0600

lucky7456969 gravatar image

updated 2014-10-04 04:47:24 -0600

I'd like to read an image from memory instead of a file. I'd like to know what is the counterparts of imread. I want to use

cv::Mat c(row, column, CV_8UC3, (*bitmap).data); cv::InputArray buf(c);

cv::Mat1b file = cv::imread("", CV_LOAD_IMAGE_GRAYSCALE);

bool ok = skel.thin(file, implementation_name, true);

where skel is called a VoronoiSkeleton downloaded from here

https://sites.google.com/site/rameyarnaud/research/c/voronoi

Thanks Jack

edit retag flag offensive close merge delete

Comments