lensfunpy
lensfunpy copied to clipboard
📷 Lens distortion correction for Python, a wrapper for lensfun
I am currently following the build steps in the README to build lensfunpy for ARM on Amazon Lambda but I get this error message when using the library despite the...
Hi, I'm using **lensfunpy** to correct my raw footage made with my Canon DSLRs (and MagicLantern). I export the geometry distortion as a UV map to un-distort the images, this...
a small usability improvement suggestion. I was consistently getting a segfault error at `initialize` with the code below because I forgot to include the `[0]` indexing for `lens`. It would...
Hello, Those python bindings to lensfun look pretty cool! What is the workflow for fixing chromatic aberration / vignetting? (I need to fix chromatic aberrations, but not large distortion). It's...
The next lensfun version (after 0.3.2) has some backwards incompatible changes and other things that should be adapted in lensfunpy: https://sourceforge.net/p/lensfun/code/ci/master/tree/ChangeLog As lensfunpy exposes some of the breaking functions (`Lens.interpolate_*`)...
I looked through all the code and did't find formulas that calculate new coordinates after using method ```apply_geometry_distortion``` of ```Modifier``` class. After undistorting the image, some pixels are lost, and...
XML string reading is [not officially supported](https://sourceforge.net/p/lensfun/bugs/41/) and could be removed any time. A better and more efficient way to dynamically load a lens profile is to create a lfLens...
Currently `lensfunpy.util.remapScipy` assumes RGB and it would make sense to support grayscale images (h,w) but also arbitrary n-channel images (h,w,n). `lensfunpy.util.remapOpenCv` probably supports this already but that should be tested.
Seeing as this library is often used with Rawpy, and Rawpy now requires numpy 2.0, we should also bump this library to use numpy 2.0
`Traceback (most recent call last): File "test_lensfunpy.py", line 2, in import lensfunpy File "/usr/local/lib/python3.8/dist-packages/lensfunpy/__init__.py", line 7, in import lensfunpy._lensfun ImportError: /usr/local/lib/python3.8/dist-packages/lensfunpy/_lensfun.cpython-38-x86_64-linux-gnu.so: undefined symbol: lf_modifier_new`