Skip to content

Commit

Permalink
Update radon_transform.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
sturkmen72 authored Oct 21, 2024
1 parent f08a0da commit 72485cf
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions modules/ximgproc/src/radon_transform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

namespace cv {namespace ximgproc {
void RadonTransform(InputArray src,
OutputArray dst,
double theta,
double start_angle,
double end_angle,
bool crop,
bool norm)
OutputArray dst,
double theta,
double start_angle,
double end_angle,
bool crop,
bool norm)
{
CV_Assert(src.dims() == 2);
CV_Assert(src.channels() == 1);
Expand Down Expand Up @@ -56,12 +56,10 @@ namespace cv {namespace ximgproc {
_srcMat.cols, _srcMat.rows)));
}

double _t;
Mat _rotated_src;
Mat _radon(_row_num, _col_num, _out_mat_type);

// Define the parallel loop as a lambda function
cv::parallel_for_(Range(0, _col_num), [&](const Range& range) {
parallel_for_(Range(0, _col_num), [&](const Range& range) {
for (int _col = range.start; _col < range.end; _col++) {
// rotate the source by _t
double _t = (start_angle + _col * theta);
Expand Down

0 comments on commit 72485cf

Please sign in to comment.