From e5d648d2d096b90e41a11d770c475243de87f9d7 Mon Sep 17 00:00:00 2001 From: Ruan <47767371+Ryyyc@users.noreply.github.com> Date: Sat, 19 Feb 2022 01:43:08 +0800 Subject: [PATCH] Merge pull request #21615 from No-Plane-Cannot-Be-Detected:5.x-ptcloud_comments Added 3D point cloud code comments and copyright 1. update the code comments. 2. add author information. --- modules/3d/include/opencv2/3d/ptcloud.hpp | 5 ++++- modules/3d/src/ptcloud/ptcloud_utils.cpp | 2 ++ modules/3d/src/ptcloud/ptcloud_utils.hpp | 2 ++ modules/3d/src/ptcloud/ptcloud_wrapper.hpp | 2 ++ modules/3d/src/ptcloud/sac_segmentation.cpp | 2 ++ modules/3d/src/ptcloud/sac_segmentation.hpp | 2 ++ modules/3d/src/ptcloud/sampling.cpp | 3 +++ modules/3d/test/test_sac_segmentation.cpp | 2 ++ modules/3d/test/test_sampling.cpp | 2 ++ 9 files changed, 21 insertions(+), 1 deletion(-) diff --git a/modules/3d/include/opencv2/3d/ptcloud.hpp b/modules/3d/include/opencv2/3d/ptcloud.hpp index 48b2c2f522..e11b689074 100644 --- a/modules/3d/include/opencv2/3d/ptcloud.hpp +++ b/modules/3d/include/opencv2/3d/ptcloud.hpp @@ -1,6 +1,8 @@ // This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. +// +// Copyright (C) 2021, Yechun Ruan #ifndef OPENCV_3D_PTCLOUD_HPP @@ -86,7 +88,8 @@ public: * @param[out] labels The label corresponds to the model number, 0 means it * does not belong to any model, range [0, Number of final resultant models obtained]. * @param[out] models_coefficients The resultant models coefficients. - * Currently supports passing in cv::Mat. Models coefficients are placed in a matrix of NxK, + * Currently supports passing in cv::Mat. Models coefficients are placed in a matrix of NxK + * with depth CV_64F (will automatically adjust if the passing one does not look like this), * where N is the number of models and K is the number of coefficients of one model. * The coefficients for each model refer to the comments inside enumeration type SacModelType. * @return Number of final resultant models obtained by segmentation. diff --git a/modules/3d/src/ptcloud/ptcloud_utils.cpp b/modules/3d/src/ptcloud/ptcloud_utils.cpp index 83066ac81c..8c386fd77a 100644 --- a/modules/3d/src/ptcloud/ptcloud_utils.cpp +++ b/modules/3d/src/ptcloud/ptcloud_utils.cpp @@ -1,6 +1,8 @@ // This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. +// +// Copyright (C) 2021, Yechun Ruan #include "../precomp.hpp" #include "ptcloud_utils.hpp" diff --git a/modules/3d/src/ptcloud/ptcloud_utils.hpp b/modules/3d/src/ptcloud/ptcloud_utils.hpp index e20e3aa28d..f0abc6b3f2 100644 --- a/modules/3d/src/ptcloud/ptcloud_utils.hpp +++ b/modules/3d/src/ptcloud/ptcloud_utils.hpp @@ -1,6 +1,8 @@ // This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. +// +// Copyright (C) 2021, Yechun Ruan #ifndef OPENCV_3D_PTCLOUD_UTILS_HPP diff --git a/modules/3d/src/ptcloud/ptcloud_wrapper.hpp b/modules/3d/src/ptcloud/ptcloud_wrapper.hpp index d9883c85c8..a915fc6485 100644 --- a/modules/3d/src/ptcloud/ptcloud_wrapper.hpp +++ b/modules/3d/src/ptcloud/ptcloud_wrapper.hpp @@ -1,6 +1,8 @@ // This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. +// +// Copyright (C) 2021, Yechun Ruan #ifndef OPENCV_3D_PTCLOUD_WRAPPER_HPP #define OPENCV_3D_PTCLOUD_WRAPPER_HPP diff --git a/modules/3d/src/ptcloud/sac_segmentation.cpp b/modules/3d/src/ptcloud/sac_segmentation.cpp index a6e582e471..de89dcd8a6 100644 --- a/modules/3d/src/ptcloud/sac_segmentation.cpp +++ b/modules/3d/src/ptcloud/sac_segmentation.cpp @@ -1,6 +1,8 @@ // This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. +// +// Copyright (C) 2021, Yechun Ruan #include "../precomp.hpp" diff --git a/modules/3d/src/ptcloud/sac_segmentation.hpp b/modules/3d/src/ptcloud/sac_segmentation.hpp index a1d297c5cf..7fe3b1ba27 100644 --- a/modules/3d/src/ptcloud/sac_segmentation.hpp +++ b/modules/3d/src/ptcloud/sac_segmentation.hpp @@ -1,6 +1,8 @@ // This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. +// +// Copyright (C) 2021, Yechun Ruan #ifndef OPENCV_3D_SAC_SEGMENTATION_HPP #define OPENCV_3D_SAC_SEGMENTATION_HPP diff --git a/modules/3d/src/ptcloud/sampling.cpp b/modules/3d/src/ptcloud/sampling.cpp index a31739543d..eee25f6d4c 100644 --- a/modules/3d/src/ptcloud/sampling.cpp +++ b/modules/3d/src/ptcloud/sampling.cpp @@ -1,6 +1,9 @@ // This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. +// +// Copyright (C) 2021, Yechun Ruan +// Acknowledgement of the support from Huawei Technologies Co., Ltd. #include "../precomp.hpp" diff --git a/modules/3d/test/test_sac_segmentation.cpp b/modules/3d/test/test_sac_segmentation.cpp index 1877594087..6ed7f1f597 100644 --- a/modules/3d/test/test_sac_segmentation.cpp +++ b/modules/3d/test/test_sac_segmentation.cpp @@ -1,6 +1,8 @@ // This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. +// +// Copyright (C) 2021, Wanli Zhong #include "test_precomp.hpp" diff --git a/modules/3d/test/test_sampling.cpp b/modules/3d/test/test_sampling.cpp index 5429f6906c..493eb20c23 100644 --- a/modules/3d/test/test_sampling.cpp +++ b/modules/3d/test/test_sampling.cpp @@ -1,6 +1,8 @@ // This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. +// +// Copyright (C) 2021, Wanli Zhong #include "test_precomp.hpp"