Ask Your Question

t3rb3d's profile - activity

2019-04-29 12:30:25 -0500 commented answer How to free cv::Mat from memory

I tried this from the sample code: (*buffer).push(cv::Mat(tmp.size(), tmp.type())); tmp.copyTo((*buffer).back()

2019-04-29 11:46:47 -0500 received badge  Supporter (source)
2019-04-29 09:07:11 -0500 asked a question How to free cv::Mat from memory

How to free cv::Mat from memory I have a sequence of images (frames) from a camera as an input, what is stored in std::q

2019-04-01 02:45:12 -0500 edited question Memory leak with opencv Mat and std::queue

Memory leak with opencv Mat and std::queue The camera records frames which is stored in a std::queue<cv::Mat> buff

2019-04-01 02:41:31 -0500 commented question Memory leak with opencv Mat and std::queue

@berak For example this: cv::Mat current_frame(500, 500, CV_16UC3); std::queue<cv::Mat> buffer; while(true) {

2019-04-01 01:29:14 -0500 commented question Memory leak with opencv Mat and std::queue

@berak For example this: cv::Mat current_frame(500, 500, CV_16UC3); std::queue<cv::Mat> buffer; while(true) {

2019-04-01 01:19:41 -0500 commented question Memory leak with opencv Mat and std::queue

For example this: cv::Mat current_frame(500, 500, CV_16UC3); std::queue<cv::Mat> buffer; while(true) { buffer

2019-03-29 09:28:35 -0500 asked a question Memory leak with opencv Mat and std::queue

Memory leak with opencv Mat and std::queue The camera records frames which is stored in a std::queue<cv::Mat> buff

2018-10-19 08:17:31 -0500 commented question Signal in frequency domain with OpenCV dft

I think if you use this flag, the output is just the real part of the fft. The output is the same length, but there is n

2018-10-19 04:12:51 -0500 asked a question Shift OpenCV matrix elements, extend and overlap add

Shift OpenCV matrix elements, extend and overlap add I am working on a real-time system, for that I have to store and pr

2018-10-19 04:11:00 -0500 commented question Signal in frequency domain with OpenCV dft

Yes, and also cv::dft(y, fd, cv::DFT_REAL_OUTPUT); yields 0:Fs/2 Hz range, where Fs is the sampling rate!

2018-10-15 04:09:19 -0500 commented question Signal in frequency domain with OpenCV dft

Yes, the plot is not an existing function, only denotes that if I plot them in some way . Since than I figured it out, a

2018-10-14 17:54:09 -0500 received badge  Student (source)
2018-10-13 09:24:55 -0500 edited question Signal in frequency domain with OpenCV dft

Signal in frequency domain with OpenCV dft I am experimenting with cv::dft: a 1HZ sinus signal is generated, and display

2018-10-13 09:23:43 -0500 edited question Signal in frequency domain with OpenCV dft

Signal in frequency domain with OpenCV dft I am experimenting with cv::dft: a 1HZ sinus signal is generated, and display

2018-10-13 09:21:39 -0500 edited question Signal in frequency domain with OpenCV dft

Signal in frequency domain with OpenCV dft I am experimenting with cv::dft: a 1HZ sinus signal is generated, and try to

2018-10-13 08:34:11 -0500 received badge  Editor (source)
2018-10-13 08:34:11 -0500 edited question Signal in frequency domain with OpenCV dft

Signal in frequency domain with OpenCV dft I am experimenting with cv::dft: a 1HZ sinus signal generated, and try to dis

2018-10-13 08:01:16 -0500 asked a question Signal in frequency domain with OpenCV dft

Signal in frequency domain with OpenCV dft I am experimenting with cv::dft: a 1HZ sinus signal generated, and try to dis

2018-10-13 03:45:07 -0500 commented question Simple Array Operations

There is nothing between them. Copied exactly as it is. But I suspect that something goes wrong later on the code than!

2018-10-13 03:29:19 -0500 asked a question Simple Array Operations

Simple Array Operations I do simple array operations: adding a scalar and element-wise division of two array. The code i

2018-10-13 02:21:32 -0500 commented answer OpenCV Fourier Transform complex output issue

Thank you for your reply! It is a useful information that the flags should be given with the 'or' operator. I didn't kno

2018-10-13 02:19:27 -0500 marked best answer OpenCV Fourier Transform complex output issue

I try to do some Fourier analysis, but in the OpenCV cv::dft function the cv::DFT_COMPLEX_OUTPUT seems not working. I do the following:

// Calculate Fourier transform for each time signal
cv::Mat hf, hf_raw, h, h_raw;
cv::Mat Fp(Pt.size[0], Pt.size[1], CV_64FC2);
cv::Mat Fz(Pt.size[0], Pt.size[1], CV_64FC2);

cv::dft(Pt.t(), Fp, cv::DFT_ROWS, cv::DFT_COMPLEX_OUTPUT);
cv::dft(Zt.t(), Fz, cv::DFT_ROWS, cv::DFT_COMPLEX_OUTPUT);



// [DEBUG]
// Fp and Fz has to be (K*4 x WINDOW_LENGTH) size in the current case (24 x 256)
std::cout << "Fp.size: " << Fp.size << std::endl;
// -> OK
// Fp elements should be complx
std::cout << "Fp.type(): " << Fp.type() << std::endl;
// -> Lots of zero at the end!!! -> With cv::DFT_REAL_OUTPUT there are no zeros



cv::Mat nom, denom, W;
cv::mulSpectrums(Fp, Fp, nom, cv::DFT_ROWS, true);
cv::mulSpectrums(Fz, Fz, denom, cv::DFT_ROWS, true);

I declare Fp and Fz to be two channeled in order to hold the real and complex values (on which the cv::mulSpectrums function can operate). But Fp.type() results in 6 which means the type of the output matrix is CV_64FC1.

2018-10-13 02:19:27 -0500 received badge  Scholar (source)
2018-10-12 16:53:28 -0500 asked a question OpenCV Fourier Transform complex output issue

OpenCV Fourier Transform complex output issue I try to do some Fourier analysis, but in the OpenCV cv::dft function the