Open sfmig opened 1 year ago
I started working on this in the frame-registration
branch.
Polygon
objects come with a lot of useful inbuild methods which we don't have to rewrite (e.g. area, check for validity, bounding box, etc).N
corresponding 2D points in a moving image and a reference image, an affine transform can be estimated such that the points match (functions are untested!)In the dashboard tab, show which videos have transforms computed for them (similar to how we show which ones have pose estimation done). For those, the transforms can be applied to the trajectories, to enable group visualisations and analyses.
The above idea kills two birds with one stone:
Perhaps a better alternative to choosing one video as the "reference" is having a precisely defined model of the environment, based on blueprints of the setup. This way everything is guaranteed to be "straight", and the "right way up", and the coordinates will be in world space (more meaningful than pixel coordinates). This would also get rid of the "use these ROIs as reference" step.
The elephant in the room is that our model can only be a 2D (topdown) projection of the 3D environment, but we anyway swallow that bullet (I'm running out of analogies here) since we have 1 top view camera only
Implement a simple method to transform the pose estimation data from every video to a common coordinate system.
Related to #3, though there we discussed a bit more sophisticated options.