A breadth-first ImageTraversal.
More...
#include <BFS.h>
A breadth-first ImageTraversal.
Derived from base class ImageTraversal
◆ BFS()
BFS::BFS |
( |
const PNG & |
png, |
|
|
const Point & |
start, |
|
|
double |
tolerance |
|
) |
| |
Initializes a breadth-first ImageTraversal on a given png
image, starting at start
, and with a given tolerance
.
- Parameters
-
png | The image this BFS is going to traverse |
start | The start point of this BFS |
tolerance | If the current point is too different (difference larger than tolerance) with the start point, it will not be included in this BFS |
- Todo:
- [Part 1]
◆ add()
void BFS::add |
( |
const Point & |
point | ) |
|
|
virtual |
◆ begin()
Returns an iterator for the traversal starting at the first point.
- Todo:
- [Part 1]
Implements ImageTraversal.
◆ empty()
bool BFS::empty |
( |
| ) |
const |
|
virtual |
◆ end()
Returns an iterator for the traversal one past the end of the traversal.
- Todo:
- [Part 1]
Implements ImageTraversal.
◆ peek()
Point BFS::peek |
( |
| ) |
const |
|
virtual |
◆ pop()
The documentation for this class was generated from the following files:
- imageTraversal/BFS.h
- imageTraversal/BFS.cpp