2017-11-10 09:06:49 -0600 | received badge | ● Notable Question (source) |
2017-02-05 23:41:39 -0600 | received badge | ● Popular Question (source) |
2014-09-19 16:28:57 -0600 | asked a question | Loop performance Hello, I have a loop within fast Fourier transform function which takes in the values and computes the real and imaginary parts accordingly. It is working well within the function. However, this loop is taking the maximum time which is quite concerning. Removing it is reducing the time by few seconds but this loop is needed within the function. Previously, it was a nested loop and I modified it into a single for loop. Any idea on how to further reduce the processing time for the following loop would be much appreciated. where data is complex vector of type double. |
2014-09-17 15:34:52 -0600 | asked a question | Increase performance of the function Hello, I have fft function within opencv which is called from another function. Everything is working good. However, I do have performance concern as fft is taking time and I need to run the code several times per second. I tried modifying insert by using push_back instead but that didn't help much. Any idea how the function could be optimized so that it takes less run-time? |
2014-08-28 16:18:13 -0600 | received badge | ● Editor (source) |
2014-08-28 15:09:11 -0600 | asked a question | Faster alternative to push_back Hello, I am trying to modify a loop within a loop to make it run faster. I ma doing this by replacing push_back with insert. However, insert does not seem to work for me as it is giving build errors. This does not seem to work. It's push_back which works is: I believe the error is occurring because signal is of type vector < vector < double > > while temp1 is vector < double > And since signal is further being passed into another function, I would not want to change the type. Any suggestion would be appreciated. |
2014-08-23 18:06:57 -0600 | commented answer | Modify loop for faster execution Thanks for your comment. However, initializing temp and oup before the loop is giving run time error. Here's how I modified the code which helped reduction to few msec. Any further ideas would be much appreciated. |
2014-08-21 16:17:27 -0600 | asked a question | Modify loop for faster execution Hello, Here's the code which works well for analysis while performing discrete wavelet transform. I've been wondering if this loop could be modified to make the execution faster? Any help would be appreciated. |
2014-08-20 12:54:22 -0600 | commented answer | Reconstructing vector from given image J decides how many levels of dwt the image would go through. If J is 1, then 2 levels of dwt and if J is 2 then 3 levels of dwt. I really appreciate your help. But your suggestion distorted the image completely. |
2014-08-19 18:01:53 -0600 | asked a question | Reconstructing vector from given image Hello, I have a vector: output2 holds the image information which is basically the output of 2D discrete wavelet transform, wt_output. I wanted to construct an image out of the vector. So I went through the following loop: I am able to construct and display the scaled image, OutputImg. However, the problem starts here: I need to convert OutputImg to vector again. Due to certain constraints, I do not want to use output2. Hence I went through the following loop to convert OutputImg to vector equivalent to output2. The problem is the output vec2 is not equivalent to output2. What could be the problem in this loop. Any help would be appreciated. |
2014-08-16 22:17:32 -0600 | commented answer | Runtime error while conversion of color space from RGb to YCbCr This looks easy and understandable. Thank you Berak! However, I have a question, "y", "cb" and "cr" are values returned from a different function. Hence they are returned as cv::Mat * instead of cv::Mat. I was wondering what would be a suitable way to convert cv::Mat * to cV::Mat? |
2014-08-15 19:27:46 -0600 | asked a question | Runtime error while conversion of color space from RGb to YCbCr Hello, I have Y, Cr, Cb channels which I need to combine together into one RGB image. Here is the code I'm using which is giving me run time error. Any help would be appreciated. |
2014-08-14 03:12:57 -0600 | received badge | ● Student (source) |
2014-08-13 19:36:11 -0600 | commented answer | Combining multiple blocks into one image Thanks! Just two questions:
|
2014-08-13 14:16:24 -0600 | asked a question | Combining multiple blocks into one image Hello, I had 256x256 image which I successfully split into 32x32 blocks. So in total I have 64 blocks. I did some operations on these blocks obtained. And now I want to combine these 64 32x32 blocks into 256x256 image. Here is the code I tried but in vain. Any help would be appreciated. Here smallBlock has height 32 and width 32. |
2014-08-12 20:23:02 -0600 | received badge | ● Scholar (source) |
2014-08-12 20:22:59 -0600 | received badge | ● Supporter (source) |
2014-08-11 17:22:50 -0600 | asked a question | dwt2 function in OpenCV Hello, I have been wondering if there is a function in OpenCV which has the same functionality as dwt2 in Matlab? I have a grayscale image which I need to decompose into four subbands. Any help would be appreciated. Thanks, |