Ask Your Question

Stefan's profile - activity

2014-09-15 02:28:00 -0600 received badge  Famous Question (source)
2013-12-13 00:37:41 -0600 received badge  Notable Question (source)
2013-07-19 05:20:41 -0600 received badge  Popular Question (source)
2013-03-21 08:09:04 -0600 received badge  Self-Learner (source)
2012-09-12 01:34:29 -0600 answered a question HogDescriptor HEAP crash in c++ VisualStudio2012
static vector<float> detector = HOGDescriptor::getDefaultPeopleDetector();
if (!detector.size()) {
fprintf(stderr, "ERROR: getDefaultPeopleDetector returned NULL\n");
return -1;      
}
hog.setSVMDetector(detector);

seems to work now

2012-09-09 19:44:38 -0600 asked a question HogDescriptor HEAP crash in c++ VisualStudio2012

Hey community,
I have some issue with the cv::HOGDescriptor in a really basic usage.

vector<cv::Rect> found, found_filtered;
cv::HOGDescriptor hog;
hog.setSVMDetector(cv::HOGDescriptor::getDefaultPeopleDetector()); // CRASH HERE
hog.detectMultiScale(tempFrame, found, 0, cv::Size(8, 8), cv::Size(32, 32), 1.05, 2);

it is absolutely a copy of the example code which runs in XCode but not in VisualStudio 2012.

The error message is HEAP[Project.exe]: Invalid address specified to RtlValidateHeap( 00C80000, 02D51150 ) Project.exe has triggered a breakpoint.

has anyone experience with that kind of problems?
Kind regards

2012-09-09 19:43:10 -0600 received badge  Scholar (source)
2012-08-30 01:30:45 -0600 received badge  Student (source)
2012-08-29 01:35:06 -0600 asked a question Find pixel color out of cv::Mat on specific position

well my problem is, I need to find the sub matrix of a cv::Mat image which includes all white pixels. Therefore I want to iterate through all pixels, check if they are white and build a cv::Rect with that information.
I figured out how to iterate through all the pixels but I don't know how to get the pixels color out of it. The cv::Mat was previously converted to greyscale with CV_GRAY2BGR

for(int y = 0; y < outputFrame.rows; y++)
{
    for(int x = 0; x < outputFrame.cols; x++)
    {
        // I don't know which datatype I should use
        if (outputFrame.at<INSERT_DATATYPE_HERE>(x,y) == 255)
           //define area
    }
}

My final question is, which datatype should I insert in the code on the position INSERT_DATATYPE_HERE and is 255 the right value to compare with than?

Thanks alot

2012-08-01 20:20:49 -0600 received badge  Editor (source)
2012-08-01 20:20:27 -0600 asked a question Are the .dll files missing in latest 2.4.2 Windows build?

Hi guys, I downloaded the latest Windows build (http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.4.2/OpenCV-2.4.2.exe/download).
Then I created a Project which is building in VS2010 without errors or warnings.

After building I get the System Error "The program can't start because opencv_core242d.dll is missing on your computer...."

But I can't find the .dll files in the extracted OpenCV folder.
Are they missing? Or do I have them to download anywhere else?

Regards Stefan

EDIT:: False alarm, it seems, that the extraction of the .exe didn't work correctly in first try.