keypoints
keypoints
#
keypoints — the SIFT features of one image, expressed at its stored size.
MAX_KEYPOINTS = 8192
module-attribute
#
The strongest features kept per image.
ROOT_SIFT_SCALE = 512.0
module-attribute
#
Maps a unit-length RootSIFT descriptor onto uint8 the way COLMAP stores it.
keypoints(image, max_dimension=1600)
#
The SIFT features of image, with RootSIFT descriptors and sampled colours.
The detector runs on the grey image, downscaled when its longest side
exceeds max_dimension; every position and scale is mapped back to the
stored image's pixels, so a feature means the same thing whatever size it
was found at. Descriptors are RootSIFT — L1-normalised, square-rooted —
so a Euclidean distance between them is the Hellinger distance between
the original histograms, which matches better than plain SIFT.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
image
|
Image
|
The photograph. |
required |
max_dimension
|
int
|
The longest side, in pixels, the detector runs at. |
1600
|
Source code in capturegraph-recipes/capturegraph_recipes/sfm/correspondence/keypoints.py
root_sift(descriptors)
#
SIFT descriptors as uint8 RootSIFT: L1-normalised, square-rooted, scaled.