43
#ifndef OPENCV_IMGPROC_IMGPROC_C_H
44
#define OPENCV_IMGPROC_IMGPROC_C_H
46
#include "opencv2/imgproc/types_c.h"
62
const
CvArr* mask CV_DEFAULT(NULL) );
68
const
CvArr* mask CV_DEFAULT(NULL) );
74
const
CvArr* mask CV_DEFAULT(NULL) );
80
const
CvArr* mask CV_DEFAULT(NULL) );
89
int
bordertype,
CvScalar
value CV_DEFAULT(cvScalarAll(0)));
113
int
size1 CV_DEFAULT(3),
114
int
size2 CV_DEFAULT(0),
115
double
sigma1 CV_DEFAULT(0),
116
double
sigma2 CV_DEFAULT(0));
138
CvArr* sqsum CV_DEFAULT(NULL),
139
CvArr* tilted_sum CV_DEFAULT(NULL));
148
int
filter
CV_DEFAULT(CV_GAUSSIAN_5x5) );
157
int
filter
CV_DEFAULT(CV_GAUSSIAN_5x5) );
163
const
CvSize* layer_sizes CV_DEFAULT(0),
164
CvArr* bufarr CV_DEFAULT(0),
165
int
calc CV_DEFAULT(1),
166
int
filter
CV_DEFAULT(CV_GAUSSIAN_5x5) );
169
CVAPI(
void) cvReleasePyramid(
CvMat*** pyramid,
int
extra_layers );
176
double
sp,
double
sr,
int
max_level CV_DEFAULT(1),
177
CvTermCriteria
termcrit CV_DEFAULT(cvTermCriteria(CV_TERMCRIT_ITER+CV_TERMCRIT_EPS,5,1)));
191
int
xorder,
int
yorder,
192
int
aperture_size CV_DEFAULT(3));
198
int
aperture_size CV_DEFAULT(3) );
210
int
interpolation CV_DEFAULT( CV_INTER_LINEAR ));
218
int
flags CV_DEFAULT(CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS),
219
CvScalar
fillval CV_DEFAULT(cvScalarAll(0)) );
226
CvMat
* map_matrix );
232
double
scale,
CvMat* map_matrix );
238
int
flags CV_DEFAULT(CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS),
239
CvScalar
fillval CV_DEFAULT(cvScalarAll(0)) );
253
int
flags CV_DEFAULT(CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS),
254
CvScalar
fillval CV_DEFAULT(cvScalarAll(0)) );
267
int
flags CV_DEFAULT(CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS));
274
int
flags CV_DEFAULT(CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS));
292
int
cols,
int
rows,
int
anchor_x,
int
anchor_y,
293
int
shape,
int* values CV_DEFAULT(NULL) );
306
int
iterations CV_DEFAULT(1) );
315
int
iterations CV_DEFAULT(1) );
322
int
operation,
int
iterations CV_DEFAULT(1) );
330
CVAPI(
double) cvGetSpatialMoment(
CvMoments* moments,
int
x_order,
int
y_order );
332
CVAPI(
double) cvGetCentralMoment(
CvMoments* moments,
int
x_order,
int
y_order );
335
int
x_order,
int
y_order );
350
int
connectivity CV_DEFAULT(8));
369
const
CvMat* map_matrix );
376
CvArr* result,
int
method );
383
const
CvArr* signature2,
385
CvDistanceFunction distance_func CV_DEFAULT(NULL),
386
const
CvArr* cost_matrix CV_DEFAULT(NULL),
387
CvArr* flow CV_DEFAULT(NULL),
388
float* lower_bound CV_DEFAULT(NULL),
389
void* userdata CV_DEFAULT(NULL));
400
int
header_size CV_DEFAULT(
sizeof(
CvContour)),
401
int
mode CV_DEFAULT(CV_RETR_LIST),
402
int
method CV_DEFAULT(CV_CHAIN_APPROX_SIMPLE),
414
int
header_size CV_DEFAULT(
sizeof(
CvContour)),
415
int
mode CV_DEFAULT(CV_RETR_LIST),
416
int
method CV_DEFAULT(CV_CHAIN_APPROX_SIMPLE),
430
CVAPI(
void) cvSubstituteContour( CvContourScanner scanner,
CvSeq* new_contour );
436
CVAPI(
CvSeq*) cvEndFindContours( CvContourScanner* scanner );
456
int
method CV_DEFAULT(CV_CHAIN_APPROX_SIMPLE),
457
double
parameter CV_DEFAULT(0),
458
int
minimal_perimeter CV_DEFAULT(0),
459
int
recursive CV_DEFAULT(0));
483
CVAPI(
CvSeq*) cvApproxPoly(
const
void* src_seq,
485
int
method,
double
eps,
486
int
recursive CV_DEFAULT(0));
491
CVAPI(
double) cvArcLength(
const
void* curve,
492
CvSlice
slice CV_DEFAULT(CV_WHOLE_SEQ),
493
int
is_closed CV_DEFAULT(-1));
499
return
cvArcLength( contour, CV_WHOLE_SEQ, 1 );
512
CVAPI(
double) cvContourArea(
const
CvArr* contour,
513
CvSlice
slice CV_DEFAULT(CV_WHOLE_SEQ),
514
int
oriented CV_DEFAULT(0));
525
CVAPI(
int) cvMinEnclosingCircle(
const
CvArr* points,
531
CVAPI(
double) cvMatchShapes(
const
void* object1,
const
void* object2,
532
int
method,
double
parameter CV_DEFAULT(0));
538
void* hull_storage CV_DEFAULT(NULL),
539
int
orientation CV_DEFAULT(CV_CLOCKWISE),
540
int
return_points CV_DEFAULT(0));
545
CVAPI(
int) cvCheckContourConvexity(
const
CvArr* contour );
579
CVAPI(
double) cvPointPolygonTest(
const
CvArr* contour,
614
float** ranges CV_DEFAULT(NULL),
615
int
uniform CV_DEFAULT(1));
629
int
uniform CV_DEFAULT(1));
646
float* data,
float** ranges CV_DEFAULT(NULL),
647
int
uniform CV_DEFAULT(1));
681
float* min_value,
float* max_value,
682
int* min_idx CV_DEFAULT(NULL),
683
int* max_idx CV_DEFAULT(NULL));
735
const
CvArr* mask CV_DEFAULT(NULL) );
740
const
CvArr* mask CV_DEFAULT(NULL) )
751
#define cvCalcBackProject(image, dst, hist) cvCalcArrBackProject((CvArr**)image, dst, hist)
777
#define cvCalcBackProjectPatch( image, dst, range, hist, method, factor ) \
778
cvCalcArrBackProjectPatch( (CvArr**)image, dst, range, hist, method, factor )
793
CvHistogram* dst_hist,
double
scale CV_DEFAULT(255) );
806
int
mask_size CV_DEFAULT(3),
807
const
float* mask CV_DEFAULT(NULL),
808
CvArr* labels CV_DEFAULT(NULL),
809
int
labelType CV_DEFAULT(CV_DIST_LABEL_CCOMP));
818
double
threshold,
double
max_value,
819
int
threshold_type );
829
CVAPI(
void) cvAdaptiveThreshold(
const
CvArr* src,
CvArr* dst,
double
max_value,
830
int
adaptive_method CV_DEFAULT(CV_ADAPTIVE_THRESH_MEAN_C),
832
int
block_size CV_DEFAULT(3),
833
double
param1 CV_DEFAULT(5));
840
CvScalar
up_diff CV_DEFAULT(cvScalarAll(0)),
842
int
flags CV_DEFAULT(4),
843
CvArr* mask CV_DEFAULT(NULL));
852
CVAPI(
void) cvCanny(
const
CvArr* image,
CvArr* edges,
double
threshold1,
853
double
threshold2,
int
aperture_size CV_DEFAULT(3) );
862
int
aperture_size CV_DEFAULT(3) );
868
CVAPI(
void) cvCornerEigenValsAndVecs(
const
CvArr* image,
CvArr* eigenvv,
869
int
block_size,
int
aperture_size CV_DEFAULT(3) );
876
int
block_size,
int
aperture_size CV_DEFAULT(3) );
883
CVAPI(
void) cvCornerHarris(
const
CvArr* image,
CvArr* harris_response,
884
int
block_size,
int
aperture_size CV_DEFAULT(3),
885
double
k CV_DEFAULT(0.04) );
898
CVAPI(
void) cvGoodFeaturesToTrack(
const
CvArr* image,
CvArr* eig_image,
900
int* corner_count,
double
quality_level,
902
const
CvArr* mask CV_DEFAULT(NULL),
903
int
block_size CV_DEFAULT(3),
904
int
use_harris CV_DEFAULT(0),
905
double
k CV_DEFAULT(0.04) );
917
CVAPI(
CvSeq*) cvHoughLines2(
CvArr* image,
void* line_storage,
int
method,
918
double
rho,
double
theta,
int
threshold,
919
double
param1 CV_DEFAULT(0),
double
param2 CV_DEFAULT(0),
920
double
min_theta CV_DEFAULT(0),
double
max_theta CV_DEFAULT(CV_PI));
926
int
method,
double
dp,
double
min_dist,
927
double
param1 CV_DEFAULT(100),
928
double
param2 CV_DEFAULT(100),
929
int
min_radius CV_DEFAULT(0),
930
int
max_radius CV_DEFAULT(0));
935
CVAPI(
void) cvFitLine(
const
CvArr* points,
int
dist_type,
double
param,
936
double
reps,
double
aeps,
float* line );
960
CvScalar
color,
int
thickness CV_DEFAULT(1),
961
int
line_type CV_DEFAULT(8),
int
shift CV_DEFAULT(0) );
969
CvScalar
color,
int
thickness CV_DEFAULT(1),
970
int
line_type CV_DEFAULT(8),
971
int
shift CV_DEFAULT(0));
977
CvScalar
color,
int
thickness CV_DEFAULT(1),
978
int
line_type CV_DEFAULT(8),
979
int
shift CV_DEFAULT(0));
988
CvScalar
color,
int
thickness CV_DEFAULT(1),
989
int
line_type CV_DEFAULT(8),
int
shift CV_DEFAULT(0));
998
double
angle,
double
start_angle,
double
end_angle,
999
CvScalar
color,
int
thickness CV_DEFAULT(1),
1000
int
line_type CV_DEFAULT(8),
int
shift CV_DEFAULT(0));
1003
int
thickness CV_DEFAULT(1),
1004
int
line_type CV_DEFAULT(8),
int
shift CV_DEFAULT(0) )
1012
0, 360, color, thickness, line_type, shift );
1019
int
line_type CV_DEFAULT(8),
int
shift CV_DEFAULT(0));
1026
int
line_type CV_DEFAULT(8),
int
shift CV_DEFAULT(0) );
1031
CVAPI(
void) cvPolyLine(
CvArr* img,
CvPoint** pts,
const
int* npts,
int
contours,
1032
int
is_closed,
CvScalar
color,
int
thickness CV_DEFAULT(1),
1033
int
line_type CV_DEFAULT(8),
int
shift CV_DEFAULT(0) );
1035
#define cvDrawRect cvRectangle
1036
#define cvDrawLine cvLine
1037
#define cvDrawCircle cvCircle
1038
#define cvDrawEllipse cvEllipse
1039
#define cvDrawPolyLine cvPolyLine
1057
int
connectivity CV_DEFAULT(8),
1058
int
left_to_right CV_DEFAULT(0));
1060
#define CV_NEXT_LINE_POINT( line_iterator ) \
1062
int _line_iterator_mask = (line_iterator).err < 0 ? -1 : 0; \
1063
(line_iterator).err += (line_iterator).minus_delta + \
1064
((line_iterator).plus_delta & _line_iterator_mask); \
1065
(line_iterator).ptr += (line_iterator).minus_step + \
1066
((line_iterator).plus_step & _line_iterator_mask); \
1070
#define CV_FONT_HERSHEY_SIMPLEX 0
1071
#define CV_FONT_HERSHEY_PLAIN 1
1072
#define CV_FONT_HERSHEY_DUPLEX 2
1073
#define CV_FONT_HERSHEY_COMPLEX 3
1074
#define CV_FONT_HERSHEY_TRIPLEX 4
1075
#define CV_FONT_HERSHEY_COMPLEX_SMALL 5
1076
#define CV_FONT_HERSHEY_SCRIPT_SIMPLEX 6
1077
#define CV_FONT_HERSHEY_SCRIPT_COMPLEX 7
1079
#define CV_FONT_ITALIC 16
1081
#define CV_FONT_VECTOR0 CV_FONT_HERSHEY_SIMPLEX
1087
const
char* nameFont;
1092
const
int* cyrillic;
1093
float
hscale, vscale;
1118
CVAPI(
void) cvInitFont(
CvFont* font,
int
font_face,
1119
double
hscale,
double
vscale,
1120
double
shear CV_DEFAULT(0),
1121
int
thickness CV_DEFAULT(1),
1122
int
line_type CV_DEFAULT(8));
1124CV_INLINE
CvFont
cvFont(
double
scale,
int
thickness CV_DEFAULT(1) )
1127
cvInitFont( &font, CV_FONT_HERSHEY_PLAIN, scale, scale, 0, thickness, CV_AA );
1141
CVAPI(
void) cvGetTextSize(
const
char* text_string,
const
CvFont* font,
1142
CvSize* text_size,
int* baseline );
1160
int
angle,
int
arc_start,
int
arc_end,
CvPoint
* pts,
int
delta );
1167
int
max_level,
int
thickness CV_DEFAULT(1),
1168
int
line_type CV_DEFAULT(8),
CV_INLINE CvPoint cvPoint(int x, int y)
Definition:
core/types_c.h:979
CV_INLINE CvPoint cvPointFrom32f(CvPoint2D32f point)
Definition:
core/types_c.h:1051
void CvArr
This is the "metatype" used only as a function parameter.
Definition:
core/types_c.h:139
CV_INLINE CvSize cvSize(int width, int height)
Definition:
core/types_c.h:1202
CV_INLINE int cvRound(double value)
Rounds floating-point number to the nearest integer
Definition:
fast_math.hpp:200
CV_EXPORTS_W void filter(InputArray image, InputArray kernel, OutputArray output)
Image filtering
CV_INLINE double cvContourPerimeter(const void *contour)
Definition:
imgproc_c.h:497
CVAPI(void) cvAcc(const CvArr *image
Adds image to accumulator
CV_INLINE void cvCalcHist(IplImage **image, CvHistogram *hist, int accumulate CV_DEFAULT(0), const CvArr *mask CV_DEFAULT(NULL))
Definition:
imgproc_c.h:738
@ CV_DIST_L2
Definition:
imgproc/types_c.h:592
@ CV_THRESH_BINARY
Definition:
imgproc/types_c.h:604
@ CV_GAUSSIAN
Definition:
imgproc/types_c.h:78
CV_EXPORTS_W void accumulate(InputArray src, InputOutputArray dst, InputArray mask=noArray())
Adds an image to the accumulator image.
Definition:
core/types_c.h:393
Definition:
core/types_c.h:328
Definition:
core/types_c.h:1278
float angle
Definition:
core/types_c.h:1281
CvPoint2D32f center
Definition:
core/types_c.h:1279
CvSize2D32f size
Definition:
core/types_c.h:1280
Definition:
core/types_c.h:1690
Definition:
imgproc/types_c.h:512
Definition:
imgproc/types_c.h:58
Definition:
core/types_c.h:1703
Definition:
imgproc_c.h:1086
float shear
slope coefficient: 0 - normal, >0 - italic
Definition:
imgproc_c.h:1094
int thickness
Qt: weight /** letters thickness */
Definition:
imgproc_c.h:1095
int line_type
Qt: PointSize
Definition:
imgproc_c.h:1097
float dx
horizontal interval between letters
Definition:
imgproc_c.h:1096
const int * ascii
font data and metrics
Definition:
imgproc_c.h:1090
Definition:
core/types_c.h:818
Definition:
imgproc/types_c.h:465
Definition:
core/types_c.h:1317
Definition:
core/types_c.h:469
Definition:
core/types_c.h:1498
Definition:
imgproc/types_c.h:408
Definition:
core/types_c.h:993
Definition:
core/types_c.h:951
Definition:
core/types_c.h:848
Definition:
core/types_c.h:1383
Definition:
core/types_c.h:1524
Definition:
core/types_c.h:1574
Definition:
core/types_c.h:1174
Definition:
core/types_c.h:1337
Definition:
core/types_c.h:918