-
an instance of
SegmentMapthat maps theItemof a segment toGeomTraits::Segment_2orGeomTraits::Segment_3 -
Default:
SegmentMap()
|
CGAL 6.2 - Shape Detection
|
#include <CGAL/Shape_detection/Region_growing/Segment_set/Least_squares_line_fit_sorting.h>
Sorting of segments with respect to the local line fit quality.
Indices of input segments are sorted with respect to the quality of the least squares line fit applied to the vertices of incident segments of each segment.
| GeomTraits | a model of Kernel |
| NeighborQuery | a model of NeighborQuery |
| Item_ | a descriptor representing a given segment. Must be a model of Hashable. |
| SegmentMap | a model of ReadablePropertyMap whose key type is the value type of the input range and value type is GeomTraits::Segment_2 or GeomTraits::Segment_3 |
Types | |
| using | Item = Item_ |
| Item type. | |
| using | Seed_range = std::vector< Item > |
| Seed range. | |
Initialization | |
| template<typename InputRange , typename NamedParameters = parameters::Default_named_parameters> | |
| Least_squares_line_fit_sorting (const InputRange &input_range, NeighborQuery &neighbor_query, const NamedParameters &np=parameters::default_values()) | |
| initializes all internal data structures. | |
Sorting | |
| void | sort () |
sorts Items of input segments. | |
Access | |
| const Seed_range & | ordered () |
returns an instance of Seed_range to access the ordered Items of input segments. | |
| CGAL::Shape_detection::Segment_set::Least_squares_line_fit_sorting< GeomTraits, Item_, NeighborQuery, SegmentMap >::Least_squares_line_fit_sorting | ( | const InputRange & | input_range, |
| NeighborQuery & | neighbor_query, | ||
| const NamedParameters & | np = parameters::default_values() |
||
| ) |
initializes all internal data structures.
| NamedParameters | a sequence of Named Parameters |
| input_range | an instance of InputRange with 2D or 3D segments |
| neighbor_query | an instance of NeighborQuery that is used internally to access segment's neighbors |
| np | a sequence of Named Parameters among the ones listed below |
| InputRange | a model of ConstRange whose iterator type is InputIterator |
| |
| |
|
input_range.size() > 0