python计算机视觉编程
wugui1111
拙看似慢,实则最快!
展开
-
python计算机视觉Chapter1 fig1-1
代码: # -*- coding: utf-8 -*- ''' created on Thursday June 21 23:05 2018 @author: Jerry ''' from PIL import Image from pylab import * # 添加中文字体支持 import matplotlib as mpl font = mpl.font_manager.FontPr...原创 2018-06-22 11:10:24 · 292 阅读 · 0 评论 -
python计算机视觉Chapter1 fig1-2
代码: # -*- coding: utf-8 -*- """ created on Friday June 22 16:48 2018 @author: Jerry """ # 使用 Matplotlib 绘制点和线 from PIL import Image from pylab import * # 添加中文字体支持 import matplot原创 2018-06-22 17:16:04 · 251 阅读 · 0 评论 -
python计算机视觉Chapter1 fig1-3
图像的轮廓绘制时,使用的是全局阈值。 代码: # -*- coding: utf-8 -*- """ created on Friday June 22 17:22 2018 @author: Jerry """ # 使用 Matplotlib 绘制图像等轮廓线和直方图 from PIL import Image from pylab import * # 添加中文字体支持 import ...原创 2018-06-22 17:42:50 · 273 阅读 · 0 评论 -
python计算机视觉Chapter1 fig1-4
通过np.arange(0,255,1)实现x轴序列 python不像Matlab绘制曲线时需要hold on,多个plot就直接显示在一条直线上了 给图像添加图例使用的是plot(x,y1,label='y1=x'),使用legend()显示图例,同样,只需要显示一次就行 # -*- coding: utf-8 -*- """ created on Friday June 22 17:47...原创 2018-06-22 19:10:02 · 216 阅读 · 0 评论 -
python计算机视觉Chapter1 fig1-5
代码: # -*- coding: utf-8 -*- """ created on Friday June 22 19:15 2018 @author: Jerry """ # 添加中文字体支持 import matplotlib as mpl mpl.rcParams['font.sans-serif']=[u'SimHei'] # 图像的灰度变换 from PIL import Ima...原创 2018-06-22 19:30:36 · 210 阅读 · 0 评论