MIRA
Classes | Namespaces | Functions
RasterPolygonUtils.h File Reference

Utilities for rasterPolygon. More...

#include <algorithm>
#include <geometry/Polygon.h>
Include dependency graph for RasterPolygonUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  EdgeCuts
 
struct  ActiveEdgeCuts
 
struct  Interval
 
class  Intervals
 

Namespaces

 mira
 specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
 
 mira::Private
 

Functions

Point2f roundAwayFromGrid (Point2f point)
 
void processEdge (const Point2f &current, const Point2f &prev, std::vector< EdgeCuts > &cuts)
 
template<class Transformation >
std::vector< EdgeCuts > createEdgeList (const Polygon2f &polygon, Transformation &&F)
 
bool intervalsOverlap (const Interval &interval1, const Interval &interval2)
 
int scaleDown (int numToRound, int multiple)
 
bool compareCurrentCut (const EdgeCuts &a, const EdgeCuts &b)
 
void removeEmptyEdges (ActiveEdgeCuts &activeEdges)
 move empty edges to front of container (and continue behind them) More...
 
void advanceEdgeCuts (ActiveEdgeCuts &activeEdges)
 advance edge cuts, move empty edges to front of container (and continue behind them) More...
 
template<class Visitor >
bool visitInterval (int x_start, int x_end, int y, Visitor &visitor)
 

Detailed Description

Utilities for rasterPolygon.

Author
Tom Mehner, Christof Schröter
Date
Dec 15, 2022