2015-06-18 20:28:44 -0600 | commented question | please help regarding cropping a complex matrix Hi Berak, Thanks a lot. I was thinking that cv_8U might cause a problem because the cropped portion is of complex type and the surrounding 0's are of cv_8u type. Can you suggest if I use q.type() for the masks matrix type why complexI.copyTo(cropped, temp) doesn't work? :( |
2015-06-18 00:33:57 -0600 | asked a question | please help regarding cropping a complex matrix Hi, I don't know why I can't access the other account I opened in Feb this year. So thanks to thudor who replied to my question in February. Now the problem I am facing is, (I am still novice in opencv, so please bear):
So, I tried to look at the possible troubles. When I am cropping the image, I am creating a mask. Mat new_mask(Mat q, max_intensity m) { } And then using this mask I am cropping the complex matrix. Do you think, because I used CV_8U as the type of the mask matrix it is causing trouble when I am doing inverse Fourier transform? Please suggest. I tried using other data types like CV_64FC2 but then the sentence complexI.copyTo(cropped, temp) doesn't work. Even if I use the type complexI.type() for the masks matrix this sentence doesn't work. I am giving an example of the comparison of phase output of IDFT in MATLAB and opencv. PLEASE HELP!!! The blue line is MATLAB output and the red one is opencv. THANKS A LOT IN ADVANCE whoever helps :) |