|
| | GridMap (float cellSize=0.1f) |
| | Constructs an empty map with a default cell size of 0.1 m. More...
|
| |
| | GridMap (const Size2i &size, float cellSize, const Point2i &offset=Point2i(0, 0)) |
| |
| | GridMap (const Rect2f ®ion, float cellSize) |
| | Creates a new grid map that covers the specified region. More...
|
| |
| | GridMap (const Rect2i ®ion, float cellSize) |
| |
| | GridMap (const Base &data, float cellSize, const Point2i &offset=Point2i(0, 0)) |
| | Construct a grid map from existing image. More...
|
| |
| float | getCellSize () const |
| | Returns the size of each cell in meter. More...
|
| |
| Point2i | getOffset () const |
| | Returns the offset of the map, e.g. the index of the cell that is located in the origin. More...
|
| |
| Point2i | getMapOffset () const |
| | Provided for backward compatibility. Use getOffset() instead. More...
|
| |
| Point2f | getWorldOffset () const |
| | Returns the offset of the map in metric coordinates. More...
|
| |
| GridMap & | operator= (const CellType &c) |
| |
| GridMap | clone () const |
| |
| Rect2f | getRegion () const |
| | Returns the region that is covered by the GridMap. More...
|
| |
| Rect2i | getMapRegion () const |
| | Returns the region that is covered by the GridMap in grid cells. More...
|
| |
| void | grow (const Rect2f ®ion, const CellType &valueForNewCells) |
| | Grows the map so that the specified region is covered by the map. More...
|
| |
| void | grow (const Rect2i ®ion, const CellType &valueForNewCells) |
| |
| void | grow (const Point2i &growLowerLeftDelta, const Point2i &growUpperRightDelta, const CellType &valueForNewCells) |
| | Grows the map by decreasing its minCorner by growLowerLeftDelta and increasing its maxCorner by growUpperRightDelta. More...
|
| |
| void | clip (const Rect2i ®ion, const CellType &valueForNewCells) |
| | Grows and optionally crops the map to cover the specified region while minimizing copying of memory. More...
|
| |
| void | clip (const Rect2f ®ion, const CellType &valueForNewCells) |
| |
| Point2i | world2map (const Point2f &p, bool roundDown=true) const |
| | Convert a given point to map coordinates. More...
|
| |
| Point2f | world2mapf (const Point2f &p) const |
| | Convert a given point to map coordinates. More...
|
| |
| Point2f | map2world (const Point2i &p) const |
| | Convert a given point to world coordinates. More...
|
| |
| Point2f | map2world (const Point2f &p) const |
| | Convert a given point to world coordinates. More...
|
| |
| Rect2i | world2map (const Rect2f &r, bool includeBorder=true) const |
| | Returns the Rect in cell coordinates that is covered by the given rect that is specified in world coordinates. More...
|
| |
| template<typename Derived > |
| void | reflect (BinarySerializer< Derived > &r) |
| | Reflect method for serialization. More...
|
| |
| template<typename Derived > |
| void | reflect (BinaryDeserializer< Derived > &r) |
| | Reflect method for deserialization. More...
|
| |
| void | reflect (JSONSerializer &r) |
| | Reflect method for text visualization. More...
|
| |
| ImgPixel< T, Channels > * | operator[] (int y) |
| |
| const ImgPixel< T, Channels > * | operator[] (int y) const |
| |
| Img< T, Channels > | operator() (const cv::Rect &roi) |
| |
| Img< T, Channels > | operator() (const cv::Rect &roi) const |
| |
| ImgPixel< T, Channels > & | operator() (int x, int y) |
| |
| const ImgPixel< T, Channels > & | operator() (int x, int y) const |
| |
| ImgPixel< T, Channels > & | operator() (const cv::Point &p) |
| |
| const ImgPixel< T, Channels > & | operator() (const cv::Point &p) const |
| |
| iterator | begin () |
| |
| const_iterator | begin () const |
| |
| iterator | end () |
| |
| const_iterator | end () const |
| |
| | operator const cv::Mat & () const |
| |
| | operator cv::Mat & () |
| |
| void | assignROI (const cv::Rect &roi, const ImgBase &other) |
| |
| void | assignMask (const cv::Rect &roi, const ImgBase &other, const cv::Mat &mask) |
| |
| void | assignPolygon (const cv::Rect &roi, const ImgBase &other, const Polygon2i &poly) |
| |
| bool | operator== (const cv::Mat &other) const |
| |
| bool | operator!= (const cv::Mat &other) const |
| |
| const cv::Mat & | getMat () const |
| |
| bool | empty () const |
| |
| int | width () const |
| |
| int | height () const |
| |
| std::size_t | step () const |
| |
| std::size_t | bytesPerLine () const |
| |
| Size2i | size () const |
| |
| int | depth () const |
| |
| int | channels () const |
| |
| bool | isEmpty () const |
| |
| uint8 * | data () |
| |
| const uint8 * | data () const |
| |
| uint8 * | data (int y) |
| |
| const uint8 * | data (int y) const |
| |
| ImgFormat | format () const |
| |
| void | resize (const Size2i &s) |
| |
| void | resize (int width, int height) |
| |
| void | clear () |
| |
| std::size_t | total () const |
| |
template<typename T, int Channels = 1>
class mira::maps::GridMap< T, Channels >
y ^
|
+—+—+
| |v,u|
+—+—+
|0,0|0,1|
+—+—+–>
0 csize x