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

Radon Transform #3739

Open
1 of 4 tasks
GerhardZangerl opened this issue May 17, 2024 · 0 comments
Open
1 of 4 tasks

Radon Transform #3739

GerhardZangerl opened this issue May 17, 2024 · 0 comments
Labels

Comments

@GerhardZangerl
Copy link

System Information

openCV version 4.9.0-dev
Ubuntu 22.04.4 LTS

Detailed description

The Radon Transform provided by openCV changes its src contrary to its documentation. I fixed that behavior locally by changing:

Mat _srcMat = src.getMat() ---> Mat _srcMat = src.getMat().clone();

in the "radon_transform.cc" file.

Steps to reproduce

After the call

double thetastep = 1.0
double  startAngle = -20;
double endAngle = 20;
cv::ximgproc::RadonTransform(matRef, radMatRef, thetaStep, startAngle, endAngle, true);

the cv::Mat matRef seess to be chagen. More detailed: I was using the Radon Transform within a loop when i recognized the behavior.

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)
@mshabunin mshabunin transferred this issue from opencv/opencv May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant