Question: OpenCV s function HoughLinesP prunes the detected lines into line segments that do not extend beyond the objects they belong to . Now, it s

OpenCVs function HoughLinesP prunes the detected lines into line segments that do not extend beyond the objects they belong to. Now, its our turn to implement one ourselves! Please write a function named myHoughLineSegments and then compare your results with OpenCVs function in your write-up. Show at least one image for each and briefly describe the differences.
lines = myHoughLineSegments(lineRho, lineTheta, Im)
Your function should output lines as a vector of lines containing the pixel locations of the start and end points of each line segment in the image. Remember to save your implementation in the ec/ directory.
Your code can not call on OpenCVs HoughLinesP function, or any other similar func- tions. You may use HoughLinesP for comparison and debugging.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!