Ask Your Question

Ben-Uri's profile - activity

2020-10-08 16:10:25 -0600 received badge  Famous Question (source)
2016-12-07 19:16:47 -0600 received badge  Notable Question (source)
2015-10-10 11:27:44 -0600 received badge  Popular Question (source)
2013-02-18 23:42:01 -0600 received badge  Student (source)
2013-02-18 15:31:56 -0600 received badge  Editor (source)
2013-02-18 15:30:40 -0600 asked a question Bug in cv::FilterEngine ?

It seems that cv::Filter engine ignores the horizontal coordinate of the srcROI, as demonstrated by the following code:

typedef float _Tp;
cv::Mat_<_Tp> mat = ... // Read some image to a matrix of floats

// Create a filter engine:
cv::Ptr<cv::FilterEngine> engine = 
  createLinearFilter(cv::DataType<_Tp>::type, 
                  cv::DataType<_Tp>::type, 
                  _filter,
                  cv::Point(-1,-1),
                  0,
                  cv::BORDER_CONSTANT, cv::BORDER_CONSTANT,
                  cv::Scalar(0,0,0,0));

  // Create a srcROI for the right half of the image:      
  cv::Rect srcRoi  = cv::Rect(src.cols/2, 0, src.rows, src.cols);
  cv::Point dstOfs = cv::Point(src.cols/2, 0);

  static const bool isolated = false;
  engine->apply(_src, _dst, srcRoi, dstOfs, isolated);

Am I missing something?

Can someone please guide me how to workaround or fix this problem?

2012-11-04 02:00:49 -0600 asked a question Comparing two HOG descriptors vectors

I am using cv::HOGDescriptor (CPU version) to compute descriptors of two images.

Then I would like to compare each window from the first image to each window of the other window of the other image and store location of the two windows that got the best score (nearest by L2 distance) and the distance between them.

What is the best way to access all window descriptors received by cv::HOGDescriptor::compute(...) method?

(This method is not documented, and fills one vector of floats which I don't understand how to interpreted)