登录
首页 » Python » lena

lena

于 2019-06-10 发布
0 204
下载积分: 1 下载次数: 2

代码说明:

说明:  SLIC算法是simple linear iterative cluster的简称,该算法用来生成超像素(superpixel) 算法步骤: 已知一副图像大小M*N,可以从RGB空间转换为LAB空间,LAB颜色空间表现的颜色更全面 假如预定义参数K,K为预生成的超像素数量,即预计将M*N大小的图像(像素数目即为M*N)分隔为K个超像素块,每个超像素块范围大小包含[(M*N)/K]个像素 假设每个超像素区域长和宽都均匀分布的话,那么每个超像素块的长和宽均可定义为S,S=sqrt(M*N/K) 遍历操作,将每个像素块的中心点的坐标(x,y)及其lab的值保存起来,加入到事先定义好的集合中(Algorithmic steps: Given the size of an image M*N, it can be converted from RGB space to LAB space, and the color space of LAB is more comprehensive. If the predefined parameter K, K is the number of pre-generated super-pixels, i.e., the image of M*N size (the number of pixels is M*N) is expected to be divided into K super-pixel blocks, each of which contains [(M*N)/K] pixels. Assuming that the length and width of each super-pixel region are evenly distributed, the length and width of each super-pixel block can be defined as S, S = sqrt (M*N/K). The traversal operation saves the coordinates (x, y) and lab values of the central points of each pixel block and adds them to a pre-defined set.)

文件列表:

lena.py, 5593 , 2019-06-10

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • diveintopythonzh-cn-5.4b-code
    python工具书查询,之前看到的,资料还不错,可以参考学习下(Reference books for python)
    2020-06-18 07:40:02下载
    积分:1
  • KENPAVE
    说明:  kenpave,路面力学分析软件,及其强大好用的分析,可用于沥青和水泥路面(Kenpave, pavement mechanics analysis software)
    2020-12-05 18:59:24下载
    积分:1
  • 这是一个简单的留言板源码,请大家多多,希望有用
    这是一个简单的留言板源码,请大家多多,希望有用-This is a simple message board source code, please lot of hope that useful
    2022-11-15 18:35:04下载
    积分:1
  • tsmc18rf2016
    说明:  TSMC 018 for ADS2016
    2020-09-22 10:57:50下载
    积分:1
  • web前端黑客技术揭秘
    说明:  学习前端安全必备,php程序员可以借鉴学习(Learning Front End Safety Necessary)
    2019-06-10 16:28:44下载
    积分:1
  • stm32_sx1278_rx_test
    说明:  通信与stm32进行通信 更改宏定义可更改接受和发射(Communication with STM32 Change macro definition Changeable acceptance and transmission)
    2020-06-22 19:00:02下载
    积分:1
  • CodeV v2007a
    说明:  matlab 和codev接口,cvon打开引擎,cvoff关闭引擎,更多查看content.m(matlab codev interface, cvon open the engine, cvoff close the engine, for more view the content.m)
    2021-03-15 20:29:22下载
    积分:1
  • Flash定时图片滚动特效
    Flash定时图片滚动特效,是一个基于图片的滚动列表特效,在间隔一定时间内,自动滚动,在Flash中设置好时间,即可实现定时自动滚动图片,右上角的NEXT按钮,可手动控制图片列表滚动至下一组,从整体看上去,适合购物网站使用。
    2022-08-12 13:34:47下载
    积分:1
  • 粒子群、模拟退火算法
    说明:  粒子群、模拟退火算法实例,对学习了解有用(Particle swarm, simulated annealing algorithm examples, useful for learning)
    2019-05-24 08:38:44下载
    积分:1
  • 操盘手里面的可用指标,比较实用! 的 后续为 DAF
    操盘手里面的可用指标,比较实用! 的 后续为 DAF-操盘手里面的可用指标,比较实用!的 后续为 DAF
    2022-02-14 05:35:38下载
    积分:1
  • 696518资源总数
  • 106164会员总数
  • 18今日下载