0
0

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.

PNM > gifファイルから plain/text formatへの変換 > convert -depth 8 -compress none label.gif label.ppm / PNM (PPM/PGM/PBM)

Last updated at Posted at 2017-03-01
動作環境
GeForce GTX 1070 (8GB)
ASRock Z170M Pro4S [Intel Z170chipset]
Ubuntu 14.04 LTS desktop amd64
TensorFlow v0.11
cuDNN v5.1 for Linux
CUDA v8.0
Python 2.7.6
IPython 5.1.0 -- An enhanced Interactive Python.
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
ImageMagick 6.7.7-10 2016-06-01 Q16 http://www.imagemagick.org

gifファイルからPNM (Portable aNyMap)のplain/text formatへの変換。

参考 http://www.imagemagick.org/discourse-server/viewtopic.php?t=15321

$ convert -depth 8 -compress none label.gif label.ppm
$ head label.ppm 
P3
150 150
255
173 216 230 173 216 230 173 216 230 173 216 230 173 216 230 173 216 230 
173 216 230 173 216 230 173 216 230 173 216 230 173 216 230 173 216 230 
173 216 230 173 216 230 173 216 230 173 216 230 173 216 230 173 216 230 
173 216 230 173 216 230 173 216 230 173 216 230 173 216 230 173 216 230 
173 216 230 173 216 230 173 216 230 173 216 230 173 216 230 173 216 230 
173 216 230 173 216 230 173 216 230 173 216 230 173 216 230 173 216 230 
173 216 230 173 216 230 173 216 230 173 216 230 173 216 230 173 216 230 

PNMには(PPM/PGM/PBM)といろいろ形式がある。
以下において整理されています。
http://www.mm2d.net/main/prog/c/image_io-01.html

フォーマットについては以下が参考になる。
https://ja.wikipedia.org/wiki/PNM_(%E7%94%BB%E5%83%8F%E3%83%95%E3%82%A9%E3%83%BC%E3%83%9E%E3%83%83%E3%83%88)

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?