Aim: Set of static methods that create digital straight segments (DSS) from some input parameters, eg. patterns (or reversed patterns) from two upper leaning points (or lower leaning points).
More...
|
static DSS | createSubsegment (const DSL &aDSL, const Point &aF, const Point &aL) |
|
static DSS | createSubsegment (const DSS &aDSS, const Point &aF, const Point &aL) |
|
static DSS | createPattern (const Point &aF, const Point &aL) |
| Method that creates a DSS that is a pattern or a repetition of a pattern from two input digital points, viewed as upper leaning points.
|
|
static DSS | createReversedPattern (const Point &aF, const Point &aL) |
| Method that creates a DSS that is a reversed pattern or a repetition of a reversed pattern from two input digital points, viewed as lower leaning points. Creates the pattern from aL to aF and negates the result.
|
|
static DSS | createDSS (const Coordinate &aA, const Coordinate &aB, const Point &aF, const Point &aL, const Point &aU) |
| Method that creates a DSS from a direction vector, a first and last point and one upper leaning point.
|
|
template<typename TCoordinate, typename TInteger = TCoordinate, unsigned short adjacency = 8>
class DGtal::ArithmeticalDSSFactory< TCoordinate, TInteger, adjacency >
Aim: Set of static methods that create digital straight segments (DSS) from some input parameters, eg. patterns (or reversed patterns) from two upper leaning points (or lower leaning points).
Description of template class 'ArithmeticalDSSFactory'
- Template Parameters
-
TCoordinate | a model of integer for the DGtal point coordinate |
TInteger | a model of integer for the DSS parameters (a, b, mu, omega) |
adjacency | a integer equal to 8 (default) for naive and 8-connected DSS, and 4 for standard and 4-connected DSS. |
Definition at line 73 of file ArithmeticalDSSFactory.h.
template<typename TCoordinate , typename TInteger = TCoordinate, unsigned short adjacency = 8>
Method that creates a DSS from a direction vector, a first and last point and one upper leaning point.
- Parameters
-
aA | y-component of the direction vector |
aB | x-component of the direction vector |
aF | first input digital point |
aL | second input digital point |
aU | upper leaning point |
- Returns
- a DSS
NB: logarithmic-time in the max of the greatest component of the vector starting from aU and pointing to aL and the greatest component of the vector starting from aF and pointing to aU.
template<typename TCoordinate , typename TInteger = TCoordinate, unsigned short adjacency = 8>
Construction of the left subsegment of minimal parameters of a greater DSS. It is bound by the first point of aDSS on the left and by aL on the right.
- Parameters
-
aDSS | bounding DSS |
aL | last point of the subsegment |
NB: logarithmic-time in the greatest component of the direction vector of the subsegment. Uses reversedSmartCH algorithm [Roussillon 2014 : [105]].
template<typename TCoordinate , typename TInteger = TCoordinate, unsigned short adjacency = 8>
Method that creates a DSS that is a pattern or a repetition of a pattern from two input digital points, viewed as upper leaning points.
- Parameters
-
aF | first input digital point |
aL | second input digital point |
NB: logarithmic-time in the greatest component of the vector starting from aF and pointing to aL
template<typename TCoordinate , typename TInteger = TCoordinate, unsigned short adjacency = 8>
Method that creates a DSS that is a reversed pattern or a repetition of a reversed pattern from two input digital points, viewed as lower leaning points. Creates the pattern from aL to aF and negates the result.
- See also
- createPattern
- Parameters
-
aF | first input digital point |
aL | second input digital point |
NB: logarithmic-time in the greatest component of the vector starting from aF and pointing to aL