Defines the grid order when stitching in grid mode. The grid order is used to convert a linear index into coordinates. More...


Public Member Functions | |
| EStitchingGridOrder () | |
| Constructs a EStitchingGridOrder.EStitchingGridOrder. | |
| EStitchingGridOrder (eVision.EStitchingGridStartingCorner gridStartingCorner, eVision.EStitchingGridTraversal traversal) | |
| Constructs a EStitchingGridOrder.EStitchingGridOrder. | |
| bool | HasCustomTraversal () |
| Gets if a custom traversal (list of ordered image coordinates) has been set. | |
| void | ResetCustomTraversal () |
| Resets the custom traversal. If none are set or if the type of traversal is not set before using this class instance in the EImageStitcher an exception will be thrown. | |
| void | SetCustomTraversal (int colCount, int rowCount, eVision.EIntPoint[] coordinates) |
| Sets the custom traversal. The coordinates to specify is an ordered list of 2D coordinates where each image at index i is placed at the position (x, y) in the grid. | |
Properties | |
| eVision.EStitchingGridTraversal | GridTraversal [get, set] |
| Gets the type of grid traversal to apply. | |
| eVision.EStitchingGridStartingCorner | GridStartingCorner [get, set] |
| Gets the grid position of the first image of the image list. | |
| eVision.EIntPoint[] | CustomTraversal [get] |
| Gets the custom traversal. | |
Defines the grid order when stitching in grid mode. The grid order is used to convert a linear index into coordinates.
Two values are used to define the traversal. Here are some configuration examples:
License(s): EasyImage
| eVision.EStitchingGridOrder.EStitchingGridOrder | ( | ) |
Constructs a EStitchingGridOrder.EStitchingGridOrder.
| eVision.EStitchingGridOrder.EStitchingGridOrder | ( | eVision.EStitchingGridStartingCorner | gridStartingCorner, |
| eVision.EStitchingGridTraversal | traversal ) |
Constructs a EStitchingGridOrder.EStitchingGridOrder.
| gridStartingCorner | Grid starting corner, the grid position of the first image of the image list. |
| traversal | Type of grid traversal to apply. |
| bool eVision.EStitchingGridOrder.HasCustomTraversal | ( | ) |
Gets if a custom traversal (list of ordered image coordinates) has been set.
| void eVision.EStitchingGridOrder.ResetCustomTraversal | ( | ) |
Resets the custom traversal. If none are set or if the type of traversal is not set before using this class instance in the EImageStitcher an exception will be thrown.
| void eVision.EStitchingGridOrder.SetCustomTraversal | ( | int | colCount, |
| int | rowCount, | ||
| eVision.EIntPoint[] | coordinates ) |
Sets the custom traversal. The coordinates to specify is an ordered list of 2D coordinates where each image at index i is placed at the position (x, y) in the grid.
In the following example, we have a 3 by 3 grid where the traversal resembles a spiral:
| 6 | 7 | 8 | | 5 | 0 | 1 | | 4 | 3 | 2 |
The coordinates list to pass as arguments will look like (in pseudocode):
Each coordinate must be unique and the x and y components must be contained in [0, colCount[ and [0, rowCount[ respectively.
| colCount | Number of column for the grid being specified. |
| rowCount | Number of row for the grid being specified. |
| coordinates | List of ordered 2D coordinates. |
|
get |
Gets the custom traversal.
|
getset |
Gets the grid position of the first image of the image list.
|
getset |
Gets the type of grid traversal to apply.