图像编程

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Sep 26 12:41:46 2018

@author: luogan
"""

import numpy as np
from matplotlib import pyplot as plt

tt=np.array([[[2, 1, 225],
        [2, 2, 225]],

       [[255, 255, 5],
        [255, 255, 5]],

       [[5, 255, 255],
        [5, 255, 255]],

       [[255, 1, 255],
        [255, 1, 255]],

       [[ 23,  23, 255],
        [  23,   23, 255]]], dtype=float)

plt.imshow(tt)
plt.show()

在这里插入图片描述

posted @ 2018-09-26 12:44  luoganttcc  阅读(72)  评论(0编辑  收藏  举报