Ask Your Question

baifrank's profile - activity

2015-05-27 08:17:19 -0600 asked a question Problem imwrite function

HI,It has never been to threw an error like this when use imwrite function :

cvtColor(train_2gray, gray_image, CV_BGR2GRAY);
cv::imwrite("Gray_Image.jpg", gray_image);//error in this code

but Visual Studio 2013commnication show an:

Microsoft C++ exception: std::bad_alloc at memory location 0x021DE4D0.

thanks your answer.

2015-05-24 23:42:30 -0600 commented question cv::hogdescriptor::compute throw a exception

Mat is better than iplimage,is'n it? i used to using iplimage, but i will try. thanks bro.

2015-05-24 22:46:05 -0600 asked a question cv::hogdescriptor::compute throw a exception

HI,i use hogdescriptor to compute a pic hog. I can run my code in win32 envrionment, but throw a exception when i use mfc environment. why do it take place like this?

#pragma region test_HOG
                IplImage* trainImg = cvCreateImage(cvSize(64, 64), 8, 3);
        IplImage* test_Image=cvLoadImage("test2.jpg");
        cv::Mat ima(test_Image,0);
        //cvResize(ima, imat);     
        BOOL EmptyAllSet();//clean the sd
        hog->compute(test_Image, descriptors, Size(1, 1), Size(0, 0)); 
#pragma endregion test_HOG

thanks feedback!

2015-05-22 04:07:28 -0600 received badge  Editor
2015-05-22 04:02:32 -0600 answered a question HOGDescriptor.computer error

HI,I have the same problem. Could you help me what you change the addtion lib.