`
cakin24
  • 浏览: 1333855 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论

scipy的二维图像卷积运算

阅读更多

一 代码

  1. import numpy as np
  2. from scipy import signal, misc
  3. import matplotlib.pyplot as plt
  4. image = misc.ascent()#二维图像数组,lena图像
  5. w = np.zeros((50,50))#全0二维数组,卷积核
  6. w[0][0]=1.0#修改参数,调整滤波器
  7. w[49][25]=1.0#可以根据需要调整
  8. image_new = signal.fftconvolve(image, w)#使用FFT算法进行卷积
  9. plt.figure()
  10. plt.imshow(image_new)#显示滤波后的图像
  11. plt.gray()
  12. plt.title('Filtered image')
  13. plt.show()
二 运行结果

 
  • 大小: 153.7 KB
分享到:
评论

相关推荐

    Python scipy的二维图像卷积运算与图像模糊处理操作示例

    本文实例讲述了Python scipy的二维图像卷积运算与图像模糊处理操作。分享给大家供大家参考,具体如下: 二维图像卷积运算 一 代码 import numpy as np from scipy import signal, misc import matplotlib.pyplot as...

    Python使用scipy模块实现一维卷积运算示例

    本文实例讲述了Python使用scipy模块实现一维卷积运算。分享给大家供大家参考,具体如下: 一 介绍 signal模块包含大量滤波函数、B样条插值算法等等。下面的代码演示了一维信号的卷积运算。 二 代码 import numpy as...

    python scipy卷积运算的实现方法

    主要介绍了python scipy卷积运算的实现方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

    python 高斯分布二维高斯分布代码

    本代码为Python3.x,包括高斯分布及二维高斯分布代码,使用了numpy、scipy、matplotlib等包,适合初学者使用

    2.6. 使用Numpy和Scipy进行图像操作及处理.ipynb

    2.6. 使用Numpy和Scipy进行图像操作及处理

    Scipy Tutorial(Scipy教程)

    像插值,积分,优化,图像处理,统计,特殊函数等等。 scipy可以与其它标准科学计算程序库进行比较,比如GSL(GNU C或C++科学计算库),或者Matlab工具箱。scipy是Python中科学计算程序的核心包; 它用于有效地计算...

    scikit-image, 图像处理 SciKit ( 用于SciPy的工具箱).zip

    scikit-image, 图像处理 SciKit ( 用于SciPy的工具箱) scikit图像:python 中的图像处理 网站( 包括文档): http://scikit-image.org/邮件列表: https://mail.python.org/mailman/listinfo/scikit-

    scipy-ref-1.4.1.pdf_scipy_scipy1.4.1_scipypdf_源码

    scipy1.4.1帮助文档。搬运不易,感谢下载分享!

    python-scipy

    scipy是科学和工程计算工具。包括处理多维数组,多维数组可以是向量、矩阵、图形(图形图像是像素的二维数组)、表格(一个表格是一个二维数组);目前能处理的对象有:

    scipy-ref.pdf

    Specialfunctions(scipy.special)................................. 10 1.4 Integration(scipy.integrate)................................... 10 1.5 Optimization(optimize)......................................

    scipy python 机器学习库

    scipy是科学和工程计算工具。包括处理多维数组,多维数组可以是向量、矩阵、图形(图形图像是像素的二维数组)、表

    scipy5555.zip

    scipy1.4.1版本

    安装scipy必须的matplotlib

    python开发需要画图库scipy,而安装scipy前必须要先安装两个库,numpy和pylab,这个是win32版本的。

    scipy-0.19.0.zip

    scipy-0.19.0

    python scipy 学习手册

    python scipy 学习手册

    scipy-0.18.1.tar.gz

    scipy-0.18.1.tar.gz

    Elegant SciPy.pdf

    If you’re a scientist who programs with Python, this practical guide, Elegant SciPy not only teaches you the fundamental parts of SciPy and libraries related to it, but also gives you a taste for ...

    优雅的SciPy 英文版 Elegant SciPy

    Solve sparse matrix problems, including image segmentations, with SciPy’s sparse module Perform linear algebra by using SciPy packages Explore image alignment (registration) with SciPy’s optimize ...

Global site tag (gtag.js) - Google Analytics