Struct Edge
Defined in File Edge.h
Struct Documentation
-
struct Edge
Represents an edge between adjacent pixels in the image.
The edge is encoded by the indices of the two pixels. Edge cost is proportional to the difference in local orientations.
Public Static Functions
-
static int EdgeCost(float theta0, float theta1, float mag1)
EdgeCost Cost of an edge between two adjacent pixels; -1 no edge An edge exists between adjacent pixels if the magnitude of the intensity gradient at both pixels is above threshold. The edge cost is propportional to the difference in the local orientation at the two pixels. Lower cost is better. A cost of -1 means there is no edge here.
- Parameters:
theta0 –
theta1 –
mag1 –
- Returns:
-
static int EdgeCost(float theta0, float theta1, float mag1)