FOUND
Loading...
Searching...
No Matches
edge.hpp
1#ifndef SRC_DISTANCE_EDGE_HPP_
2#define SRC_DISTANCE_EDGE_HPP_
3
4#include <memory>
5#include <functional>
6
7#include "common/style.hpp"
8#include "common/pipeline/stages.hpp"
9
10namespace found {
11
16class EdgeDetectionAlgorithm : public FunctionStage<Image, Points> {};
17
25 public:
33 SimpleEdgeDetectionAlgorithm(unsigned char threshold, int borderLength, decimal offset) :
34 threshold_(threshold), borderLength_(borderLength), offset_(offset) {}
35
38
52 Points Run(const Image &image) override;
53
54 private:
56 unsigned char threshold_;
60 decimal offset_;
61};
62
69 public:
73 LoCEdgeDetectionAlgorithm(/*Put more fields here!*/);
74
78 virtual ~LoCEdgeDetectionAlgorithm(/*Put more fields here!*/);
79
87 Points Run(const Image &image) override;
88 private:
89 // useful fields specific to this algorithm and helper methods
90};
91
105Components ConnectedComponentsAlgorithm(const Image &image, std::function<bool(uint64_t, const Image &)> Criteria);
106
107} // namespace found
108
109#endif // SRC_DISTANCE_EDGE_HPP_
The EdgeDetection Algorithm class houses the Edge Detection Algorithm.
Definition edge.hpp:16
A FunctionStage is a data structure that wraps a function, and taking in parameter Input and returnin...
Definition stages.hpp:56
The LoGEdgeDetection Algorithm class houses the Edge Detection Algorithm.
Definition edge.hpp:68
Points Run(const Image &image) override
Place documentation here.
virtual ~LoCEdgeDetectionAlgorithm()
Place documentation here.
LoCEdgeDetectionAlgorithm()
Place documentation here.
The SimpleEdgeDetection Algorithm class houses the Edge Detection Algorithm.
Definition edge.hpp:24
decimal offset_
The edge offset to use.
Definition edge.hpp:60
Points Run(const Image &image) override
Provides an estimate of the edge points of Earth, as the shared edge between space and Earth.
Definition edge.cpp:19
int borderLength_
The border length to use.
Definition edge.hpp:58
SimpleEdgeDetectionAlgorithm(unsigned char threshold, int borderLength, decimal offset)
Constructs a new SimpleEdgeDetectionAlgorithm.
Definition edge.hpp:33
unsigned char threshold_
The space-ether threshold to use.
Definition edge.hpp:56
virtual ~SimpleEdgeDetectionAlgorithm()
Destroys the algorithm.
Definition edge.hpp:37
Represents an image.
Definition style.hpp:34