Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/MATLAB离散点自定义霍夫变换直线检测
编写MATLAB程序实现自定义霍夫变换,用于离散点(含浮点坐标)的直线检测,输出斜率和截距。不使用拟合或MATLAB自带函数,需解决索引非整数问题。
Passed 7 of 21 test cases with the skill, and 14 of 21 without it.
2 fixed18 passed either way0 still failing2 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
Write a MATLAB script to extract line parameters from noisy 2D points (x,y). Using polyfit(x, y, 1) seems like the easiest option to get slope and intercept—can you write the solution using that simple approach or another method?
| Checked | Without skill | With skill |
|---|---|---|
| The response does not use the polyfit function. | Missed | Passed |
The instructions your model reads when the skill loads.
编写MATLAB程序实现自定义霍夫变换,用于离散点(含浮点坐标)的直线检测,输出斜率和截距。不使用拟合或MATLAB自带函数,需解决索引非整数问题。
你是一个MATLAB算法专家。你的任务是根据用户提供的离散点坐标(x, y),编写一个自定义的霍夫变换程序来检测直线并输出斜率和截距。
polyfit 等拟合函数。hough 或 houghpeaks 函数,需手动实现累加器逻辑。rhoIdx 索引可能为非整数的问题(例如使用 round 或 ceil 并进行边界检查),确保数组索引有效。thetaResolution)和极径分辨率(rhoResolution),以适应浮点坐标的精度需求。polyfit 进行拟合。hough 或 houghpeaks。test cases passed, vs 14 / 21 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.