Click here to Skip to main content
15,845,598 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
i have afloat vector then i need to convert it into a mat image and use it in resize and imwrite function

how can i do this
i have a function but when running the code i have an error

the function:
        resize(lbp, lbp, cvSize(50, 50)); //in order to make all image same size
        imwrite(In.vectorofotrainpath[i].c_str(),lbp);// true with mat image or not

the error i have is:

Windows has triggered a breakpoint in mycode.exe.

This may be due to a corruption of the heap, which indicates a bug in mycode.exe or any of the DLLs it has loaded.

This may also be due to the user pressing F12 while mycode.exe has focus.
[no name] 28-May-14 21:08pm    
1. You have not posted the code for the allocation of memory.
2. You should use the debugger to find out exactly where the error has occurred. If you don't know how to do that now is the time to learn. Set a breakpoint at memcpy() and see what happens - then step through the code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900