OpenCV 4.5.3(日本語機械翻訳)
slic.hpp
1 /*********************************************************************
2 * Software License Agreement (BSD License)
3 *
4 * Copyright (c) 2013
5 * Radhakrishna Achanta
6 * email : Radhakrishna [dot] Achanta [at] epfl [dot] ch
7 * web : http://ivrl.epfl.ch/people/achanta
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 "SLIC Superpixels Compared to State-of-the-art Superpixel Methods"
39 Radhakrishna Achanta, Appu Shaji, Kevin Smith, Aurelien Lucchi, Pascal Fua,
40 and Sabine Susstrunk, IEEE TPAMI, Volume 34, Issue 11, Pages 2274-2282,
41 November 2012.
42
43 "SLIC Superpixels" Radhakrishna Achanta, Appu Shaji, Kevin Smith,
44 Aurelien Lucchi, Pascal Fua, and Sabine Süsstrunk, EPFL Technical
45 Report no. 149300, June 2010.
46
47 OpenCV port by: Cristian Balint <cristian dot balint at gmail dot com>
48 */
49
50 #ifndef __OPENCV_SLIC_HPP__
51 #define __OPENCV_SLIC_HPP__
52 #ifdef __cplusplus
53
54 #include <opencv2/core.hpp>
55
56 namespace cv
57{
58 namespace ximgproc
59{
60
63
64 enum SLICType { SLIC = 100, SLICO = 101, MSLIC = 102 };
65
78 class CV_EXPORTS_W SuperpixelSLIC : public Algorithm
79{
80 public:
81
85 CV_WRAP virtual int getNumberOfSuperpixels() const = 0;
86
101 CV_WRAP virtual void iterate( int num_iterations = 10 ) = 0;
102
113 CV_WRAP virtual void getLabels( OutputArray labels_out ) const = 0;
114
125 CV_WRAP virtual void getLabelContourMask( OutputArray image, bool thick_line = true ) const = 0;
126
136 CV_WRAP virtual void enforceLabelConnectivity( int min_element_size = 25 ) = 0;
137
138
139};
140
160 CV_EXPORTS_W Ptr<SuperpixelSLIC> createSuperpixelSLIC( InputArray image, int algorithm = SLICO,
161 int region_size = 10, float ruler = 10.0f );
162
164
165}
166}
167 #endif
168 #endif
cv
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75