funkelab / motile

Multi-Object Tracker using Integer Linear Equations
https://funkelab.github.io/motile/
MIT License
27 stars 5 forks source link

Fix bug: Feature matrix resizing #13

Closed bentaculum closed 1 year ago

bentaculum commented 1 year ago

When adding unseen variables/features, the feature matrix gets efficiently resized to accommodate the new entry with numpy.ndarray.resize. However, this command can possibly shrink an array, which is never desired here. We now ensure that the feature matrix will grow or keep the its size in both dimensions at each resize operation.