-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Clear optical distortion #2176
Clear optical distortion #2176
Conversation
Reviewer's Guide by SourceryThis PR removes the shift functionality from the OpticalDistortion transform, simplifying the optical distortion implementation by removing the ability to shift the distortion center. The distortion is now always centered at (0,0) for both camera matrix and fisheye models. Class diagram for OpticalDistortion changesclassDiagram
class OpticalDistortion {
-shift_limit: ScaleFloatType | None
+shift_limit: ScaleFloatType | None = None
distort_limit: ScaleFloatType
mode: Literal["camera", "fisheye"]
+get_params_dependent_on_data()
+get_transform_init_args_names() : tuple[str, ...]
}
note for OpticalDistortion "Removed shift_limit functionality and related parameters."
Class diagram for get_camera_matrix_distortion_maps and get_fisheye_distortion_maps changesclassDiagram
class get_camera_matrix_distortion_maps {
-cx: float
-cy: float
k: float
+get_camera_matrix_distortion_maps(image_shape: tuple[int, int], k: float) : tuple[np.ndarray, np.ndarray]
}
class get_fisheye_distortion_maps {
-cx: float
-cy: float
k: float
+get_fisheye_distortion_maps(image_shape: tuple[int, int], k: float) : tuple[np.ndarray, np.ndarray]
}
note for get_camera_matrix_distortion_maps "Removed cx and cy parameters."
note for get_fisheye_distortion_maps "Removed cx and cy parameters."
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ternaus - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟡 Testing: 2 issues found
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2176 +/- ##
=========================================
+ Coverage 0 89.74% +89.74%
=========================================
Files 0 47 +47
Lines 0 8433 +8433
=========================================
+ Hits 0 7568 +7568
- Misses 0 865 +865 ☔ View full report in Codecov by Sentry. |
Deprecated shift_limit in OpticalDistortion
Summary by Sourcery
Deprecate the shift_limit parameter in the OpticalDistortion class and update related documentation and tests.
Enhancements:
Documentation:
Tests: