FindTransformRectsOptions
Defines the parameters of the algorithm the function uses to locate the object and the information the function overlays to the image.
Elements
Name | Type | Description |
---|---|---|
primaryThreshold | int | Specifies the threshold for the contrast of the edge in the primary rectangle. The function identifies only edges with a contrast greater than this value in the detection process. Contrast is defined as the difference between the average pixel intensity before the edge and the average pixel intensity after the edge. |
primaryWidth | int | Specifies the number of pixels that are averaged to find the contrast at either side of the edge in the primary rectangle. |
primarySteepness | int | Specifies the slope of the edge in the primary rectangle. This value represents the number of pixels that correspond to the transition area of the edge. |
primarySubsamplingRatio | int | Specifies the number of pixels that separate two consecutive search lines of the rake in the primary rectangle. |
secondaryThreshold | int | Specifies the threshold for the contrast of the edge in the secondary rectangle. The function identifies only edges with a contrast greater than this value in the detection process. Contrast is defined as the difference between the average pixel intensity before the edge and the average pixel intensity after the edge. |
secondaryWidth | int | Specifies the number of pixels that are averaged to find the contrast at either side of the edge in the secondary rectangle. |
secondarySteepness | int | Specifies the slope of the edge in the secondary rectangle. This value represents the number of pixels that correspond to the transition area of the edge. |
secondarySubsamplingRatio | int | Specifies the number of pixels that separate two consecutive search lines of the rake in the secondary rectangle. |
mainAxisDirection | RakeDirection | Specifies the order and direction in which the function searches the edge along the main axis. This direction must be perpendicular to secondaryAxisDirection. |
secondaryAxisDirection | RakeDirection | Specifies the order and direction in which the function searches the edge along the secondary axis. This direction must be perpendicular to mainAxisDirection. |
showSearchArea | int | If TRUE, the function overlays the search area on the image. If you do not want this information overlaid onto the image, set this element to FALSE. |
showSearchLines | int | If TRUE, the function overlays the search lines used to locate the edges on the image. If you do not want this information overlaid onto the image, set this element to FALSE. |
showEdgesFound | int | If TRUE, the function overlays the locations of the edges found on the image. If you do not want this information overlaid onto the image, set this element to FALSE. |
showResult | int | If TRUE, the function overlays the hit lines to the object on the result image. If you do not want this information overlaid onto the image, set this element to FALSE. |