d0m3nik / pycimg

Python wrapper for the CImg library
GNU General Public License v3.0
6 stars 2 forks source link

Embedding or bridging pycimg with gmic-py? #1

Open myselfhimself opened 4 years ago

myselfhimself commented 4 years ago

Hello @d0m3nik our GREYC Image laboratory has spotted your project just recently. I must admit that your work is very good and very exhaustive for the little I know about the CImg library. The gmic-py Python binding I am writing for G'MIC which is a superset of CImg by the same author @dtschump ... is to have a numpy support soon. Its numpy branch is here: https://github.com/myselfhimself/gmic-py/tree/numpy_io and related issue https://github.com/myselfhimself/gmic-py/issues/28 . As you maybe have realized, G'MIC builds open CImg by aliasing the cimg type into gmic_image or so using a C #define. After then, the G'MIC c++ classes keep using gmic_images every where, also inside gmic_lists which are re#defined cimg_list as well. The ongoing alpha numpy support is showcased in this video. A first write has been done in pure C/Python API using np.asarray() and handmade interleaving/deinterleaving + unsqueezing... But I face memory issues and crashes for now, as my work is in progress. I just wanted to tell you that I want to spend more hours studying your code and testing it. If I were able to plug your pycimg implementation in gmic-py and also have an easy way from my Gmic interpreter binded class to access your CImg python class's cimg object's data pointer, I would be happy actually... Feel free to share thoughts, though I will try to understand your work better now.

myselfhimself commented 4 years ago

Hmm gmic-py follows G'MIC closely (2.8.4, 2.9.0 soon), knowing that the embedded CImg has the same versioning (2.9.0 right now). Your project seems to relate to CImg 2.04 only, but compiles well for fresh python 3.x versions.

jboulanger commented 4 years ago

Hi, I've tested updating to cimg-2.9.2 without problem. It actually resolved problems with openmp.

myselfhimself commented 4 years ago

Very good to know!!

čt 9. 7. 2020 v 12:35 odesílatel jboulanger notifications@github.com napsal:

Hi, I've tested updating to cimg-2.9.2 without problem. It actually resolved problems with openmp.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/d0m3nik/pycimg/issues/1#issuecomment-656050314, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJU5QQGZYEXFDQ7S2VL2JDR2WMP7ANCNFSM4NNCNQUQ .

myselfhimself commented 4 years ago

Indeed facing openmp tests with libgmic 2.9.1 (cimg 2.9.1) https://github.com/myselfhimself/gmic-py/issues/47