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
Post a Comment