I'm not sure if you're interested in my changes (I can imagine that you're not, and I won't be sad if you won't pick them up:-), but I thought I'd share them with you anyway. It's become a bit more than I initially envisioned...
Updated Python packages to Python 3.11, including API changes for some
Added some type annotations so editing in vscode becomes quite a bit easier with hints and such
Refactored so there are now distinct steps to
create the colormapping curves, and
apply those curves to the source image
Added a debug option to optionally show the aruco finder results and the mapping curves
The next thing I'm going to do is probably another step of refactoring, to turn the whole thing into a class so that you can use distinct steps of (1) creating the colormaps and (2) mapping the images. This should allow reuse of a single colormap for multiple images. But that's for later.
I'm not sure if you're interested in my changes (I can imagine that you're not, and I won't be sad if you won't pick them up:-), but I thought I'd share them with you anyway. It's become a bit more than I initially envisioned...
The next thing I'm going to do is probably another step of refactoring, to turn the whole thing into a class so that you can use distinct steps of (1) creating the colormaps and (2) mapping the images. This should allow reuse of a single colormap for multiple images. But that's for later.