Native CLAHE support

Discuss digital image processing techniques and algorithms. We encourage its application to ImageMagick but you can discuss any software solutions here.
User avatar
fmw42
Posts: 25272
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Native CLAHE support

Post by fmw42 » 2018-12-08T19:20:29-07:00

Here is the result using IM 7.0.8.16 beta

Input:
Image

CLAHE:

Code: Select all

magick 49228938-c2277f80-f3ec-11e8-8476-2c352741e49f.jpg -clahe 16x16+256+2.5 49228938-c2277f80-f3ec-11e8-8476-2c352741e49f_clahe_16x16+256+2p5.jpg
Image



For comparison, here are two results from my adaptivegamma script:


Adaptivegamma:

Code: Select all

adaptivegamma -m 0 -b 1.5 -s 5 adaptivegamma/49228938-c2277f80-f3ec-11e8-8476-2c352741e49f.jpg 49228938-c2277f80-f3ec-11e8-8476-2c352741e49f_adaptivegamma_m0_b1p5.jpg
Image

Code: Select all

adaptivegamma -m 0 -b 1.5 -s 50 adaptivegamma/49228938-c2277f80-f3ec-11e8-8476-2c352741e49f.jpg 49228938-c2277f80-f3ec-11e8-8476-2c352741e49f_adaptivegamma_m0_b1p5_s50.jpg
Image

The adaptive gamma does not seem to have quite the contrast as the CLAHE.

User avatar
fmw42
Posts: 25272
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Native CLAHE support

Post by fmw42 » 2018-12-11T20:35:12-07:00

It seems to be working fine for me now using tile size in width and height in pixels and also in percent in IM 7.0.8.17 beta.

Post Reply