I should thank you for considering my feedback and doing the programming
. As I said CLAHE has been around for a very long time, not long after retinex emerged. So, code examples are bountiful and superior methods have since been developed (i.e., if you are interested in doing more reading
).