Detects straight lines in a BW8 image using Hough transform. More...


Public Member Functions | |
| ELineDetector (eVision.ELineDetector other) | |
| Copy operator. | |
| ELineDetector () | |
| Constructs an ELineDetector.ELineDetector with all parameters explicitly specified. | |
| ELineDetector (float rho, float theta, int threshold, float minLineLength, float maxLineGap, float angleThresholdDegrees) | |
| Copy operator. | |
| void | Save (string path) |
| Saves the detector configuration to a file. | |
| void | Load (string path) |
| Loads a detector configuration from a file. | |
| void | Save (eVision.ESerializer serializer) |
| Saves the detector configuration to a serializer. | |
| void | Load (eVision.ESerializer serializer) |
| Loads a detector configuration from a serializer. | |
| eVision.ELine[] | Detect (eVision.EROIBW8 image) |
| Detects straight lines in the given BW8 image. | |
| eVision.ELine[] | Detect (eVision.EROIBW8 image, eVision.ERegion region, eVision.EFrame frame) |
| Detects lines in the area of the image covered by region (transformed to sensor coordinates via frame), then maps results back to local frame coordinates. | |
| eVision.ELine[] | Detect (eVision.EROIBW8 image, eVision.ERegion region) |
| Detects lines in the area of the image covered by region. | |
| eVision.ELine[] | Detect (eVision.EROIBW8 image, eVision.EFrame frame) |
| Detects lines in the image and maps results to local frame coordinates via frame. | |
| eVision.ELine[] | Detect (eVision.ERegion region, eVision.EFrame frame) |
| Transforms region to sensor coordinates via frame, converts it to a binary image, detects lines, then maps results back to local frame coordinates. | |
| eVision.ELine[] | Detect (eVision.ERegion region) |
| Converts region to a binary image and detects lines in it. | |
| void | StopProcess () |
| Thread-safe. Requests the Detect call running on another thread to stop as soon as possible; it then returns no lines. The request is discarded when the next Detect call starts. | |
Properties | |
| float | RadialBinSize [get, set] |
| Distance resolution of the accumulator in pixels. Default is 1. | |
| float | AngularBinSize [get, set] |
| Angle resolution of the accumulator in degrees. Default is 1. | |
| int | MinNumVotes [get, set] |
| Minimum number of votes to qualify as a line. Default is 150. | |
| float | MinLineLength [get, set] |
| Minimum length of a detected line segment in pixels. Shorter segments are discarded. Default is 164. | |
| float | MaxLineGap [get, set] |
| Maximum gap between two collinear segments to still merge them into one line. Default is 64. | |
| float | AngleThreshold [get, set] |
| Maximum angular difference in degrees between two segments to consider them part of the same line. Default is 35°. | |
| eVision.ELine[] | SegmentsBeforeMerging [get] |
| Returns the raw line segments that were merged to build the lines, as returned by the last call to ELineDetector.Detect. | |
Detects straight lines in a BW8 image using Hough transform.
License(s): EasyImage
| eVision.ELineDetector.ELineDetector | ( | eVision.ELineDetector | other | ) |
Copy operator.
| other | Another ELineDetector. |
| eVision.ELineDetector.ELineDetector | ( | ) |
Constructs an ELineDetector.ELineDetector with all parameters explicitly specified.
| eVision.ELineDetector.ELineDetector | ( | float | rho, |
| float | theta, | ||
| int | threshold, | ||
| float | minLineLength, | ||
| float | maxLineGap, | ||
| float | angleThresholdDegrees ) |
Copy operator.
| eVision.ELine[] eVision.ELineDetector.Detect | ( | eVision.ERegion | region | ) |
Converts region to a binary image and detects lines in it.
| region | Region to convert and detect lines in. |
| eVision.ELine[] eVision.ELineDetector.Detect | ( | eVision.ERegion | region, |
| eVision.EFrame | frame ) |
Transforms region to sensor coordinates via frame, converts it to a binary image, detects lines, then maps results back to local frame coordinates.
| region | Region in local frame coordinates. |
| frame | Frame used to transform region and results. |
| eVision.ELine[] eVision.ELineDetector.Detect | ( | eVision.EROIBW8 | image | ) |
Detects straight lines in the given BW8 image.
| image | Input BW8 image. |
| eVision.ELine[] eVision.ELineDetector.Detect | ( | eVision.EROIBW8 | image, |
| eVision.EFrame | frame ) |
Detects lines in the image and maps results to local frame coordinates via frame.
| image | Input BW8 image. |
| frame | Frame used to transform results to local coordinates. |
| eVision.ELine[] eVision.ELineDetector.Detect | ( | eVision.EROIBW8 | image, |
| eVision.ERegion | region ) |
Detects lines in the area of the image covered by region.
| image | Input BW8 image. |
| region | Region of interest in image coordinates. |
| eVision.ELine[] eVision.ELineDetector.Detect | ( | eVision.EROIBW8 | image, |
| eVision.ERegion | region, | ||
| eVision.EFrame | frame ) |
Detects lines in the area of the image covered by region (transformed to sensor coordinates via frame), then maps results back to local frame coordinates.
| image | Input BW8 image. |
| region | Region of interest in local frame coordinates. |
| frame | Frame used to transform region and results. |
| void eVision.ELineDetector.Load | ( | eVision.ESerializer | serializer | ) |
Loads a detector configuration from a serializer.
| serializer | Source serializer in read mode. |
| void eVision.ELineDetector.Load | ( | string | path | ) |
Loads a detector configuration from a file.
| path | Path to the input file. |
| void eVision.ELineDetector.Save | ( | eVision.ESerializer | serializer | ) |
Saves the detector configuration to a serializer.
| serializer | Target serializer in write mode. |
| void eVision.ELineDetector.Save | ( | string | path | ) |
Saves the detector configuration to a file.
| path | Path to the output file. |
| void eVision.ELineDetector.StopProcess | ( | ) |
Thread-safe. Requests the Detect call running on another thread to stop as soon as possible; it then returns no lines. The request is discarded when the next Detect call starts.
|
getset |
Maximum angular difference in degrees between two segments to consider them part of the same line. Default is 35°.
|
getset |
Angle resolution of the accumulator in degrees. Default is 1.
|
getset |
Maximum gap between two collinear segments to still merge them into one line. Default is 64.
|
getset |
Minimum length of a detected line segment in pixels. Shorter segments are discarded. Default is 164.
|
getset |
Minimum number of votes to qualify as a line. Default is 150.
|
getset |
Distance resolution of the accumulator in pixels. Default is 1.
|
get |
Returns the raw line segments that were merged to build the lines, as returned by the last call to ELineDetector.Detect.