Skip to content

Radon Transform #3739

Open
Open
@GerhardZangerl

Description

@GerhardZangerl

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions