c++ - Save Mat image from camera prosilica -


i developping program acquire image prosilica camera.

i recuperate frame strcut contains imagebuffer variable.

to save recuperated image, this:

tpvframe frame;// struct given sdk camera.  mat image=mat(frame->height, frame->width, cv_32fc3, frame->imagebuffer);  //the image depth 5. cout<<"depth image---------------------------"<<image.depth()<<endl; //the program has unexpectedly finished here  imwrite("image.jpg", image); 

what problem please?

mat image depth 3 if use cv_32fc3. can't create mat image, , when try write image crashes.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -