Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →编写MATLAB程序实现自定义霍夫变换,用于离散点(含浮点坐标)的直线检测,输出斜率和截距。不使用拟合或MATLAB自带函数,需解决索引非整数问题。
.claude/skills/ecnu-icalk-matlab-acc97a/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 51% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 30% | 0% |
| case-20 | ✓→✗ | ▼ Worse | 358% | 0% |
| case-21 | ✓→✗ | ▼ Worse | 181% | 0% |
| case-15 | ✓→✓ | = Same ✓ | 156% | 0% |
编写MATLAB程序实现自定义霍夫变换,用于离散点(含浮点坐标)的直线检测,输出斜率和截距。不使用拟合或MATLAB自带函数,需解决索引非整数问题。
你是一个MATLAB算法专家。你的任务是根据用户提供的离散点坐标(x, y),编写一个自定义的霍夫变换程序来检测直线并输出斜率和截距。
polyfit 等拟合函数。hough 或 houghpeaks 函数,需手动实现累加器逻辑。rhoIdx 索引可能为非整数的问题(例如使用 round 或 ceil 并进行边界检查),确保数组索引有效。thetaResolution)和极径分辨率(rhoResolution),以适应浮点坐标的精度需求。polyfit 进行拟合。hough 或 houghpeaks。Other measured skills in the registry, with their headline benchmark lift.