Closed nyck33 closed 4 years ago
If I remember correctly I put this in place in case a particle is very close to the image borders and thus the bounding box gets clipped resulting in an image smaller than the template.
@gkouros thanks!
Actually I want to know more about what the difference is between displacement and adding noise. Displacement is deterministic in that figure where yellow points to green (sometimes multiple arrows). So even if I choose a certain particle based on its higher normalized weight during resampling, it should be displaced?
But then the next step adds probablistic noise.
Can you tell me where the corresponding lines of code are in naive_pf_tracker?
Take a look at function resample() https://github.com/gkouros/intro-to-cv-ud810/blob/efede1b680388bc229f2dab53e0e13f9ee15c4cd/ps6_python/naive_pf_tracker.py#L54
Aren't the shapes of the images always going to be the same since the same width and height is used from particle locations to draw the bounding box for the image to be compared to the template?