Skip to content

Commit 70b5d20

Browse files
authored
Merge pull request #3737 from asmorkalov:as/ubuntu_2404_warning_fix
More warning fixes for Ubuntu 24.04.
2 parents cb08ac6 + 96c9c85 commit 70b5d20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/intensity_transform/src/bimef.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,15 +226,15 @@ static Mat solveLinearEquation(const Mat_<float>& img, Mat_<float>& W_h_, Mat_<f
226226
Eigen::Map<const Eigen::VectorXf> tin(img_t.ptr<float>(), img_t.rows*img_t.cols);
227227
Eigen::VectorXf x = cg.solve(tin);
228228

229-
Mat_<float> tout(img.rows, img.cols);
230-
tout.forEach(
229+
Mat tout(img.rows, img.cols, CV_32FC1);
230+
tout.forEach<float>(
231231
[&](float &pixel, const int * position) -> void
232232
{
233233
pixel = x(position[1]*img.rows + position[0]);
234234
}
235235
);
236236

237-
return std::move(tout);
237+
return tout;
238238
}
239239

240240
static Mat_<float> tsmooth(const Mat_<float>& src, float lambda=0.01f, float sigma=3.0f, float sharpness=0.001f)

0 commit comments

Comments
 (0)