| |
| |
| #ifndef RASTER_EDGE_EVALUATOR_H |
| #define RASTER_EDGE_EVALUATOR_H |
| |
| #include "tcg/tcg_sequence_ops.h" |
| #include "tcg/tcg_polylineops.h" |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| template <typename RanIt> |
| class RasterEdgeEvaluator |
| : public tcg::polyline_ops::StandardDeviationEvaluator<RanIt> { |
| double m_tolerance; |
| |
| double m_maxLength; |
| |
| public: |
| typedef typename tcg::polyline_ops::StandardDeviationEvaluator< |
| RanIt>::iterator_type iterator_type; |
| typedef |
| typename tcg::polyline_ops::StandardDeviationEvaluator<RanIt>::point_type |
| point_type; |
| typedef typename tcg::polyline_ops::StandardDeviationEvaluator< |
| RanIt>::penalty_type penalty_type; |
| |
| public: |
| RasterEdgeEvaluator(const iterator_type &begin, const iterator_type &end, |
| double tolerance, double maxLength); |
| |
| iterator_type furthestFrom(const iterator_type &it); |
| penalty_type penalty(const iterator_type &a, const iterator_type &b); |
| }; |
| |
| #endif |
| |
| #ifdef INCLUDE_HPP |
| #include "raster_edge_evaluator.hpp" |
| #endif |