Python・numpyによるグレースケール画像の減色処理

python コンピュータ
python
256色を8色にするため32で割って整数値を32倍する。
img = np.uint8(img / 32) * 32

コメント