2016-11-30 01:55:50 -0600 | commented answer | Bug in warpAffine? Thanks for your reply. My actual goal is to take advantage of symmetry. However I noticed, that croping an rotated rectangle from an image and flipping does not give the same result than flipping the whole image and cropping the transformed rotated rectangle. I boiled it down to that problem. I see your point that round off errors can be neglected in many applications in CV, however, I would not make a distinction between math and images. I think it is strange, that we see such a huge roundoff error in a linear interpolation (float has an precission of 1e-6 which is 4 orders af magnitudes below the error). Anyway, thanks a lot. |
2016-11-29 04:30:47 -0600 | commented question | Bug in warpAffine? The rounding error is what I want here. I don't see my error in the code. If you see it, please tell me. I also added a sanity check which shows, that something strange is going on. |
2016-11-28 04:57:47 -0600 | received badge | ● Editor (source) |
2016-11-28 04:57:23 -0600 | asked a question | Bug in warpAffine? I think the following examples shows a bug in warpAffine: Here is the program output: I create an image with entries 0, 1, 2, ...n-1, and cut a region around (10,0) with scale 1.3. I also create an expected image constGrad. However, they are not the same. Even more, since the input image has a constant derivative in x-direction and the mapping is affine, I expect also a constant gradient in the resulting image. The problem is not a boundary stuff problem, the same happens at the inner of an image. It's also not related to WARP_INVERSE_MAP. Is this a known issue? any comments on this? |
2016-11-02 04:36:40 -0600 | asked a question | Is there a way to delete the uncompressed support vectors In a linear SVM you can reduce the support vectors to a single vector by their weights. Thus, you only need to save that one and that's all you need to predict, correct? However, in OpenCV, the original support vectors are still saved. Is there a way to get rid of them? I can imagine, that they may be useful for online learning, but that does not apply in my case. So I don't need them and they are just using memory. |