1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-23 00:49:38 +08:00

Merge pull request #3734 from asmorkalov:as/std_move_warning

Fixed Wredundant-move produced by GCC 13.2 (Ubuntu 24.04). #3734

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [x] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
This commit is contained in:
Alexander Smorkalov
2024-05-15 14:20:55 +03:00
committed by GitHub
parent 6b1faf0d9b
commit cb08ac6b2e
10 changed files with 87 additions and 86 deletions

View File

@@ -91,7 +91,7 @@ struct Scene
{
virtual ~Scene() {}
static Ptr<Scene> create(Size sz, Matx33f _intr, float _depthFactor, bool onlySemisphere);
virtual Mat depth(Affine3f pose) = 0;
virtual Mat_<float> depth(const Affine3f& pose) = 0;
virtual std::vector<Affine3f> getPoses() = 0;
};
@@ -131,7 +131,7 @@ struct SemisphereScene : Scene
return res;
}
Mat depth(Affine3f pose) override
Mat_<float> depth(const Affine3f& pose) override
{
Mat_<float> frame(frameSize);
Reprojector reproj(intr);
@@ -139,7 +139,7 @@ struct SemisphereScene : Scene
Range range(0, frame.rows);
parallel_for_(range, RenderInvoker<SemisphereScene>(frame, pose, reproj, depthFactor, onlySemisphere));
return std::move(frame);
return frame;
}
std::vector<Affine3f> getPoses() override