CV.hpp
Go to the documentation of this file.
1 // Copyright (c) 2010 by Wayne C. Gramlich. All rights reserved.
2 
3 #if !defined(CV_C_H_INCLUDED)
4 #define CV_C_H_INCLUDED 1
5 
6 #include <opencv/cv.h>
7 #include <opencv/highgui.h>
8 #include <opencv2/core/version.hpp>
9 
10 #if CV_MAJOR_VERSION == 3
11 #include <opencv2/calib3d/calib3d_c.h>
12 #endif
13 
14 #include "Memory.hpp"
15 #include "String.hpp"
16 
17 typedef CvContour *CV_Contour;
18 typedef IplImage *CV_Image;
19 typedef CvMat *CV_Matrix;
20 typedef CvMemStorage *CV_Memory_Storage;
21 typedef CvPoint *CV_Point;
22 typedef CvPoint2D32f *CV_Point2D32F;
23 typedef CvPoint2D32f *CV_Point2D32F_Vector;
24 typedef CvScalar *CV_Scalar;
25 typedef CvSeq *CV_Sequence;
26 typedef CvSize *CV_Size;
27 typedef CvSlice *CV_Slice;
28 typedef CvTermCriteria *CV_Term_Criteria;
29 
30 extern int CV__chain_approx_simple;
32 extern int CV__depth_8u;
33 extern int CV__gaussian;
34 extern int CV__gray_to_rgb;
35 extern int CV__poly_approx_dp;
36 extern int CV__retr_list;
37 extern int CV__rgb_to_gray;
38 extern int CV__thresh_binary;
39 extern int CV__window_auto_size;
40 
41 extern int CV__round(double value);
42 extern int CV__undistortion_setup(String_Const calibrate_file_name,
43  int width, int height, CV_Image *mapx, CV_Image *mapy);
44 
45 extern void CV_Image__adaptive_threshold(CV_Image source_image,
46  CV_Image destination_image, double maximum_value, int adaptive_method,
47  int threshold_type, int block_size, double parameter1);
48 extern void CV_Image__blob_draw(
49  CV_Image image, int x, int y, CV_Scalar color);
50 extern int CV_Image__channels_get(CV_Image image);
51 extern void CV_Image__convert_color(
52  CV_Image source_image, CV_Image destination_image, int conversion_code);
53 extern void CV_Image__copy(
54  CV_Image source_image, CV_Image destination_image, CV_Image mask);
56  CV_Size size, unsigned int depth, unsigned int channels);
58  CV_Size size, unsigned int depth, unsigned int channels);
59 extern void CV_Image__cross_draw(
60  CV_Image image, int x, int y, CV_Scalar color);
61 extern void CV_Image__draw_contours(CV_Image image, CV_Sequence contour,
62  CV_Scalar external_color, CV_Scalar hole_color, int maximal_level,
63  int thickness, int line_type, CV_Point offset);
65  CV_Memory_Storage storage, int header_size, int mode,
66  int method, CV_Point point);
67 extern void CV_Image__find_corner_sub_pix(CV_Image image,
68  CV_Point2D32F_Vector corners, int count, CV_Size window,
69  CV_Size zero_zone, CV_Term_Criteria criteria);
70 extern void CV_Image__flip(
71  CV_Image from_image, CV_Image to_image, int flip_code);
72 extern int CV_Image__gray_fetch(CV_Image image, int x, int y);
73 extern int CV_Image__height_get(CV_Image image);
74 extern int CV_Image__points_maximum(CV_Image image,
75  CV_Point2D32F_Vector points, unsigned int start_index, unsigned int end_index);
76 extern int CV_Image__points_minimum(CV_Image image,
77  CV_Point2D32F_Vector points, unsigned int start_index, unsigned int end_index);
78 extern int CV_Image__point_sample(CV_Image image, CV_Point2D32F point);
79 extern void CV_Image__remap(CV_Image source_image, CV_Image destination_image,
80  CV_Image map_x, CV_Image map_y, int flags, CV_Scalar fill_value);
81 extern int CV_Image__save(
82  CV_Image image, String_Const file_name, int *parameters);
83 extern void CV_Image__smooth(CV_Image source_image, CV_Image destination_image,
84  int smooth_type, int parameter1, int parameter2,
85  double parameter3, double parameter4);
86 extern CV_Image CV_Image__pnm_read(String_Const file_base_name);
87 extern void CV_Image__pnm_write(CV_Image image, String_Const file_base_name);
88 extern CV_Image CV_Image__tga_read(CV_Image image, String_Const file_name);
89 extern void CV_Image__tga_write(CV_Image image, String_Const file_name);
90 extern int CV_Image__width_get(CV_Image image);
91 
93 extern int CV__term_criteria_eps;
95  int type, int maximum_iterations, double epsilon);
96 
97 extern void CV_Memory_Storage__clear(CV_Memory_Storage storage);
98 extern CV_Memory_Storage CV_Memory_Storage__create(int block_size);
99 
100 extern CV_Point CV_Point__create(int x, int y);
101 extern int CV_Point__y_get(CV_Point point);
102 extern int CV_Point__x_get(CV_Point point);
103 
105  CV_Point2D32F_Vector corners);
106 extern CV_Point2D32F_Vector CV_Point2D32F_Vector__create(unsigned int size);
108  CV_Point2D32F_Vector vector, unsigned int index);
110 
111 extern void CV_Point2D32F__point_set(CV_Point2D32F point2d32f, CV_Point point);
112 extern double CV_Point2D32F__x_get(CV_Point2D32F point);
113 extern void CV_Point2D32F__x_set(CV_Point2D32F point, double x);
114 extern double CV_Point2D32F__y_get(CV_Point2D32F point);
115 extern void CV_Point2D32F__y_set(CV_Point2D32F point, double y);
116 
118  double value0, double value1, double value2, double value3);
119 extern void CV_Scalar__free(CV_Scalar cv_scalar);
120 extern CV_Scalar CV_Scalar__rgb(double red, double green, double blue);
121 
123  int header_size, CV_Memory_Storage storage, int method,
124  int parameter1, double parameter2);
125 extern double CV_Sequence__arc_length(
126  CV_Sequence contour, CV_Slice slice, int is_closed);
128 extern double CV_Sequence__contour_area(
129  CV_Sequence contour, CV_Slice slice, int oriented);
131 extern CV_Point CV_Sequence__point_fetch1(CV_Sequence sequence, unsigned int index);
132 extern int CV_Sequence__total_get(CV_Sequence sequence);
133 
134 extern CV_Size CV_Size__create(int width, int height);
135 extern void CV_Size__free(CV_Size cv_size);
136 
137 extern void CV__release_image(CV_Image image);
138 
139 #endif // !defined(CV_C_H_INCLUDED)
CvScalar * CV_Scalar
Definition: CV.hpp:24
CvTermCriteria * CV_Term_Criteria
Definition: CV.hpp:28
double CV_Point2D32F__y_get(CV_Point2D32F point)
Definition: CV.cpp:822
void CV_Image__copy(CV_Image source_image, CV_Image destination_image, CV_Image mask)
Definition: CV.cpp:390
int CV_Image__points_maximum(CV_Image image, CV_Point2D32F_Vector points, unsigned int start_index, unsigned int end_index)
CV_Point2D32F CV_Point2D32F_Vector__fetch1(CV_Point2D32F_Vector vector, unsigned int index)
Definition: CV.cpp:853
void CV_Image__pnm_write(CV_Image image, String_Const file_base_name)
Writes image out to .pnm file named file_name.
Definition: CV.cpp:527
CV_Scalar CV_Scalar__rgb(double red, double green, double blue)
Definition: CV.cpp:877
int CV__gaussian
Definition: CV.cpp:165
void CV_Image__convert_color(CV_Image source_image, CV_Image destination_image, int conversion_code)
Definition: CV.cpp:385
bool CV_Sequence__check_contour_convexity(CV_Sequence contour)
Definition: CV.cpp:899
void CV_Image__find_corner_sub_pix(CV_Image image, CV_Point2D32F_Vector corners, int count, CV_Size window, CV_Size zero_zone, CV_Term_Criteria criteria)
Definition: CV.cpp:484
int CV__round(double value)
Definition: CV.cpp:290
CvSize * CV_Size
Definition: CV.hpp:26
int CV__window_auto_size
Definition: CV.cpp:35
CV_Image CV_Image__pnm_read(String_Const file_base_name)
Reads in a CV_Image in from the .pnm file named file_name.
Definition: CV.cpp:509
int CV__rgb_to_gray
Definition: CV.cpp:51
int CV__gray_to_rgb
Definition: CV.cpp:53
void CV_Point2D32F__y_set(CV_Point2D32F point, double y)
Definition: CV.cpp:826
bool CV_Point2D32F_Vector__is_clockwise(CV_Point2D32F_Vector corners)
Return true if corners is in a clockwise direction.
Definition: Fiducials.cpp:1253
CvPoint2D32f * CV_Point2D32F
Definition: CV.hpp:22
int CV_Image__channels_get(CV_Image image)
Definition: CV.cpp:381
void CV_Image__flip(CV_Image from_image, CV_Image to_image, int flip_code)
Definition: CV.cpp:489
void CV_Point2D32F__x_set(CV_Point2D32F point, double x)
Definition: CV.cpp:818
void CV_Image__blob_draw(CV_Image image, int x, int y, CV_Scalar color)
Definition: CV.cpp:354
void CV_Image__adaptive_threshold(CV_Image source_image, CV_Image destination_image, double maximum_value, int adaptive_method, int threshold_type, int block_size, double parameter1)
Definition: CV.cpp:347
CV_Image CV_Image__header_create(CV_Size size, unsigned int depth, unsigned int channels)
Definition: CV.cpp:493
void CV_Memory_Storage__clear(CV_Memory_Storage storage)
Definition: CV.cpp:765
double CV_Point2D32F__x_get(CV_Point2D32F point)
Definition: CV.cpp:814
void CV_Point2D32F_Vector__corners_normalize(CV_Point2D32F_Vector corners)
Force corners to be counter-clockwise.
Definition: Fiducials.cpp:1223
CV_Sequence CV_Sequence__approximate_polygon(CV_Sequence contour, int header_size, CV_Memory_Storage storage, int method, int parameter1, double parameter2)
Definition: CV.cpp:885
int CV__chain_approx_simple
Definition: CV.cpp:445
CvPoint2D32f * CV_Point2D32F_Vector
Definition: CV.hpp:23
CV_Term_Criteria CV_Term_Criteria__create(int type, int maximum_iterations, double epsilon)
Definition: CV.cpp:948
CvMemStorage * CV_Memory_Storage
Definition: CV.hpp:20
IplImage * CV_Image
Definition: CV.hpp:18
CV_Size CV_Size__create(int width, int height)
Definition: CV.cpp:922
void CV_Size__free(CV_Size cv_size)
Definition: CV.cpp:929
CV_Image CV_Image__tga_read(CV_Image image, String_Const file_name)
Read in a .tga file.
Definition: CV.cpp:563
int CV_Image__gray_fetch(CV_Image image, int x, int y)
Definition: CV.cpp:475
CV_Scalar CV_Scalar__create(double value0, double value1, double value2, double value3)
Definition: CV.cpp:860
void CV_Image__draw_contours(CV_Image image, CV_Sequence contour, CV_Scalar external_color, CV_Scalar hole_color, int maximal_level, int thickness, int line_type, CV_Point offset)
Definition: CV.cpp:429
int CV__undistortion_setup(String_Const calibrate_file_name, int width, int height, CV_Image *mapx, CV_Image *mapy)
Definition: CV.cpp:301
void CV_Image__smooth(CV_Image source_image, CV_Image destination_image, int smooth_type, int parameter1, int parameter2, double parameter3, double parameter4)
Definition: CV.cpp:539
int CV__poly_approx_dp
Definition: CV.cpp:883
CV_Sequence CV_Image__find_contours(CV_Image image, CV_Memory_Storage storage, int header_size, int mode, int method, CV_Point point)
Definition: CV.cpp:454
CV_Image CV_Image__create(CV_Size size, unsigned int depth, unsigned int channels)
Definition: CV.cpp:377
CV_Point2D32F_Vector CV_Point2D32F_Vector__create(unsigned int size)
Definition: CV.cpp:839
int CV_Point__y_get(CV_Point point)
Definition: CV.cpp:793
double CV_Sequence__contour_area(CV_Sequence contour, CV_Slice slice, int oriented)
Definition: CV.cpp:903
int CV__depth_8u
Definition: CV.cpp:22
void CV_Image__cross_draw(CV_Image image, int x, int y, CV_Scalar color)
Definition: CV.cpp:395
int CV__retr_list
Definition: CV.cpp:438
CV_Sequence CV_Sequence__next_get(CV_Sequence sequence)
Definition: CV.cpp:908
CvMat * CV_Matrix
Definition: CV.hpp:19
int CV_Image__save(CV_Image image, String_Const file_name, int *parameters)
void CV__release_image(CV_Image image)
Definition: CV.cpp:265
double CV_Sequence__arc_length(CV_Sequence contour, CV_Slice slice, int is_closed)
Definition: CV.cpp:894
CvPoint * CV_Point
Definition: CV.hpp:21
int CV_Image__points_minimum(CV_Image image, CV_Point2D32F_Vector points, unsigned int start_index, unsigned int end_index)
void CV_Point2D32F__point_set(CV_Point2D32F point2d32f, CV_Point point)
Definition: CV.cpp:830
int CV_Image__width_get(CV_Image image)
Definition: CV.cpp:741
CvSeq * CV_Sequence
Definition: CV.hpp:25
int CV_Image__height_get(CV_Image image)
Definition: CV.cpp:498
CvContour * CV_Contour
Definition: CV.hpp:17
const char * String_Const
Definition: String.hpp:9
void CV_Image__tga_write(CV_Image image, String_Const file_name)
Write image out to file_name in .tga format.
Definition: CV.cpp:672
int CV__thresh_binary
Definition: CV.cpp:113
int CV__term_criteria_eps
Definition: CV.cpp:946
int CV__adaptive_thresh_gaussian_c
Definition: CV.cpp:112
CV_Point CV_Point__create(int x, int y)
Definition: CV.cpp:775
CvSlice * CV_Slice
Definition: CV.hpp:27
int CV_Sequence__total_get(CV_Sequence sequence)
Definition: CV.cpp:916
CV_Point CV_Sequence__point_fetch1(CV_Sequence sequence, unsigned int index)
Definition: CV.cpp:912
void CV_Scalar__free(CV_Scalar cv_scalar)
Definition: CV.cpp:870
int CV__term_criteria_iterations
Definition: CV.cpp:945
int CV_Point__x_get(CV_Point point)
Definition: CV.cpp:785
CV_Memory_Storage CV_Memory_Storage__create(int block_size)
Definition: CV.cpp:769
int CV_Image__point_sample(CV_Image image, CV_Point2D32F point)
void CV_Image__remap(CV_Image source_image, CV_Image destination_image, CV_Image map_x, CV_Image map_y, int flags, CV_Scalar fill_value)
Definition: CV.cpp:533


fiducial_lib
Author(s): Wayne Gramlich
autogenerated on Thu Dec 28 2017 04:06:53