mjambon / purple-fringe

Removal of purple fringing from digital photos
Other
61 stars 11 forks source link

Does this have a c/c++ version? #2

Open Dorothy-2016 opened 4 years ago

Dorothy-2016 commented 4 years ago

Thanks for your nice work first! and I was dealing with the same problem of purple fringe, and I tried your method, it works well most times, except when my picture was big and there's purple things in the picture, it will change the color sometimes. also I want to solve the green purple fringe, so I want try somethings based on your method maybe, but I nevel use OCaml, I was wondering if there's a c/c++ version of your method? Hoping for your reply!

mjambon commented 4 years ago

Hi @Dorothy-2016! Unfortunately I'm not aware of a C or C++ implementation. The only other implementation I know of is the one linked in the readme (https://github.com/dtschump/gmic-community/blob/master/include/stanislav_paskalev.gmic). I don't know if it helps.

The OCaml implementation is pretty bare-bones and only uses imperative features of ocaml. It means you should be able to translate most of the code directly using C arrays or equivalent.

This should cover most of the ocaml oddities :-)

Dorothy-2016 commented 4 years ago

OK, I will try it and thanks very much for your kindly reply!

ChuanjunLAN commented 3 years ago

@Dorothy-2016 hey,dude.Have you ever find an implementation base on c++ or python? if yes, can you share the link. thx alot