feat: 添加多种图片黑白转换方式和实时预览功能#2
Open
NinthCode wants to merge 2 commits into
Open
Conversation
新增功能: - 添加7种图片黑白转换算法: * 阈值法(手动调整) * Floyd-Steinberg抖动 * 有序抖动 * 自适应阈值 * Otsu自动阈值 * Atkinson抖动(复古Mac风格) * 边缘保留(适合线稿) - 添加转换方式下拉菜单,支持实时切换 - 添加阈值调整滑块,支持实时预览 - 自动处理图片:转换为黑白并调整为596x832尺寸 - 支持多种图片格式输入(jpg、png、bmp等) 技术改进: - 添加numpy和scipy依赖用于高级图像处理 - 优化图片处理流程,保存原始图片用于重新处理 - 实现多种抖动算法和边缘检测算法 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This comment was marked as off-topic.
This comment was marked as off-topic.
Owner
|
感谢pr,但我测试下来有些算法的gamma调整似乎不太正常,而且性能开销似乎有点大,导致很卡 |
|
工业革命4.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
新增功能
添加7种图片黑白转换算法:
添加转换方式下拉菜单,支持实时切换
添加阈值调整滑块,支持实时预览
自动处理图片:转换为黑白并调整为596x832尺寸
支持多种图片格式输入(jpg、png、bmp等)
技术改进
测试
已在 macOS 上测试所有转换方式,预览功能正常。
🤖 Generated with Claude Code