BRIEFFeature.drawKeypoints#

BRIEFFeature.drawKeypoints(image: Any, drawing: ndarray | None = None, isift: Any = None, color: tuple[int, int, int] = (0, 255, 0), flags: int = 4, **kwargs: Any) Any#

Render keypoints into image

Parameters:
  • image (Image) – original image

  • drawing (_type_, optional) – _description_, defaults to None

  • isift (_type_, optional) – _description_, defaults to None

  • flags (_type_, optional) – _description_, defaults to cv2.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS

Returns:

image with rendered keypoints

Return type:

Image instance

If image is None then the keypoints are rendered over a black background.

Example:

>>> from machinevisiontoolbox import Image
>>> img = Image.Read("eiffel-1.png")
>>> orb = img.ORB()
>>> orb[0].p
array([[1030.],
       [ 702.]])
>>> orb[:5].p
array([[1030.,   93.,  993.,  647.,  754.],
       [ 702.,  713.,  709.,  690.,  705.]])