eVision C++ API 26.10.0-beta.2.dev
Loading...
Searching...
No Matches
eVision::EStitchingGridOrder Class Reference

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

#include <eVision/EasyImage/EStitchingGridOrder.h>

Collaboration diagram for eVision::EStitchingGridOrder:

Public Member Functions

 EStitchingGridOrder ()
 Constructs a EStitchingGridOrder::EStitchingGridOrder.
 EStitchingGridOrder (eVision::EStitchingGridStartingCorner gridStartingCorner, eVision::EStitchingGridTraversal traversal)
 Constructs a EStitchingGridOrder::EStitchingGridOrder.
virtual ~EStitchingGridOrder () throw ()
void SetGridTraversal (eVision::EStitchingGridTraversal gridTraversal)
 Sets the type of grid traversal to apply. When setting the grid traversal type to custom, a custom traversal must be set. The grid traversal is therefore ignored.
eVision::EStitchingGridTraversal GetGridTraversal () const
 Gets the type of grid traversal to apply.
void SetGridStartingCorner (eVision::EStitchingGridStartingCorner gridStartingCorner)
 Sets the grid position of the first image of the image list. When setting the grid traversal type to custom, a custom traversal must be set. The grid traversal is therefore ignored.
eVision::EStitchingGridStartingCorner GetGridStartingCorner () const
 Gets the grid position of the first image of the image list.
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 (int32_t colCount, int32_t rowCount, std::vector< 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.
std::vector< eVision::EIntPoint > GetCustomTraversal ()
 Gets the custom traversal.
 EStitchingGridOrder (CppWrapperInternal::InternalConstructor)

Public Attributes

CppWrapperInternal::WrappedClass wrappedClass_

Detailed Description

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

Constructor & Destructor Documentation

◆ EStitchingGridOrder() [1/3]

eVision::EStitchingGridOrder::EStitchingGridOrder ( )

◆ EStitchingGridOrder() [2/3]

eVision::EStitchingGridOrder::EStitchingGridOrder ( eVision::EStitchingGridStartingCorner gridStartingCorner,
eVision::EStitchingGridTraversal traversal )

Constructs a EStitchingGridOrder::EStitchingGridOrder.

Parameters
gridStartingCornerGrid starting corner, the grid position of the first image of the image list.
traversalType of grid traversal to apply.

◆ ~EStitchingGridOrder()

eVision::EStitchingGridOrder::~EStitchingGridOrder ( )
throw ( )
virtual

◆ EStitchingGridOrder() [3/3]

eVision::EStitchingGridOrder::EStitchingGridOrder ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ GetCustomTraversal()

std::vector< eVision::EIntPoint > eVision::EStitchingGridOrder::GetCustomTraversal ( )

Gets the custom traversal.

◆ GetGridStartingCorner()

eVision::EStitchingGridStartingCorner eVision::EStitchingGridOrder::GetGridStartingCorner ( ) const

Gets the grid position of the first image of the image list.

◆ GetGridTraversal()

eVision::EStitchingGridTraversal eVision::EStitchingGridOrder::GetGridTraversal ( ) const

Gets the type of grid traversal to apply.

◆ HasCustomTraversal()

bool eVision::EStitchingGridOrder::HasCustomTraversal ( )

Gets if a custom traversal (list of ordered image coordinates) has been set.

◆ ResetCustomTraversal()

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.

◆ SetCustomTraversal()

void eVision::EStitchingGridOrder::SetCustomTraversal ( int32_t colCount,
int32_t rowCount,
std::vector< 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):

coordinates = [
(1, 1), // 0
(2, 1), // 1
(2, 2), // 2
(1, 2), // 3
(0, 2), // 4
(0, 1), // 5
(0, 0), // 6
(1, 0), // 7
(2, 0), // 8
]

Each coordinate must be unique and the x and y components must be contained in [0, colCount[ and [0, rowCount[ respectively.

Parameters
colCountNumber of column for the grid being specified.
rowCountNumber of row for the grid being specified.
coordinatesList of ordered 2D coordinates.

◆ SetGridStartingCorner()

void eVision::EStitchingGridOrder::SetGridStartingCorner ( eVision::EStitchingGridStartingCorner gridStartingCorner)

Sets the grid position of the first image of the image list. When setting the grid traversal type to custom, a custom traversal must be set. The grid traversal is therefore ignored.

◆ SetGridTraversal()

void eVision::EStitchingGridOrder::SetGridTraversal ( eVision::EStitchingGridTraversal gridTraversal)

Sets the type of grid traversal to apply. When setting the grid traversal type to custom, a custom traversal must be set. The grid traversal is therefore ignored.

Member Data Documentation

◆ wrappedClass_

CppWrapperInternal::WrappedClass eVision::EStitchingGridOrder::wrappedClass_