Open GerhardZangerl opened 1 month ago
openCV version 4.9.0-dev Ubuntu 22.04.4 LTS
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.
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.
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
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