2014-10-04 04:46:50 -0600 | received badge | ● Editor (source) |
2014-10-04 04:44:33 -0600 | asked a question | How to read an image from memory instead of a file? 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 |