OpenCV 4.5.3(日本語機械翻訳)
imgproc/hal/hal.hpp
1 #ifndef CV_IMGPROC_HAL_HPP
2 #define CV_IMGPROC_HAL_HPP
3
4 #include "opencv2/core/cvdef.h"
5 #include "opencv2/core/cvstd.hpp"
6 #include "opencv2/core/hal/interface.h"
7
8 namespace cv { namespace hal {
9
12
13 //---------------------------
15
16 struct CV_EXPORTS Filter2D
17{
18 CV_DEPRECATED static Ptr<hal::Filter2D> create(uchar * , size_t , int ,
19 int , int ,
20 int , int ,
21 int , int ,
22 int , double ,
23 int , int ,
24 bool , bool );
25 virtual void apply(uchar * , size_t ,
26 uchar * , size_t ,
27 int , int ,
28 int , int ,
29 int , int ) = 0;
30 virtual ~Filter2D() {}
31};
32
33 struct CV_EXPORTS SepFilter2D
34{
35 CV_DEPRECATED static Ptr<hal::SepFilter2D> create(int , int , int ,
36 uchar * , int ,
37 uchar * , int ,
38 int , int ,
39 double , int );
40 virtual void apply(uchar * , size_t ,
41 uchar * , size_t ,
42 int , int ,
43 int , int ,
44 int , int ) = 0;
45 virtual ~SepFilter2D() {}
46};
47
48
49 struct CV_EXPORTS Morph
50{
51 CV_DEPRECATED static Ptr<hal::Morph> create(int , int , int , int , int ,
52 int , uchar * , size_t ,
53 int , int ,
54 int , int ,
55 int , const double *,
56 int , bool , bool );
57 virtual void apply(uchar * , size_t , uchar * , size_t , int , int ,
58 int , int , int , int ,
59 int , int , int , int ) = 0;
60 virtual ~Morph() {}
61};
62
64 //---------------------------
65
66CV_EXPORTS void filter2D(int stype, int dtype, int kernel_type,
67 uchar * src_data, size_t src_step,
68 uchar * dst_data, size_t dst_step,
69 int width, int height,
70 int full_width, int full_height,
71 int offset_x, int offset_y,
72 uchar * kernel_data, size_t kernel_step,
73 int kernel_width, int kernel_height,
74 int anchor_x, int anchor_y,
75 double delta, int borderType,
76 bool isSubmatrix);
77
78CV_EXPORTS void sepFilter2D(int stype, int dtype, int ktype,
79 uchar * src_data, size_t src_step,
80 uchar * dst_data, size_t dst_step,
81 int width, int height,
82 int full_width, int full_height,
83 int offset_x, int offset_y,
84 uchar * kernelx_data, int kernelx_len,
85 uchar * kernely_data, int kernely_len,
86 int anchor_x, int anchor_y,
87 double delta, int borderType);
88
89CV_EXPORTS void morph(int op, int src_type, int dst_type,
90 uchar * src_data, size_t src_step,
91 uchar * dst_data, size_t dst_step,
92 int width, int height,
93 int roi_width, int roi_height, int roi_x, int roi_y,
94 int roi_width2, int roi_height2, int roi_x2, int roi_y2,
95 int kernel_type, uchar * kernel_data, size_t kernel_step,
96 int kernel_width, int kernel_height, int anchor_x, int anchor_y,
97 int borderType, const double borderValue[4],
98 int iterations, bool isSubmatrix);
99
100
101CV_EXPORTS void resize(int src_type,
102 const uchar * src_data, size_t src_step, int src_width, int src_height,
103 uchar * dst_data, size_t dst_step, int dst_width, int dst_height,
104 double inv_scale_x, double inv_scale_y, int interpolation);
105
106CV_EXPORTS void warpAffine(int src_type,
107 const uchar * src_data, size_t src_step, int src_width, int src_height,
108 uchar * dst_data, size_t dst_step, int dst_width, int dst_height,
109 const double M[6], int interpolation, int borderType, const double borderValue[4]);
110
111CV_EXPORTS void warpPerspective(int src_type,
112 const uchar * src_data, size_t src_step, int src_width, int src_height,
113 uchar * dst_data, size_t dst_step, int dst_width, int dst_height,
114 const double M[9], int interpolation, int borderType, const double borderValue[4]);
115
116CV_EXPORTS void cvtBGRtoBGR(const uchar * src_data, size_t src_step,
117 uchar * dst_data, size_t dst_step,
118 int width, int height,
119 int depth, int scn, int dcn, bool swapBlue);
120
121CV_EXPORTS void cvtBGRtoBGR5x5(const uchar * src_data, size_t src_step,
122 uchar * dst_data, size_t dst_step,
123 int width, int height,
124 int scn, bool swapBlue, int greenBits);
125
126CV_EXPORTS void cvtBGR5x5toBGR(const uchar * src_data, size_t src_step,
127 uchar * dst_data, size_t dst_step,
128 int width, int height,
129 int dcn, bool swapBlue, int greenBits);
130
131CV_EXPORTS void cvtBGRtoGray(const uchar * src_data, size_t src_step,
132 uchar * dst_data, size_t dst_step,
133 int width, int height,
134 int depth, int scn, bool swapBlue);
135
136CV_EXPORTS void cvtGraytoBGR(const uchar * src_data, size_t src_step,
137 uchar * dst_data, size_t dst_step,
138 int width, int height,
139 int depth, int dcn);
140
141CV_EXPORTS void cvtBGR5x5toGray(const uchar * src_data, size_t src_step,
142 uchar * dst_data, size_t dst_step,
143 int width, int height,
144 int greenBits);
145
146CV_EXPORTS void cvtGraytoBGR5x5(const uchar * src_data, size_t src_step,
147 uchar * dst_data, size_t dst_step,
148 int width, int height,
149 int greenBits);
150CV_EXPORTS void cvtBGRtoYUV(const uchar * src_data, size_t src_step,
151 uchar * dst_data, size_t dst_step,
152 int width, int height,
153 int depth, int scn, bool swapBlue, bool isCbCr);
154
155CV_EXPORTS void cvtYUVtoBGR(const uchar * src_data, size_t src_step,
156 uchar * dst_data, size_t dst_step,
157 int width, int height,
158 int depth, int dcn, bool swapBlue, bool isCbCr);
159
160CV_EXPORTS void cvtBGRtoXYZ(const uchar * src_data, size_t src_step,
161 uchar * dst_data, size_t dst_step,
162 int width, int height,
163 int depth, int scn, bool swapBlue);
164
165CV_EXPORTS void cvtXYZtoBGR(const uchar * src_data, size_t src_step,
166 uchar * dst_data, size_t dst_step,
167 int width, int height,
168 int depth, int dcn, bool swapBlue);
169
170CV_EXPORTS void cvtBGRtoHSV(const uchar * src_data, size_t src_step,
171 uchar * dst_data, size_t dst_step,
172 int width, int height,
173 int depth, int scn, bool swapBlue, bool isFullRange, bool isHSV);
174
175CV_EXPORTS void cvtHSVtoBGR(const uchar * src_data, size_t src_step,
176 uchar * dst_data, size_t dst_step,
177 int width, int height,
178 int depth, int dcn, bool swapBlue, bool isFullRange, bool isHSV);
179
180CV_EXPORTS void cvtBGRtoLab(const uchar * src_data, size_t src_step,
181 uchar * dst_data, size_t dst_step,
182 int width, int height,
183 int depth, int scn, bool swapBlue, bool isLab, bool srgb);
184
185CV_EXPORTS void cvtLabtoBGR(const uchar * src_data, size_t src_step,
186 uchar * dst_data, size_t dst_step,
187 int width, int height,
188 int depth, int dcn, bool swapBlue, bool isLab, bool srgb);
189
190CV_EXPORTS void cvtTwoPlaneYUVtoBGR(const uchar * src_data, size_t src_step,
191 uchar * dst_data, size_t dst_step,
192 int dst_width, int dst_height,
193 int dcn, bool swapBlue, int uIdx);
194
196 CV_EXPORTS void cvtTwoPlaneYUVtoBGR(const uchar * y_data, const uchar * uv_data, size_t src_step,
197 uchar * dst_data, size_t dst_step,
198 int dst_width, int dst_height,
199 int dcn, bool swapBlue, int uIdx);
200
201CV_EXPORTS void cvtThreePlaneYUVtoBGR(const uchar * src_data, size_t src_step,
202 uchar * dst_data, size_t dst_step,
203 int dst_width, int dst_height,
204 int dcn, bool swapBlue, int uIdx);
205
206CV_EXPORTS void cvtBGRtoThreePlaneYUV(const uchar * src_data, size_t src_step,
207 uchar * dst_data, size_t dst_step,
208 int width, int height,
209 int scn, bool swapBlue, int uIdx);
210
212 CV_EXPORTS void cvtBGRtoTwoPlaneYUV(const uchar * src_data, size_t src_step,
213 uchar * y_data, uchar * uv_data, size_t dst_step,
214 int width, int height,
215 int scn, bool swapBlue, int uIdx);
216
217CV_EXPORTS void cvtOnePlaneYUVtoBGR(const uchar * src_data, size_t src_step,
218 uchar * dst_data, size_t dst_step,
219 int width, int height,
220 int dcn, bool swapBlue, int uIdx, int ycn);
221
222CV_EXPORTS void cvtRGBAtoMultipliedRGBA(const uchar * src_data, size_t src_step,
223 uchar * dst_data, size_t dst_step,
224 int width, int height);
225
226CV_EXPORTS void cvtMultipliedRGBAtoRGBA(const uchar * src_data, size_t src_step,
227 uchar * dst_data, size_t dst_step,
228 int width, int height);
229
230CV_EXPORTS void integral(int depth, int sdepth, int sqdepth,
231 const uchar* src, size_t srcstep,
232 uchar* sum, size_t sumstep,
233 uchar* sqsum, size_t sqsumstep,
234 uchar* tilted, size_t tstep,
235 int width, int height, int cn);
236
238
239}}
240
241 #endif // CV_IMGPROC_HAL_HPP
CV_EXPORTS_W void filter2D(InputArray src, OutputArray dst, int ddepth, InputArray kernel, Point anchor=Point(-1,-1), double delta=0, int borderType=BORDER_DEFAULT)
Convolves an image with the kernel.
CV_EXPORTS_W void sepFilter2D(InputArray src, OutputArray dst, int ddepth, InputArray kernelX, InputArray kernelY, Point anchor=Point(-1,-1), double delta=0, int borderType=BORDER_DEFAULT)
Applies a separable linear filter to an image.
CV_EXPORTS void cvtTwoPlaneYUVtoBGR(const uchar *y_data, const uchar *uv_data, size_t src_step, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, int dcn, bool swapBlue, int uIdx)
Separate Y and UV planes
CV_EXPORTS void cvtBGRtoTwoPlaneYUV(const uchar *src_data, size_t src_step, uchar *y_data, uchar *uv_data, size_t dst_step, int width, int height, int scn, bool swapBlue, int uIdx)
Separate Y and UV planes
CV_EXPORTS_W void integral(InputArray src, OutputArray sum, int sdepth=-1)
CV_EXPORTS_W void warpAffine(InputArray src, OutputArray dst, InputArray M, Size dsize, int flags=INTER_LINEAR, int borderMode=BORDER_CONSTANT, const Scalar &borderValue=Scalar())
Applies an affine transformation to an image.
CV_EXPORTS_W void warpPerspective(InputArray src, OutputArray dst, InputArray M, Size dsize, int flags=INTER_LINEAR, int borderMode=BORDER_CONSTANT, const Scalar &borderValue=Scalar())
Applies a perspective transformation to an image.
CV_EXPORTS_W void resize(InputArray src, OutputArray dst, Size dsize, double fx=0, double fy=0, int interpolation=INTER_LINEAR)
Resizes an image.
cv
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75