Skip to content

A bug in HoughLinesSDiv #20751

@Cocoaxx

Description

@Cocoaxx

image
HoughLinesSDiv use this pivot to get line whose accumalor value is greater than threshold, and it has been kept at the end in the vector lst.
image
So when create outputarray, in this scenario, lines, whose height is equal to the size of the lst, but skip over the initialization of the last element of lines , leaving the value undefined.
image
Actually, the pivot is always at the end of the vector lst. It would be reasonable to solve this problem by creating lines with the height equal to lst.size()-1.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions