Skip to content

Commit

Permalink
Merge pull request #37 from KumarLabJax/fix-corner-features
Browse files Browse the repository at this point in the history
Fix corner features
  • Loading branch information
SkepticRaven authored May 6, 2024
2 parents 913a063 + e3ef844 commit 202cc44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/feature_extraction/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from .segmentation_features import SegmentationFeatureGroup


FEATURE_VERSION = 7
FEATURE_VERSION = 8

_FEATURE_MODULES = [
BaseFeatureGroup,
Expand Down
4 changes: 4 additions & 0 deletions src/feature_extraction/landmark_features/corner.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ def get_distances(self, identity: int) -> typing.Tuple[np.ndarray, np.ndarray]:
except KeyError:
return distances, bearings

# points and convex hulls are in y,x
# corners are x,y so flip them to match points and convex hulls
corners = np.flip(corners, axis=-1)

for frame in range(self._poses.num_frames):

# don't scale the point coordinates by the pixel_scale value,
Expand Down

0 comments on commit 202cc44

Please sign in to comment.