Ask Your Question

tobyd's profile - activity

2017-06-09 03:39:45 -0500 received badge  Popular Question (source)
2014-02-11 12:39:22 -0500 asked a question Matlab sub2ind / ind2sub in OpenCV /c++

Are there any functions in OpenCV which are equal to Matlab's sub2ind and ind2sub functions? I need both fuctions for my C++ app. If OpenCV lacks of these functions, are there any C++ libs which provide equivalent functionality?

2013-03-26 13:50:31 -0500 received badge  Student (source)
2012-12-10 04:57:46 -0500 commented question Apply notch filter on image

Can anyone show me some sample code how to apply a notch filter in frequecy domain?

2012-12-10 04:28:42 -0500 asked a question Apply notch filter on image

How can I apply a notch filter on an image using OpenCV 2.4 and C++? I want to calculate the DFT of an image, suppress certain frequencies and calculate reverse dft. Can anyone show me some sample code how to apply a notch filter in frequecy domain?

2012-11-29 14:37:43 -0500 received badge  Editor (source)
2012-11-29 14:34:30 -0500 asked a question OpenCV and TBB

Hi, I am looking for a way to speed up my image processing. I have a vector<string> containing the storage location of an image in each element. the vector's size is approx 1000. the for loop looks like:

for(int i=0; i<vectorimg.size();++i)
{
Mat img = imread(vectorimg[i]);
GaussianBlur(img...);
threshold(img...);
...
}

I wonder if I could use parallel_for from TBB to speed up the for loop. how would the parallel_for loop look like? Are there any examples for using parallel_for and opencv?

Thanks in advance!