FOUND
|
The SimpleEdgeDetection Algorithm class houses the Edge Detection Algorithm. More...
#include <edge.hpp>
Public Member Functions | |
SimpleEdgeDetectionAlgorithm (unsigned char threshold, int borderLength, decimal offset) | |
Constructs a new SimpleEdgeDetectionAlgorithm. | |
virtual | ~SimpleEdgeDetectionAlgorithm () |
Destroys the algorithm. | |
Points | Run (const Image &image) override |
Provides an estimate of the edge points of Earth, as the shared edge between space and Earth. | |
![]() | |
Stage ()=default | |
Constructs a new Stage. | |
virtual | ~Stage ()=default |
Destroys this. | |
void | DoAction () override |
Executes Run (with a stored input and storing the output) | |
Image & | GetResource () |
Returns the stored input of this. | |
Points *& | GetProduct () |
Returns the stored output of this. | |
Private Attributes | |
unsigned char | threshold_ |
The space-ether threshold to use. | |
int | borderLength_ |
The border length to use. | |
decimal | offset_ |
The edge offset to use. | |
Additional Inherited Members | |
![]() | |
Image | resource |
The stored input for this. | |
Points * | product |
The pointer to the stored output for this. | |
The SimpleEdgeDetection Algorithm class houses the Edge Detection Algorithm.
This algorithm uses a picture of Earth and finds all points on the horizon within the picture by employing thresholding to identify "space", and then figure out the contour of "space" that is shared by Earth's edge, returning that as the result
|
inline |
Constructs a new SimpleEdgeDetectionAlgorithm.
threshold | The threshold to use for detecting space |
borderLength | The thickness of the image's borders |
offset | The offset to apply to edge points |
|
inlinevirtual |
Destroys the algorithm.
Provides an estimate of the edge points of Earth, as the shared edge between space and Earth.
image | The image of Earth |
Implements found::Stage< Image, Points >.
|
private |
The border length to use.
|
private |
The edge offset to use.
|
private |
The space-ether threshold to use.