OpenCV 4.5.3(日本語機械翻訳)
run_length_morphology.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 #ifndef __OPENCV_RUN_LENGTH_MORPHOLOGY_HPP__
6 #define __OPENCV_RUN_LENGTH_MORPHOLOGY_HPP__
7
8 #include <opencv2/core.hpp>
9
10 namespace cv {
11 namespace ximgproc {
12 namespace rl {
13
14
17
28 CV_EXPORTS void threshold(InputArray src, OutputArray rlDest, double thresh, int type);
29
30
42 CV_EXPORTS void dilate(InputArray rlSrc, OutputArray rlDest, InputArray rlKernel, Point anchor = Point(0, 0));
43
57 CV_EXPORTS void erode(InputArray rlSrc, OutputArray rlDest, InputArray rlKernel,
58 bool bBoundaryOn = true, Point anchor = Point(0, 0));
59
68 CV_EXPORTS cv::Mat getStructuringElement(int shape, Size ksize);
69
79 CV_EXPORTS void paint(InputOutputArray image, InputArray rlSrc, const cv::Scalar& value);
80
87 CV_EXPORTS bool isRLMorphologyPossible(InputArray rlStructuringElement);
88
97 CV_EXPORTS void createRLEImage(const std::vector<cv::Point3i>& runs, OutputArray res, Size size = Size(0, 0));
98
113 CV_EXPORTS void morphologyEx(InputArray rlSrc, OutputArray rlDest, int op, InputArray rlKernel,
114 bool bBoundaryOnForErosion = true, Point anchor = Point(0,0));
115
116}
117}
118}
119 #endif
Definition: mat.hpp:386
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition: mat.hpp:295
n-dimensional dense array class
Definition: mat.hpp:802
Template class for specifying the size of an image or rectangle.
Definition: core/types.hpp:316
CV_EXPORTS_W void erode(InputArray src, OutputArray dst, InputArray kernel, Point anchor=Point(-1,-1), int iterations=1, int borderType=BORDER_CONSTANT, const Scalar &borderValue=morphologyDefaultBorderValue())
Erodes an image by using a specific structuring element.
CV_EXPORTS_W Mat getStructuringElement(int shape, Size ksize, Point anchor=Point(-1,-1))
Returns a structuring element of the specified size and shape for morphological operations.
CV_EXPORTS_W void morphologyEx(InputArray src, OutputArray dst, int op, InputArray kernel, Point anchor=Point(-1,-1), int iterations=1, int borderType=BORDER_CONSTANT, const Scalar &borderValue=morphologyDefaultBorderValue())
Performs advanced morphological transformations.
CV_EXPORTS_W void dilate(InputArray src, OutputArray dst, InputArray kernel, Point anchor=Point(-1,-1), int iterations=1, int borderType=BORDER_CONSTANT, const Scalar &borderValue=morphologyDefaultBorderValue())
Dilates an image by using a specific structuring element.
CV_EXPORTS_W double threshold(InputArray src, OutputArray dst, double thresh, double maxval, int type)
Applies a fixed-level threshold to each array element.
CV_EXPORTS void createRLEImage(const std::vector< cv::Point3i > &runs, OutputArray res, Size size=Size(0, 0))
Creates a run-length encoded image from a vector of runs (column begin, column end,...
CV_EXPORTS void paint(InputOutputArray image, InputArray rlSrc, const cv::Scalar &value)
Paint run length encoded binary image into an image.
CV_EXPORTS bool isRLMorphologyPossible(InputArray rlStructuringElement)
Check whether a custom made structuring element can be used with run length morphological operations....
cv
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75