Skip to content

Commit

Permalink
Change variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
travisdriver committed Nov 5, 2024
1 parent 90a8a5f commit 4f7b658
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gtsfm/frontend/detector_descriptor/colmap_sift.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ def detect_and_describe(self, image: Image) -> Tuple[Keypoints, np.ndarray]:
# Create pycolmap object every time as the object is not pickle-able.
# Note: cannot use SiftGPU as wheels are not built with CUDA support.
options = pycolmap.SiftExtractionOptions(max_num_features=self.max_keypoints)
colmap_obj = pycolmap.Sift(options)
sift_obj = pycolmap.Sift(options)

# Extract features.
features, descriptors = colmap_obj.extract(gray_image.value_array.astype(np.float32))
features, descriptors = sift_obj.extract(gray_image.value_array.astype(np.float32))

# Convert to GTSFM's keypoints.
# Note: Columns of features is x-coordinate, y-coordinate, scale, and orientation, respectively.
Expand Down

0 comments on commit 4f7b658

Please sign in to comment.