Linear edge detection method, one-dimensional measurement method, electronic equipment and medium
The invention provides a linear edge detection method, a one-dimensional measurement method, electronic equipment and a medium. The straight line edge detection method comprises the following steps: acquiring a grayscale image containing a straight line edge to be detected; setting a first ROI and a...
Gespeichert in:
Hauptverfasser: | , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides a linear edge detection method, a one-dimensional measurement method, electronic equipment and a medium. The straight line edge detection method comprises the following steps: acquiring a grayscale image containing a straight line edge to be detected; setting a first ROI and a plurality of first sub-regions; calculating a first coordinate point of an edge position in each first sub-region, and calculating a first included angle between the first fitting straight line and the first ROI; based on the first included angle, each first sub-region rotates relative to the grayscale image, and a rotated second ROI and a plurality of second sub-regions are obtained; calculating a second coordinate point of each second sub-region so as to judge the position relation between the edge searching direction of the second ROI and the edge of the to-be-detected straight line; if so, outputting a second coordinate point as a to-be-measured edge point; and otherwise, taking the rotated second ROI as the f |
---|