2020-01-17 13:49:56 -0600 | received badge | ● Famous Question (source) |
2018-11-14 16:36:11 -0600 | received badge | ● Notable Question (source) |
2018-05-29 14:33:46 -0600 | received badge | ● Popular Question (source) |
2017-11-17 10:27:11 -0600 | received badge | ● Supporter (source) |
2017-08-12 03:59:21 -0600 | commented answer | mat output different in different data type I am too stupid. |
2017-08-12 03:58:20 -0600 | received badge | ● Scholar (source) |
2017-08-12 03:40:47 -0600 | asked a question | mat output different in different data type I am confusing on the output of Mat. I tried to print the elements on the terminal using different data type, but result vary. this is code while the result is vary that is interesting, could anyone tell me what is going on? thank you. |
2017-06-22 13:30:38 -0600 | received badge | ● Taxonomist |
2016-01-17 13:56:47 -0600 | commented question | segmentation fault you are right the return value is 0, means it is CV_8U. I will check the input image, it is strange, becuase I thought I already have converted it to CV_32FC1. |
2016-01-17 10:45:02 -0600 | asked a question | segmentation fault this code can work the image size 256x256, but not work on 4096x4096. I really confuse where get problem. the img.at<float>(i,j) should not access invalid memory address. |
2015-12-18 09:14:04 -0600 | received badge | ● Enthusiast |
2015-12-15 04:25:46 -0600 | commented question | opencv-2.4.6.1-1 and qt5 and qtcreator-2.8.0 No, it still does not work |
2015-12-14 09:44:06 -0600 | asked a question | Qt5 + opencv invalid pointer Dear all, I spent the whole day to solve a weird problem. Qt5 and opencv can work independently. when I put opencv code into the qtcreater, bugs come. * Error in `/home/think/QtProject/build-opencv-test2-Desktop-Debug/opencv-test2': realloc(): invalid pointer: 0x00000032c5eed840 * ======= Backtrace: ========= /usr/lib64/libc.so.6[0x36b0077d9e] /usr/lib64/libc.so.6(realloc+0x290)[0x36b00845d0] /usr/lib64/libQt5Core.so.5(_ZN9QListData7reallocEi+0x1f)[0x3d24f0a3ef] /usr/lib64/libQt5Core.so.5(_ZN9QListData6appendEi+0x6e)[0x3d24f0a4ae] /usr/lib64/libQt5Core.so.5[0x3d24fdb474] /usr/lib64/libQt5Core.so.5(_Z21qRegisterResourceDataiPKhS0_S0_+0x326)[0x3d24fd7596] /usr/lib64/libQt5Core.so.5[0x3d24e7a333] /lib64/ld-linux-x86-64.so.2[0x36afc0ff2a] /lib64/ld-linux-x86-64.so.2[0x36afc1003b] /lib64/ld-linux-x86-64.so.2[0x36afc00d2a] ======= Memory map: ======== 00400000-00405000 r-xp 00000000 fd:02 14286978 /home/think/QtProject/build-opencv-test2-Desktop-Debug/opencv-test2 00604000-00605000 r--p 00004000 fd:02 14286978 /home/think/QtProject/build-opencv-test2-Desktop-Debug/opencv-test2 00605000-00606000 rw-p 00005000 fd:02 14286978 /home/think/QtProject/build-opencv-test2-Desktop-Debug/opencv-test2 01610000-01652000 rw-p 00000000 00:00 0 [heap] I thought it was the problem of finding the correct position of opencv libs, and tried to use differrent way,all of them did not work. LIBS += LIBS += -L /usr/local/lib/libopencv_core.so \ LIBS += -L/usr/local/lib LIBS += -lopencv_core LIBS += -lopencv_imgproc LIBS += -lopencv_highgui it was caused by the Qt, conflict by different Qt version. |
2015-12-14 09:09:45 -0600 | commented question | opencv-2.4.6.1-1 and qt5 and qtcreator-2.8.0 I have the same problem, it is very strange. I do not know where is going wrong. could you tell me? Here I cannot post the pro file, it is unformat. |
2015-01-20 08:03:26 -0600 | commented question | type wrong? img was a power spectrum image, and its type is float. I tried to calculate radial average. yes, I initialized the array Mat M(MaxRadius, 3, CV_32F, Scalar::all(0)); Mat_<float> & average_p = (Mat_<float>&) M; |
2015-01-20 04:52:45 -0600 | asked a question | type wrong? I want to calculate the sum and count the number of pixels in an image. but it is very strange, I cannot count the number of pixels. this code did not work, I print them on the terminal, it shows a huge number, like this. 4.7146e+11 4.82613e+11 3.06337e+11 6.53814e+11 5.3117e+11 5.24466e+11 2.63879e+10 7.74249e+10 |
2014-07-23 04:47:25 -0600 | asked a question | dft and normalize one image first was processed by dft and then do a circle mask its frequency field, which means the pixel value is zero on the corner, after that, do inverse dft on it to back image. until now, every thing is OK, No problem. but when I normailze the image and convert it to 16 bit. it is wrong. I do fft on the result image on imagej, and its corner is not zero. normalize(clean_sf,clean_sf,0,1,CV_MINMAX); clean_sf.convertTo(result,CV_16UC1,65536); // My question is simple, probably I did describe clear. I do some operation on frequency field(binary mask, to keep the center part, set other to zero). then back to real space. when I do fourier transform on the result image, I find they are not zero, but lower value. I think the problem of normalize, but I do not understand. //////////////// I tried to upload image, but failed. ///////////////////// I think there is a problem on DFT. step 1. do some operation in fourier space(fig.1 is the amplitude of it). step 2. dft back to real space step 3. dft back to fourier space and generate the amplitude spectrum(fig. 2) } void ShowMagnitude(string WindowName,Mat img) { } fig.1 and fig.2 should the same. but it different.I mean the part out of circle in fig.2 should be zero, just like fig.1. but it is not. fig.1 fig.2 |
2013-05-23 05:18:50 -0600 | commented answer | corrupted double-linked list m represent horizontal and n for vertical (m = i -2; n = j-2), while i will go through image rows and j for image cols. That also puzzled me for a day. anyway, thank you. |
2013-05-23 03:04:03 -0600 | commented answer | corrupted double-linked list there is only the memory problem( type problem as you said) and thank you very much. This error let me understood type deeply. By the way, you know why the result image is rotated to compare the original image when I processed in the main function (the main function above, but the problem is here, I think the problem about the variables "i", "j", "m", "n")? |
2013-05-22 12:39:51 -0600 | commented question | corrupted double-linked list I have uploaded my code, and hope this can help you find the bug. Thanks |
2013-05-22 07:24:20 -0600 | commented question | corrupted double-linked list they are try to remove the background of image. their definitions show as follow: void mv_background_aveage(Mat & img) void mv_background_rotation(Mat & img) |
2013-05-22 00:11:38 -0600 | edited question | corrupted double-linked list I have a problem which probably is the memory problem, but I do not where is error and how to solve it. the code is followed. when removed the two lines code mv_background_average(image); mv_background_rotation(image); it can work, I still can not find the bug. please help me to check it and tell me what happened. Thanks a lot. |
2013-05-22 00:10:20 -0600 | received badge | ● Editor (source) |