OpenCV 4.5.3(日本語機械翻訳)
hfs.hpp
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
5 #include "opencv2/core.hpp"
6
7 namespace cv { namespace hfs {
8
45 class CV_EXPORTS_W HfsSegment : public Algorithm {
46 public:
47
54 CV_WRAP virtual void setSegEgbThresholdI(float c) = 0;
55CV_WRAP virtual float getSegEgbThresholdI() = 0;
56
57
63 CV_WRAP virtual void setMinRegionSizeI(int n) = 0;
64CV_WRAP virtual int getMinRegionSizeI() = 0;
65
66
73 CV_WRAP virtual void setSegEgbThresholdII(float c) = 0;
74CV_WRAP virtual float getSegEgbThresholdII() = 0;
75
76
81 CV_WRAP virtual void setMinRegionSizeII(int n) = 0;
82CV_WRAP virtual int getMinRegionSizeII() = 0;
83
84
94 CV_WRAP virtual void setSpatialWeight(float w) = 0;
95CV_WRAP virtual float getSpatialWeight() = 0;
96
97
105 CV_WRAP virtual void setSlicSpixelSize(int n) = 0;
106CV_WRAP virtual int getSlicSpixelSize() = 0;
107
108
113 CV_WRAP virtual void setNumSlicIter(int n) = 0;
114CV_WRAP virtual int getNumSlicIter() = 0;
115
125 CV_WRAP virtual Mat performSegmentGpu(InputArray src, bool ifDraw = true) = 0;
126
131 CV_WRAP virtual Mat performSegmentCpu(InputArray src, bool ifDraw = true) = 0;
132
144 CV_WRAP static Ptr<HfsSegment> create(int height, int width,
145 float segEgbThresholdI = 0.08f, int minRegionSizeI = 100,
146 float segEgbThresholdII = 0.28f, int minRegionSizeII = 200,
147 float spatialWeight = 0.6f, int slicSpixelSize = 8, int numSlicIter = 5);
148
149};
150
152
153}} // namespace cv { namespace hfs {
This is a base class for all more or less complex algorithms in OpenCV
Definition: core.hpp:3091
n-dimensional dense array class
Definition: mat.hpp:802
Definition: hfs.hpp:45
cv
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75
Definition: cvstd_wrapper.hpp:74