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

Bugfix radon transform #3847

Open
wants to merge 5 commits into
base: 4.x
Choose a base branch
from
Open

Conversation

Dugnom
Copy link

@Dugnom Dugnom commented Dec 12, 2024

This PR solves #3846, see description of the problems and proposed fixes there.

Pull Request Readiness Checklist

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

David Schwer added 5 commits December 12, 2024 14:18
By using Point2f we can set the rotation center correctly in the center of the image instead of slightly offset
We use a shift of 1 to move the center to a non integer coordinate.
Since shift of 1 means we will half the center vector and the diameter, we have to double them in the circle definition

We added the LINE_8 default value, to add the shift value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants