feat: 简化版网格划分算法,适合课堂讲解

算法流程(仅划线,不分割):
1. 彩色图转灰度图
2. 横/纵轴投影:每列/行灰度值求和
3. 阈值 X = (max-min) × 10%
4. 曲线减去 X,正=斑点,负=空隙
5. 过零点配对,中点即划线位置

与原版误差为0,代码带详细中文注释。
This commit is contained in:
2026-05-06 20:21:19 +08:00
parent b8a8ff2bc6
commit ad8e5041f2
2 changed files with 189 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB