Ask Your Question

darenw's profile - activity

2019-09-03 23:34:22 -0500 received badge  Enthusiast
2015-09-03 01:16:55 -0500 received badge  Nice Answer (source)
2015-09-02 13:54:19 -0500 received badge  Teacher (source)
2015-09-02 00:34:53 -0500 received badge  Student (source)
2015-09-01 18:55:40 -0500 asked a question cvGetSubRect( ) taking an integer not rectangle

I'm fixing some source code using old OpenCV, converting it to use the current cv::Mat and all the good things in 3.0. The deprecated CvMat is all over the place. I know what cvGetSubRect() does, and how to rewrite it using the overloaded operator () in cv::Mat. But the following has me stumped:

CvMat M = cvMat(ew, ew, CV_32FC1,  pSomeFloatData);
CvMat G = cvGetSubRect(&M, 1);

What the heck does cvGetSubRect() taking an image and an integer do? Browsing the OpenCV documentation, and Googling, turned up nothing like this. This is from code which compiles and runs.

2015-09-01 18:47:33 -0500 answered a question std::pow Problem

If all you're doing is just squaring a variable, there's no need to haul in a fancy math function. I'd just replace std::pow(radius, 2) with radius*radius. This is done all the time in real-world code. The compiler will handle this faster, not having to look up "pow()". You may even be able to ditch use of <cmath> if there's no other math functions or constants in use, reducing dependencies

2015-08-05 23:19:56 -0500 commented question Real-time Image Stitching

This looks like a question relevant to something I'm researching today, but is it really? The links to your photobucket images are dead. Could you upload the images directly to your post?

2015-03-04 11:34:13 -0500 received badge  Supporter (source)