Ask Your Question

gigaVolter's profile - activity

2013-10-31 00:31:56 -0500 commented answer Retina Demo - segmentation fault

All what i done - download last version of opencv and compile it with tbb support. This can solve problem

2013-10-30 08:51:41 -0500 answered a question how to make .dll file?

i suggest, that you make new project in visual studio on c++, for example... Read this arcticle, for example: MSDN Example

as well, making dll is big topic

2013-10-30 08:46:43 -0500 answered a question Retina Demo - segmentation fault

i have similar to ts problem (don't want to start new topic), but i didn't change anything in sample code... I'm trying it on Win7, vs 2010 c++. OpenCV 2.4.6, and 2.4.4... When debuger hits myRetina->run(...), i have exception in taskCollection.cpp (located at 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\crt\src\TaskCollection.cpp') on row 'pChore->m_pFunction(pChore);' id don't know what to do... plz help

2013-10-30 00:19:38 -0500 received badge  Editor (source)
2013-10-28 01:00:16 -0500 asked a question Using FlannBasedMatcher. Exception.

Hello. i'm using opencv 2.4.4 on windows 7, vs 2010, c++. I implement features find task in mfc application. Here i have some code:

 void CWorkClass::PrepareGoodMatches(cv::Mat mat1, cv::Mat mat2, vector<cv::DMatch>& out)
        cv::FlannBasedMatcher matcher;
        vector<cv::DMatch> matchVec;//leftCenterMatchVec, centerRightMatchVec;
        matcher.match(mat1, mat2, matchVec);
        double maxDist = 0;
        double minDist = 100000;
        for (unsigned int i = 0;i<matchVec.size();i++){
            double curDist =;
            if (curDist < minDist) minDist = curDist;
            if (curDist > maxDist) maxDist = curDist;
        for (unsigned int i = 0;i<matchVec.size();i++){
            if ( < (3 * minDist))

After exit of this function i have different kinds of exceptions: 1) In OnCmdMSg(...) on return _AfxDispatchCmdMsg(this, nID, nCode, lpEntry->pfn, pExtra, lpEntry->nSig, pHandlerInfo); 2) _CrtIsValidHeapPointer(pUserData) (if i hit continue) 3) exception in ~DescriptorMatcher.

if therese no implemention of cv::FlannBasedMatcher matcher, this function return good. Please give me advice to solve this problem.

.... UPDATE .... My problem solved after i replace all opencv dll's i used in my project from origin package... i waste about 3 days (

...UPADTE 2... Really problem was that i used MFC as static lib, after i change to DLL, problem solved