こんにちは、でめきんです。 matplotlibを使ってカラー表示をする際、既存のカラーマップでは満足がいかないことがあると思います。 そんな時は自作でカラーマップを作ってしまおうというのが今回の企画です。 準備 カラーマップ表示するには、どの値 ...
matplotlibのカラーマップをmatplotlib.get_cmapで取得し、0~1の任意の位置の色情報を拾ってiRIC用のカラーマップ設定ファイルを作成できます。 clorname.csvおよびcolormap_setting_file_converter.pyではclorname.csvにカラーマップの名前のみ記載し、分割数は一括で設定します。
Map graphs drawn with Matplotlib to AR markers with OpenCV. Map the 2D graph of Matplotlib to the AR marker of the input image (sample.png) and output the result as the output image (out-sample.png).