2013-08-29 15:01:20 -0600 | commented answer | DrawMatches img2 shows up blank in outImg. I found the answer. (But I can't answer my own question until a day passes.) cv::DrawMatches expects variables img1 and img2 to be a 1 or 3 channel cv:Mat and I was passing img2 in as a 4 channel cv:Mat. I just wish the documentation was more clear about this. |
2013-08-29 12:32:52 -0600 | asked a question | DrawMatches img2 shows up blank in outImg. I have been testing openCV 2.4.6 on iOS and I have come across a strange error. Whenever I get the output of cv::DrawMatches the key points are matched just fine, but the img2 that I pass in is never drawn. Even though it's key points are matched. Here is what the input and outputs look like: img1: img2: outimg: The code that I am using is pulled directly from the Feature Matching Tutorial with just a few iOS specific changes to handle conversion from UIImage to cv::Mat: |