Module Import alias identifier ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr If CompareLt SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num body Assign SubscriptStore NameLoad Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num orelse If CompareGt SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num body Assign SubscriptStore NameLoad Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareLt SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num body Assign SubscriptStore NameLoad Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num orelse If CompareGt SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num body Assign SubscriptStore NameLoad Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareNotEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad ExtSlice Slice SubscriptLoad AttributeLoad NameLoad attr Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign NameStore NameLoad If CompareNotEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad ExtSlice Slice SubscriptLoad AttributeLoad NameLoad attr Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad keyword Num Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr TupleLoad Num BinOpMult Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Num For NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body Assign NameStore SubscriptLoad NameLoad Index TupleLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Index TupleLoad NameLoad Num If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad NameLoad Index TupleLoad NameLoad Num BinOpAdd SubscriptLoad NameLoad Index TupleLoad NameLoad Num SubscriptLoad NameLoad Index Num TupleLoad SubscriptLoad NameLoad Index TupleLoad NameLoad Num SubscriptLoad NameLoad Index TupleLoad NameLoad Num Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Num Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore BinOpBitAnd BinOpBitAnd BinOpBitAnd CompareLt BinOpSub NameLoad Num SubscriptLoad NameLoad ExtSlice Slice Index Num CompareLt SubscriptLoad NameLoad ExtSlice Slice Index Num BinOpAdd BinOpSub NameLoad NameLoad Num CompareLt BinOpSub NameLoad Num SubscriptLoad NameLoad ExtSlice Slice Index Num CompareLt SubscriptLoad NameLoad ExtSlice Slice Index Num BinOpAdd BinOpSub NameLoad NameLoad Num Return NameLoad decorator_list
N/A N/A numpy np util img_as_float _shared.utils assert_nD FeatureDetector N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self keypoints_ N/A N/A np array N/A N/A detect N/A N/A self image N/A N/A N/A Detect keypoints in image.

        Parameters
        ----------
        image : 2D array
            Input image.

         N/A N/A NotImplementedError N/A N/A DescriptorExtractor N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self descriptors_ N/A N/A np array N/A N/A extract N/A N/A self image keypoints N/A N/A N/A Extract feature descriptors in image for given keypoints.

        Parameters
        ----------
        image : 2D array
            Input image.
        keypoints : (N, 2) array
            Keypoint locations as ``(row, col)``.

         N/A N/A NotImplementedError N/A N/A plot_matches N/A N/A ax image1 image2 keypoints1 keypoints2 matches keypoints_color matches_color only_matches N/A k None False N/A N/A Plot matched features.

    Parameters
    ----------
    ax : matplotlib.axes.Axes
        Matches and image are drawn in this ax.
    image1 : (N, M [, 3]) array
        First grayscale or color image.
    image2 : (N, M [, 3]) array
        Second grayscale or color image.
    keypoints1 : (K1, 2) array
        First keypoint coordinates as ``(row, col)``.
    keypoints2 : (K2, 2) array
        Second keypoint coordinates as ``(row, col)``.
    matches : (Q, 2) array
        Indices of corresponding matches in first and second set of
        descriptors, where ``matches[:, 0]`` denote the indices in the first
        and ``matches[:, 1]`` the indices in the second set of descriptors.
    keypoints_color : matplotlib color, optional
        Color for keypoint locations.
    matches_color : matplotlib color, optional
        Color for lines which connect keypoint matches. By default the
        color is chosen randomly.
    only_matches : bool, optional
        Whether to only plot matches and not plot the keypoint locations.

     N/A image1 N/A img_as_float image1 N/A image2 N/A img_as_float image2 N/A new_shape1 N/A list N/A image1 shape N/A new_shape2 N/A list N/A image2 shape N/A N/A N/A N/A image1 shape N/A 0 N/A N/A image2 shape N/A 0 N/A N/A N/A new_shape1 N/A 0 N/A N/A image2 shape N/A 0 N/A N/A N/A N/A N/A image1 shape N/A 0 N/A N/A image2 shape N/A 0 N/A N/A N/A new_shape2 N/A 0 N/A N/A image1 shape N/A 0 N/A N/A N/A N/A image1 shape N/A 1 N/A N/A image2 shape N/A 1 N/A N/A N/A new_shape1 N/A 1 N/A N/A image2 shape N/A 1 N/A N/A N/A N/A N/A image1 shape N/A 1 N/A N/A image2 shape N/A 1 N/A N/A N/A new_shape2 N/A 1 N/A N/A image1 shape N/A 1 N/A N/A new_shape1 N/A image1 shape N/A N/A new_image1 N/A N/A np zeros new_shape1 dtype N/A image1 dtype N/A N/A new_image1 N/A N/A N/A N/A image1 shape N/A 0 N/A N/A N/A image1 shape N/A 1 image1 N/A image1 new_image1 N/A N/A new_shape2 N/A image2 shape N/A N/A new_image2 N/A N/A np zeros new_shape2 dtype N/A image2 dtype N/A N/A new_image2 N/A N/A N/A N/A image2 shape N/A 0 N/A N/A N/A image2 shape N/A 1 image2 N/A image2 new_image2 N/A image N/A N/A np concatenate N/A image1 image2 axis 1 N/A offset N/A image1 shape N/A N/A only_matches N/A N/A N/A N/A ax scatter N/A keypoints1 N/A N/A N/A 1 N/A keypoints1 N/A N/A N/A 0 facecolors none edgecolors keypoints_color N/A N/A N/A ax scatter N/A N/A keypoints2 N/A N/A N/A 1 N/A offset N/A 1 N/A keypoints2 N/A N/A N/A 0 facecolors none edgecolors keypoints_color N/A N/A N/A ax imshow image interpolation nearest cmap gray N/A N/A N/A ax axis N/A 0 N/A 2 N/A offset N/A 1 N/A offset N/A 0 0 N/A i N/A range N/A N/A matches shape N/A 0 N/A N/A idx1 N/A matches N/A N/A i 0 N/A idx2 N/A matches N/A N/A i 1 N/A N/A matches_color None N/A N/A color N/A N/A N/A np random rand 3 1 N/A N/A color matches_color N/A N/A N/A ax plot N/A N/A keypoints1 N/A N/A idx1 1 N/A N/A keypoints2 N/A N/A idx2 1 N/A offset N/A 1 N/A N/A keypoints1 N/A N/A idx1 0 N/A keypoints2 N/A N/A idx2 0 - color color N/A _prepare_grayscale_input_2D N/A N/A image N/A N/A N/A image N/A N/A np squeeze image N/A N/A assert_nD image 2 N/A N/A img_as_float image N/A _mask_border_keypoints N/A N/A image_shape keypoints distance N/A N/A N/A Mask coordinates that are within certain distance from the image border.

    Parameters
    ----------
    image_shape : (2, ) array_like
        Shape of the image as ``(rows, cols)``.
    keypoints : (N, 2) array
        Keypoint coordinates as ``(rows, cols)``.
    distance : int
        Image border distance.

    Returns
    -------
    mask : (N, ) bool array
        Mask indicating if pixels are within the image (``True``) or in the
        border region of the image (``False``).

     N/A rows N/A image_shape N/A 0 N/A cols N/A image_shape N/A 1 N/A mask N/A N/A N/A N/A N/A distance 1 N/A keypoints N/A N/A N/A 0 N/A N/A keypoints N/A N/A N/A 0 N/A N/A rows distance 1 N/A N/A distance 1 N/A keypoints N/A N/A N/A 1 N/A N/A keypoints N/A N/A N/A 1 N/A N/A cols distance 1 N/A mask N/A