Skip to content

Commit 3b59fc1

Browse files
committed
ライセンス表記や名前空間、ドキュメントの修正
1 parent 6f39016 commit 3b59fc1

File tree

5 files changed

+16
-47
lines changed

5 files changed

+16
-47
lines changed

modules/ximgproc/include/opencv2/ximgproc.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@
117117
118118
The size of the original image is required for compatibility with the imgproc functions when the boundary handling requires that pixel outside the image boundary are
119119
"on".
120-
121-
@defgroup ximgproc_sparse_table_morphology Morphology operation with sparse table approach.
122120
@}
123121
*/
124122

modules/ximgproc/include/opencv2/ximgproc/sparse_table_morphology.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99

1010
namespace cv {
1111
namespace ximgproc {
12-
namespace st {
12+
namespace stMorph {
1313

14-
//! @addtogroup ximgproc_sparse_table_morphology
14+
//! @addtogroup imgproc_filter
1515
//! @{
1616

1717
/**
18-
* @brief Another implementation of cv::erode with sparse table approach.
18+
* @brief Faster implementation of cv::erode with sparse table concept.
1919
*
2020
* @param src input image; the number of channels can be arbitrary, but the depth should be one of
2121
* CV_8U, CV_16U, CV_16S, CV_32F or CV_64F.
@@ -36,7 +36,7 @@ CV_EXPORTS_W void erode( InputArray src, OutputArray dst, InputArray kernel,
3636
const Scalar& borderValue = morphologyDefaultBorderValue() );
3737

3838
/**
39-
* @brief Another implementation of cv::dilate with sparse table approach.
39+
* @brief Faster implementation of cv::dilate with sparse table concept.
4040
*
4141
* @param src input image; the number of channels can be arbitrary, but the depth should be one of
4242
* CV_8U, CV_16U, CV_16S, CV_32F or CV_64F.
@@ -57,7 +57,7 @@ CV_EXPORTS_W void dilate( InputArray src, OutputArray dst, InputArray kernel,
5757
const Scalar& borderValue = morphologyDefaultBorderValue() );
5858

5959
/**
60-
* @brief Another implementation of cv::morphologyEx with sparse table approach.
60+
* @brief Faster implementation of cv::morphologyEx with sparse table concept.
6161
6262
* @param src Source image. The number of channels can be arbitrary. The depth should be one of
6363
* CV_8U, CV_16U, CV_16S, CV_32F or CV_64F.

modules/ximgproc/perf/perf_sparse_table_morphology.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
// This file is part of OpenCV project.
22
// It is subject to the license terms in the LICENSE file found in the top-level directory
33
// of this distribution and at http://opencv.org/license.html.
4+
45
#include "perf_precomp.hpp"
56

67
namespace opencv_test {
7-
namespace st_morphology {
8+
namespace stMorph {
89

910
typedef tuple<int, Size, int> STParams;
1011

modules/ximgproc/src/sparse_table_morphology.cpp

Lines changed: 6 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,7 @@
1-
/*
2-
* By downloading, copying, installing or using the software you agree to this license.
3-
* If you do not agree to this license, do not download, install,
4-
* copy or use the software.
5-
*
6-
*
7-
* License Agreement
8-
* For Open Source Computer Vision Library
9-
* (3 - clause BSD License)
10-
*
11-
* Redistribution and use in source and binary forms, with or without modification,
12-
* are permitted provided that the following conditions are met :
13-
*
14-
* * Redistributions of source code must retain the above copyright notice,
15-
* this list of conditions and the following disclaimer.
16-
*
17-
* * Redistributions in binary form must reproduce the above copyright notice,
18-
* this list of conditions and the following disclaimer in the documentation
19-
* and / or other materials provided with the distribution.
20-
*
21-
* * Neither the names of the copyright holders nor the names of the contributors
22-
* may be used to endorse or promote products derived from this software
23-
* without specific prior written permission.
24-
*
25-
* This software is provided by the copyright holders and contributors "as is" and
26-
* any express or implied warranties, including, but not limited to, the implied
27-
* warranties of merchantability and fitness for a particular purpose are disclaimed.
28-
* In no event shall copyright holders or contributors be liable for any direct,
29-
* indirect, incidental, special, exemplary, or consequential damages
30-
* (including, but not limited to, procurement of substitute goods or services;
31-
* loss of use, data, or profits; or business interruption) however caused
32-
* and on any theory of liability, whether in contract, strict liability,
33-
* or tort(including negligence or otherwise) arising in any way out of
34-
* the use of this software, even if advised of the possibility of such damage.
35-
*/
1+
// This file is part of OpenCV project.
2+
// It is subject to the license terms in the LICENSE file found in the top-level directory
3+
// of this distribution and at http://opencv.org/license.html.
4+
365
#include "precomp.hpp"
376
#include <math.h>
387
#include <vector>
@@ -43,7 +12,7 @@
4312

4413
namespace cv {
4514
namespace ximgproc {
46-
namespace st {
15+
namespace stMorph {
4716

4817
// normalizeAnchor; Copied from filterengine.hpp.
4918
static inline Point normalizeAnchor(Point anchor, Size ksize)
@@ -320,7 +289,7 @@ void erode(InputArray _src, OutputArray _dst, InputArray _kernel,
320289
Mat src = _src.getMat();
321290
Mat dst = _dst.getMat();
322291
Mat kernel = _kernel.getMat();
323-
anchor = st::normalizeAnchor(anchor, kernel.size());
292+
anchor = stMorph::normalizeAnchor(anchor, kernel.size());
324293

325294
// iterations; is it needed yet?
326295
// borderType; BORDER_CONSTANT

modules/ximgproc/test/test_sparse_table_morphology.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
// This file is part of OpenCV project.
22
// It is subject to the license terms in the LICENSE file found in the top-level directory
33
// of this distribution and at http://opencv.org/license.html.
4+
45
#include "test_precomp.hpp"
56
#include "opencv2/ximgproc/sparse_table_morphology.hpp"
67
#include "opencv2/imgproc.hpp"
78

89
namespace opencv_test {
9-
namespace st_morphology {
10+
namespace stMorph {
1011

1112
TEST(ximgproc_SparseTableMorph, compare_with_original_erode)
1213
{
@@ -40,7 +41,7 @@ TEST(ximgproc_SparseTableMorph, compare_with_original_erode)
4041

4142
// proposal
4243
timer.start();
43-
ximgproc::st::erode(src, actual, kernel); // 217ms for Elipse, kSize = 101
44+
ximgproc::stMorph::erode(src, actual, kernel); // 217ms for Elipse, kSize = 101
4445
timer.stop();
4546
double proposalTime = timer.getTimeMilli();
4647

0 commit comments

Comments
 (0)