2020-07-10 10:10:14 -0600 | received badge | ● Notable Question (source) |
2017-04-16 00:14:18 -0600 | received badge | ● Popular Question (source) |
2014-03-02 16:18:46 -0600 | commented question | concatenate contour vector with knn in OpenCV, the task is done only by push contour vector into a "super vector", which holds the training data to train classifier. I should think of it from beginning......... |
2014-03-02 16:15:16 -0600 | commented question | concatenate contour vector Thank you very much for your reply. You are quite right, it is not possible to do it in such a primitive way. As matchShape function seems to focus only on 2 contour-comparision, I decided to implement K-Nearest neighbour matching. The result is much nicer, and most importantly the calculation time is shorter than matchShapes function Looks like knn will be my choice. @berak: you are right, I should find out a smarter distance mesurement from beginning |
2014-02-28 13:58:59 -0600 | asked a question | concatenate contour vector Hi Firstly, I am trying to recognize the shape of an object, compare it with the database and give out the result. I successfully extract the contour of the test object as well as training database by function As I care only about the outer shape, the contour output is taken as contour[0] for comparision
I would like to use cv::matchshape function with Hu moment, but before that, I will combine contour of all database image into on vector like below then when making comparision, I only have to do like this But could you please suggest me how to concatenate all the contour into one single trainingDatabase vector? Thank you very much |
2013-10-27 06:52:25 -0600 | commented answer | image display with imread not functioning I found the problem. It is not related to the code, the code is all right. Just my image. The image suppose to be RGB image and in my case it is not. I changed it to several other different ones and it is o.k. Thanks for your attention |
2013-10-26 14:45:30 -0600 | received badge | ● Supporter (source) |
2013-10-26 14:45:14 -0600 | commented answer | image display with imread not functioning It debugged successfully. Build in was nice. Just that annoying error. What else should I do, please? p.s: char* imageName =argv[1] was to take the name of the image. What do you mean by pass the second argument? I do not get it clearly, Do you mind please give some more explanation? |
2013-10-26 12:57:29 -0600 | commented question | image display with imread not functioning I just did that, no thing changed. The same errors happen. Having no clue why... any suggestions, please ? :D |
2013-10-26 11:58:42 -0600 | asked a question | image display with imread not functioning Hi everybody. I am new to OpenCV, I was following the material here link text Here is my code Everything is working, I open a png image, convert it to gray scale and save it to a jpg image. It functions well, however, this error appear: I am using Netbean 7.4 on windows 8.1 64 bit. Strange is that the image is successfully processed and saved, but not display and the error appears. |