Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

Bitmap to hex array conversion in c++ using opencv

$
0
0
I am new to OpenCV. I have to convert a monochrome bitmap to a one dimensional array. What I have done so far is that I have read the image file and shown it in a window. #include #include using namespace cv; int main( int argc, char** argv ) { cv::Mat image; image = imread("imaje.bmp"); if(image.empty()) return 0; cv::imshow("Image", image); cv::waitKey(); return 0; } The image array is stored in variable named as "image" . I need to get that variable in some text format as I need to send these bytes to a printer. Please guide me how should I proceed ?? Thanks

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>