hitherdither:PIL中任意调色板的抖动算法

上传者: 42100032 | 上传时间: 2025-08-13 21:13:25 | 文件大小: 27KB | 文件类型: ZIP
希特迪瑟 受启发的软件包,实现了可与一起使用的抖动算法。 描述 这个模块是一个小扩展,增加了一个更易于管理的调色板对象和几种抖动算法: 误差扩散抖动 弗洛伊德-斯坦伯格 贾维斯·朱迪斯·宁克 斯塔基 伯克斯 塞拉利昂3 塞拉利昂2 塞拉2-4A 史蒂文森·阿切 阿特金森 标准有序抖动 拜耳矩阵 簇点矩阵 任意平方阈值矩阵(尚未实现) Yliluoma的有规律的抖动处理(请参阅 ) 算法1 算法2(尚未实现) 算法3(尚未实现) 抖动算法适用于任意调色板以及RGB和灰度图像。 安装 pip install git+https://www.github.com/hbldh/hitherdither 用法 使用中位数切割调色板进行拜耳抖动处理: from PIL import Image import hitherdither img = Image . open ( '

文件下载

资源详情

[{"title":"( 30 个子文件 27KB ) hitherdither:PIL中任意调色板的抖动算法","children":[{"title":"hitherdither-master","children":[{"title":"MANIFEST.in <span style='color:#111;'> 27B </span>","children":null,"spread":false},{"title":"README.rst <span style='color:#111;'> 3.00KB </span>","children":null,"spread":false},{"title":".coveragerc <span style='color:#111;'> 164B </span>","children":null,"spread":false},{"title":"Pipfile <span style='color:#111;'> 213B </span>","children":null,"spread":false},{"title":".github","children":[{"title":"ISSUE_TEMPLATE.md <span style='color:#111;'> 371B </span>","children":null,"spread":false},{"title":"workflows","children":[{"title":"pypi-publish.yml <span style='color:#111;'> 865B </span>","children":null,"spread":false},{"title":"build_and_test.yml <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"tests","children":[{"title":"conftest.py <span style='color:#111;'> 882B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"test_palette.py <span style='color:#111;'> 4.88KB </span>","children":null,"spread":false},{"title":"test_bayer.py <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"run.py <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"requirements.txt <span style='color:#111;'> 27B </span>","children":null,"spread":false},{"title":"setup.py <span style='color:#111;'> 2.76KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 6.23KB </span>","children":null,"spread":false},{"title":"hitherdither","children":[{"title":"ordered","children":[{"title":"bayer.py <span style='color:#111;'> 2.44KB </span>","children":null,"spread":false},{"title":"cluster.py <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 65B </span>","children":null,"spread":false},{"title":"yliluoma","children":[{"title":"_algorithm_one.py <span style='color:#111;'> 6.01KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 58B </span>","children":null,"spread":false},{"title":"_utils.py <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"utils.py <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"data","children":[{"title":"__init__.py <span style='color:#111;'> 2.06KB </span>","children":null,"spread":false}],"spread":false},{"title":"palette.py <span style='color:#111;'> 7.85KB </span>","children":null,"spread":false},{"title":"diffusion.py <span style='color:#111;'> 4.59KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 369B </span>","children":null,"spread":false},{"title":"math","children":[{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":false},{"title":"__version__.py <span style='color:#111;'> 354B </span>","children":null,"spread":false},{"title":"exceptions.py <span style='color:#111;'> 356B </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明