Nghia T. Vo
Nghia T. Vo
This issue was addressed in [this pull request](https://github.com/tomopy/tomopy/pull/637), but since Daniel hasn't released a new version of TomoPy yet, we're currently stuck. @decarlof @dgursoy: Who will handle the new release...
Yes you can. Actually, Discorpy in the first version (old name Vounwarp) used the function remap in Opencv. However for packaging Discorpy, it would be unwise to use Opencv as...
I've added demonstration how to use remap in Opencv for unwarping video here: https://discorpy.readthedocs.io/en/latest/usage/tips.html
Hi young-oct, There's no reference for that. I worked out the formula by hand and it should be somewhere in one of my notebooks :). I hope the following notes...
That is the formula to calculate the cross point between line number 1 (horizontal): y = a0 * x + b1 and line number 3 (vertical): x = - a0...
You can follow the instructions here to correct distortion for your camera: https://discorpy.readthedocs.io/en/latest/usage/demo_06.html that tutorial was written for commercial camera. If you can't get a calibration image, still can correct...
For video correction, you can use Opencv and coefficients calculated from Discorpy to unwarp each frame. You can copy a function here (unwarp_image_backward_cv): https://github.com/nghia-vo/vounwarp/commit/1f509aa81f86c6b27d611c8b924c1e7b45410169#diff-756cce26c21174cc77026213818dd5d33ebe5ea498ce800698f392c01cf0bca8 . The mapping function in Opencv...
I hope the instructions are clear enough to follow. Otherwise you can reopen the issue and post your codes + checkboard image here so I can have a look.
I've added tips on how to perform distortion correction for video here: https://discorpy.readthedocs.io/en/latest/usage/tips.html
We need reference objects (straight lines, square-grid objects, ....) to be able to tell if there's distortion and how much. Straight lines are needed for radial distortion which curves straight...