SURFFeature.scale#

property SURFFeature.scale: Any[source]#

Scale of feature

Returns:

Scale

Return type:

float or list of float

Raises:

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

Changed in version 2.5.0: Raises ValueError if the features have no scale. It used to return the keypoint size, which is a constant for a detector that has no scale.

Examples

>>> from machinevisiontoolbox import Image
>>> img = Image.Read("eiffel-1.png")
>>> orb = img.ORB()
>>> orb[0].scale
31.0
>>> orb[:5].scale
array([31., 31., 31., 31., 31.])