Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Hyperplane and Ray API #1963

Merged
merged 17 commits into from
Oct 28, 2022
Merged

Add Hyperplane and Ray API #1963

merged 17 commits into from
Oct 28, 2022

Conversation

edgarriba
Copy link
Member

Changes

Fixes #1753

Type of change

  • 📚 Documentation Update
  • 🧪 Tests Cases
  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • 🔬 New feature (non-breaking change which adds functionality)
  • 🚨 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📝 This change requires a documentation update

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Did you update CHANGELOG in case of a major change?

kornia/geometry/plane.py Outdated Show resolved Hide resolved
@edgarriba edgarriba changed the title Add Hypeplane and Ray Add Hyperplane and Ray API Oct 26, 2022
@edgarriba edgarriba marked this pull request as ready for review October 28, 2022 10:14
kornia/testing/__init__.py Show resolved Hide resolved


# NOTE: not very clear if this is a module or custom Tensor
# tensor subclass doesn't like to override methods
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Module, I guess

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

@edgarriba edgarriba Oct 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/cc @stevenlovegrove for awareness— context is a discussion we had in slack to model a BaseVectorType to mimic Eigen::Vector , Eigen::Matrix, etc to build on top of that things like Vec2, Vec3, RotationMatrix, HomographyMatrix, ProjectionMatrix, etc.

also one attempt is did some time ago to model a Image api, that maybe we could align with new Sophus Image or pangolin : #1562

Only "drawback" is that will be pytorch only , while we have been recently exploring how to extend/adapt Kornia code to run given other backends like numpy/numba, triton, jax, etc

@edgarriba edgarriba merged commit 696a31e into master Oct 28, 2022
@edgarriba edgarriba deleted the add-hyperplane branch October 28, 2022 13:07
johnnv1 pushed a commit to johnnv1/kornia that referenced this pull request Apr 5, 2023
* initial commit for hyperplane

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fixes and add tests

* add fit_plane

* add line plane intersection

* add intersect mask

* fix test

* make Ray alias

* jit ignore

* remove line from plane for now

* implement dot, squared_norm

* add note comment

* restore kornia check type

* better message

* undo jit ignore

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Hyperplane api
2 participants