|
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 | + |
36 | 5 | #include "precomp.hpp"
|
37 | 6 | #include <math.h>
|
38 | 7 | #include <vector>
|
|
43 | 12 |
|
44 | 13 | namespace cv {
|
45 | 14 | namespace ximgproc {
|
46 |
| -namespace st { |
| 15 | +namespace stMorph { |
47 | 16 |
|
48 | 17 | // normalizeAnchor; Copied from filterengine.hpp.
|
49 | 18 | static inline Point normalizeAnchor(Point anchor, Size ksize)
|
@@ -320,7 +289,7 @@ void erode(InputArray _src, OutputArray _dst, InputArray _kernel,
|
320 | 289 | Mat src = _src.getMat();
|
321 | 290 | Mat dst = _dst.getMat();
|
322 | 291 | Mat kernel = _kernel.getMat();
|
323 |
| - anchor = st::normalizeAnchor(anchor, kernel.size()); |
| 292 | + anchor = stMorph::normalizeAnchor(anchor, kernel.size()); |
324 | 293 |
|
325 | 294 | // iterations; is it needed yet?
|
326 | 295 | // borderType; BORDER_CONSTANT
|
|
0 commit comments