1
#ifndef CV_IMGPROC_HAL_HPP
2
#define CV_IMGPROC_HAL_HPP
4
#include "opencv2/core/cvdef.h"
5
#include "opencv2/core/cvstd.hpp"
6
#include "opencv2/core/hal/interface.h"
8
namespace
cv
{
namespace
hal {
16
struct
CV_EXPORTS Filter2D
18
CV_DEPRECATED
static
Ptr<hal::Filter2D> create(uchar * ,
size_t
,
int
,
25
virtual
void
apply(uchar * ,
size_t
,
30
virtual
~Filter2D() {}
33
struct
CV_EXPORTS SepFilter2D
35
CV_DEPRECATED
static
Ptr<hal::SepFilter2D> create(
int
,
int
,
int
,
40
virtual
void
apply(uchar * ,
size_t
,
45
virtual
~SepFilter2D() {}
49
struct
CV_EXPORTS Morph
51
CV_DEPRECATED
static
Ptr<hal::Morph> create(
int
,
int
,
int
,
int
,
int
,
52
int
, uchar * ,
size_t
,
57
virtual
void
apply(uchar * ,
size_t
, uchar * ,
size_t
,
int
,
int
,
58
int
,
int
,
int
,
int
,
59
int
,
int
,
int
,
int
) = 0;
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,
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);
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);
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);
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]);
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]);
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);
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);
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);
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);
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,
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,
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,
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);
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);
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);
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);
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);
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);
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);
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);
191
uchar * dst_data,
size_t
dst_step,
192
int
dst_width,
int
dst_height,
193
int
dcn,
bool
swapBlue,
int
uIdx);
197
uchar * dst_data,
size_t
dst_step,
198
int
dst_width,
int
dst_height,
199
int
dcn,
bool
swapBlue,
int
uIdx);
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);
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);
213
uchar * y_data, uchar * uv_data,
size_t
dst_step,
214
int
width,
int
height,
215
int
scn,
bool
swapBlue,
int
uIdx);
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);
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);
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);
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);
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)
"black box" representation of the file storage associated with a file on disk.
Definition:
aruco.hpp:75