Direct access to state vector uncertainties
rtimpe opened this issue · comments
Firstly, thanks for all of your work on this toolkit - it's been very helpful!
Looking at the derivation of the projection uncertainty here, I see that Var(b)
is derived as an intermediate step. Is it possible to access this information in mrcal? The projection uncertainty is useful, but we're also interested in propagating the calibration uncertainty to other operations (such as solvePnP).
Hello. Usually using =b= directly isn't enough, so I don't expose =Var(b)= directly. All the internal routines that propagate calibration-time uncertainty use this function:
Line 504 in f866f1b
This takes a matrix df/db of shape (N,Nstate) and gives you Var(f) of shape (N,N). It's a bit more general than that, actually, but this is the main use case. I suggest you use this function for your uncertainty propagation logic. Do a search to see how other functions use it. This isn't in the "public" interface yet, but I'll add it in the near future.
If you come up with something useful and/or interesting, I'd love to hear about it!
Oh, and in case you weren't aware, mrcal 2.3 was released a few days ago, with much extended documentation. The code and interfaces are largely the same, but you might notice some tweaked things here and there.
Hello. Usually using =b= directly isn't enough, so I don't expose =Var(b)= directly. All the internal routines that propagate calibration-time uncertainty use this function:
Line 504 in f866f1b
This takes a matrix df/db of shape (N,Nstate) and gives you Var(f) of shape (N,N). It's a bit more general than that, actually, but this is the main use case. I suggest you use this function for your uncertainty propagation logic. Do a search to see how other functions use it. This isn't in the "public" interface yet, but I'll add it in the near future.
If you come up with something useful and/or interesting, I'd love to hear about it!
Thanks, I'll take a look at that function. I'm not entirely sure Var(b)
is exactly what I want, but good to know about that function.
Oh, and in case you weren't aware, mrcal 2.3 was released a few days ago, with much extended documentation. The code and interfaces are largely the same, but you might notice some tweaked things here and there.
Yes, the expanded how to calibrate page is particularly useful. Thanks!
This seems to have been sorted out. I' mclosing the issue. If you still need something, feel free to reopen