7
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

OpenCV3+Python3で"アップル加工"

Last updated at Posted at 2015-11-14

アップル加工」なる画像フィルタがあるらしいのでOpenCV+Pythonで真似して作ってみた。

単なる色相(H)抽出フィルタともいう。補色が無くなったせいか元画像よりも淡く見える。追加で彩度(S)をいじった方がいいかも。

変換後画像:
output1.jpg

元画像(画像出展):
image1.jpg

ソース: https://gist.github.com/yohhoy/4f762ccf7c7a0bfcccfe

$ curl https://upload.wikimedia.org/wikipedia/commons/0/0b/ItsukushimaTorii7396.jpg > download.jpg
$ convert -resize 400 download.jpg image1.jpg
$ ./redgray.py image1.jpg output1.jpg

convertコマンドはImageMagickで提供される)

7
8
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
7
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?