132 karma · joined Jan 25, 2020 (6y ago) · 21 submissions
1.
Show HN: Minimal image regression template for PyTorch(github.com ↗)
2 points · by hugohadfield · 2y ago · discuss
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
Imagine you have a speed sensor eg. on your car and you would like to calculate the jerk (2nd derivative of speed) of your motion (useful in a range of driving comfort metrics etc.). The speed sensor on your car is probably not all that accurate, it will give some slightly randomly wrong output and it may not give that output at exactly 10 times per second, you will have some jitter in the rate you receive data. If you naiively attempt to calculate jerk by doing central differences on the signal twice (using np.gradient twice) you will amplify the noise in the signal and end up with something that looks totally wrong which you will then have to post process and maybe resample to get it at the rate that you want. If instead of np.gradient you use kalmangrad.grad you will get a nice smooth jerk signal (and a fixed up speed signal too). There are many ways to do this kind of thing, but I personally like this one as its fast, can be run online, and if you want you can get uncertainties in your derivatives too :)
14.
Show HN: Automated smooth Nth order derivatives of noisy data(github.com ↗)
146 points · by hugohadfield · 2y ago · 45 comments
15.
Wide angle lens distortion correction from lines(hh409.user.srcf.net ↗)
158 points · by hugohadfield · 2y ago · 58 comments
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent