FREAKFeature.orientation#

property FREAKFeature.orientation: Any[source]#

Orientation of feature

Returns:

Orientation in radians

Return type:

float or list of float

Raises:

ValueError – if the features have no orientation, such as FAST or Harris features

Changed in version 2.5.0: Raises ValueError if the features have no orientation. It used to return a constant for a detector that has no orientation.

Examples

>>> from machinevisiontoolbox import Image
>>> img = Image.Read("eiffel-1.png")
>>> orb = img.ORB()
>>> orb[0].orientation
np.float64(2.6065742432372345)
>>> orb[:5].orientation
array([2.6066, 0.2142, 0.9037, 1.3356, 3.9888])