OpenCV 4.5.3(日本語機械翻訳)
lsc.hpp
1 /*********************************************************************
2 * Software License Agreement (BSD License)
3 *
4 * Copyright (c) 2014, 2015
5 * Zhengqin Li <li-zq12 at mails dot tsinghua dot edu dot cn>
6 * Jiansheng Chen <jschenthu at mail dot tsinghua dot edu dot cn>
7 * Tsinghua University
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
11 * are met:
12 *
13 * * Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * * Redistributions in binary form must reproduce the above
16 * copyright notice, this list of conditions and the following
17 * disclaimer in the documentation and/or other materials provided
18 * with the distribution.
19 * * Neither the name of the copyright holders nor the names of its
20 * contributors may be used to endorse or promote products derived
21 * from this software without specific prior written permission.
22 *
23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
26 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
27 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
28 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
29 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
30 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
33 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 * POSSIBILITY OF SUCH DAMAGE.
35 *********************************************************************/
36
37 /*
38
39 "Superpixel Segmentation using Linear Spectral Clustering"
40 Zhengqin Li, Jiansheng Chen, IEEE Conference on Computer Vision and Pattern
41 Recognition (CVPR), Jun. 2015
42
43 OpenCV port by: Cristian Balint <cristian dot balint at gmail dot com>
44 */
45
46 #ifndef __OPENCV_LSC_HPP__
47 #define __OPENCV_LSC_HPP__
48 #ifdef __cplusplus
49
50 #include <opencv2/core.hpp>
51
52 namespace cv
53{
54 namespace ximgproc
55{
56
59
71 class CV_EXPORTS_W SuperpixelLSC : public Algorithm
72{
73 public:
74
78 CV_WRAP virtual int getNumberOfSuperpixels() const = 0;
79
94 CV_WRAP virtual void iterate( int num_iterations = 10 ) = 0;
95
106 CV_WRAP virtual void getLabels( OutputArray labels_out ) const = 0;
107
118 CV_WRAP virtual void getLabelContourMask( OutputArray image, bool thick_line = true ) const = 0;
119
129 CV_WRAP virtual void enforceLabelConnectivity( int min_element_size = 25 ) = 0;
130
131
132};
133
150 CV_EXPORTS_W Ptr<SuperpixelLSC> createSuperpixelLSC( InputArray image, int region_size = 10, float ratio = 0.075f );
151
153
154}
155}
156 #endif
157 #endif
cv
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75