


撮影場所:神代植物公園
撮影日:2014/06/21
-c
上記によると入力可能な値は0-255,autoに見えますが、実際に入力可能な値は0-21,autoのようです。それ以外の値を指定するとエラーになります。また0とautoは同じ結果になるようです。
実際にどんな色になるのか試してみたのでご覧ください。
centerx = 0.3007100003 centery = 0.02006000303 radius = 0.00000000001 maxiter = 30000
centerx = 0.3007100002979624312 centery = 0.02006000303424897 radius = 0.0000000000000000001 maxiter = 30000
centerx = 0.300710000297962431204 centery = 0.020060003034248969999 radius = 0.000000000000000000001 maxiter = 30000
centerx = 0.005002063072287 centery = 0.849947000274766 radius = 0.000000000000001 maxiter = 30000
centerx = 0.00500206307228665347 centery = 0.84994700027476510513 radius = 0.00000000000000000001 maxiter = 30000
centerx = -1.484 centery = 0.0 radius = 0.00000000000000000000000000000000000000000000001 maxiter = 600000
(1) ライブラリの準備
コンパイルには以下のライブラリが必要とのこと。
# apt-get install libgd2-xpm-dev # apt-get install libgmp3-dev
(2) makeする
makeが成功すると./docの下に"mandelbrot"という実行ファイルが出来ます。
# cmake . (cmakeがない場合はapt-get install cmakeを実行) # make # make install (必要な場合)
$ mandelbrot -? Deep Mandelbrot v1.0, (C)2008-2010 by Herbert Haas and Tim Horton Started: Sat May 24 19:46:25 2014 Deep Mandelbrot v1.0, (C)2008-2011 by Herbert Haas and Tim Horton USAGE: mandelbrot [OPTIONS]-? print this help -v be verbose during execution -V be even more verbose during execution -d create distance data file for further analysis -H create histogram file for further analysis -g create a PNG version with a white grid -i maximum iteration depth (1-999999) [default: 200] -t number of threads to be used (1-30) [default: 4] -o filename for computed image (no file extension needed) -f create PNG with data from this file (no computation) (e.g. the result of a distance file (-d option) can be used) -s amount of oversampling (1-8) [default: 2] -w image pixel width (10-10000) [default: 500] -h image pixel height (10-10000) [default: 500] -c specify color mode (0-255) [default: 0] or 'auto' -m color of Mandelbrot set (if not black) as six hexadecimal digits, e. g. ffa500. -M create movie using frames -x target of movie on x-axis in percent of current image -y target of movie on y-axis in percent of current image NOTE: valid x/y-parameters: {-100..+100}, with respect to the center of the current frame {0,0} -r radius of last movie frame in percent of first frame NOTE: Command line parameters overwrite the correspondig settings in . If only -w OR only -h is given, then the other parameter is assigned the same value.
(1) デフォルト
引数を何もつけずに実行するとマンデルブロ集合の全体図を出力します。
$ mandelbrot $ ls mandelbrot.png $図1 mandelbrot.png
(2) コンフィグファイルを指定して実行
コンフィグファイルのサンプルが./doc/input_files/にあります。
$ ls doc/input_files/ README neck satellite seahorse $リスト1 seahorse (コンフィグファイル)
# seahorse centerx = -0.7435669 centery = 0.1314023 radius = 0.0011439 maxiter = 500
$ mandelbrot seahorse $ ls seahorse.png図2 seahorse.png
(3) コンフィグファイルと引数の組み合わせ例
$ namdelbrot -g seahorse // PNG画像に座標目盛を付けます $ namdelbrot -w 2000 seahorse // PNG画像を2000x2000ピクセルで出力します $ namdelbrot -i 3000 seahorse // 計算の繰り返し上限値を3000にします(*2) $ namdelbrot -s 3 seahorse // オーバサンプリング値を3にします*2 : コンフィグファイルのmaxiter値と競合しますが、引数の値が優先されます