FOUND
Loading...
Searching...
No Matches
found::SimpleEdgeDetectionAlgorithm Class Reference

The SimpleEdgeDetection Algorithm class houses the Edge Detection Algorithm. More...

#include <edge.hpp>

Inheritance diagram for found::SimpleEdgeDetectionAlgorithm:
Collaboration diagram for found::SimpleEdgeDetectionAlgorithm:

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.
 
- Public Member Functions inherited from found::Stage< Image, Points >
 Stage ()=default
 Constructs a new Stage.
 
virtual ~Stage ()=default
 Destroys this.
 
void DoAction () override
 Executes Run (with a stored input and storing the output)
 
ImageGetResource ()
 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

- Protected Attributes inherited from found::Stage< Image, Points >
Image resource
 The stored input for this.
 
Pointsproduct
 The pointer to the stored output for this.
 

Detailed Description

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

Constructor & Destructor Documentation

◆ SimpleEdgeDetectionAlgorithm()

found::SimpleEdgeDetectionAlgorithm::SimpleEdgeDetectionAlgorithm ( unsigned char  threshold,
int  borderLength,
decimal  offset 
)
inline

Constructs a new SimpleEdgeDetectionAlgorithm.

Parameters
thresholdThe threshold to use for detecting space
borderLengthThe thickness of the image's borders
offsetThe offset to apply to edge points

◆ ~SimpleEdgeDetectionAlgorithm()

virtual found::SimpleEdgeDetectionAlgorithm::~SimpleEdgeDetectionAlgorithm ( )
inlinevirtual

Destroys the algorithm.

Member Function Documentation

◆ Run()

Points found::SimpleEdgeDetectionAlgorithm::Run ( const Image image)
overridevirtual

Provides an estimate of the edge points of Earth, as the shared edge between space and Earth.

Parameters
imageThe image of Earth
Returns
The points on Earth's edge in image
Postcondition
The edge points returned are in polar order, i.e. if we define the centroid of the points as P, for any three consecutive points A B and C, angle APB is less than angle APC

Implements found::Stage< Image, Points >.

Member Data Documentation

◆ borderLength_

int found::SimpleEdgeDetectionAlgorithm::borderLength_
private

The border length to use.

◆ offset_

decimal found::SimpleEdgeDetectionAlgorithm::offset_
private

The edge offset to use.

◆ threshold_

unsigned char found::SimpleEdgeDetectionAlgorithm::threshold_
private

The space-ether threshold to use.


The documentation for this class was generated from the following files: