|
Hi guys.. I am at the moment using goodFeaturesToTrack + Lukas kanade optical flow to track objects. When i lose the object (defined by bool) I have to reinitiate the goodFeaturesToTrack and LukasKanade optical flow. This might seem like a stupid question, and has indeed been for me for couple of weeks, but i cannot seems to perform the reinitiating stage. I clear the points i have been tracking.. Use goodFeatureToTrack on the new location of the mask, Lukas kanade to track the points.. I mark the the good features with a circle on the image, so in know that i started all over, but the seem to be spread as before which make me wonder if it actually is doing what it is supposed to do? there is a lot of code.. i don't it scare you away.. I tried debugging, and can see that GoodFeaturesToTrack only adds one circle, which isn't nessesarly within the mask, how do i make it add more than one.. I doesn't make sense that it doesn't add more since i have deleted all previous points. .. It's reinit stage only that seem to be troublesome.. Thanks in advance. (责任编辑:蚂蚁团队) |
