LoginSignup
3
2

More than 3 years have passed since last update.

ImageMagick の equalize の昔話

Last updated at Posted at 2019-05-02

ImageMagick の equalize(ヒストグラム平坦化) の昔話です。

2012年2月(ImageMagick-6.7.9-3) まで ImageMagick の equalize は色味を維持しませんでした。そこから 2013年6月(ImageMagick-6.8.6-3)までの長きに渡る改良の末今の equalize に落ち着いたバージョンの流れをメモしておきます。

ヒストグラム平坦化とは何か、色味を維持しないとどうなるかの説明はこちらを参考にして下さい。

画像サンプル

6.7 と 6.8 で挙動違くない?のツッコミ issue から画像を拝借。

(c) https://imagemagick.org/discourse-server/viewtopic.php?t=23518 ヒストグラム
h3eVjuZ.jpg hist.png

バージョン毎の結果

convert h3eVjuZ.jpg -equalize <version>-eq.png
convert <version>-eq.png histogram:<version>-hist.png

のバージョン毎の結果です。

ImageMagick 変換画像 ヒストグラム 備考
〜 6.7.9-2 6.7.9-2-eq.png 6.7.9-2-hist.png RGB別 equalize
6.7.9-3 〜 6.8.1-0 6.7.9-3-eq.png 6.7.9-3-hist.png 大失敗
6.8.1-1 〜 6.8.3-9 6.8.1-1-eq.png 6.8.1-1-hist.png まだ少し明るい
6.8.3-10 6.8.3-10-eq.png 6.8.3-10-hist.png 大失敗再び
6.8.4-0 〜 6.8.6-2 6.8.4-0-eq.png 6.8.4-0-hist.png だいぶ改善
6.8.6-3 6.8.6-3-eq.png 6.8.6-3-hist.png 完成
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2