#include <assert.h>
#include <opencv/cv.h>
#include <opencv/highgui.h>
#include <string.h>
#include "CV.hpp"
#include "File.hpp"
#include "String.hpp"
Go to the source code of this file.
Functions | |
CV_Image | CV__clone_image (CV_Image image) |
void | CV__draw_chessboard_corners (CV_Image image, CV_Size pattern_size, CV_Point2D32F_Vector corners, int count, bool pattern_was_found) |
int | CV__find_chessboard_corners (CV_Image image, CV_Size pattern_size, CV_Point2D32F_Vector corners, int flags) |
void | CV__find_extrinsic_camera_params2 (CV_Matrix object_points, CV_Matrix image_points, CV_Matrix camera, CV_Matrix distortion_coefficients, CV_Matrix rotation_vector, CV_Matrix translation_vector, int use_extrinsic_guess) |
int | CV__fourcc (char character1, char character2, char character3, char character4) |
void | CV__gemm (CV_Matrix a, CV_Matrix b, double alpha, CV_Matrix c, double beta, CV_Matrix d, int transpose_a_b_c) |
double | CV__get_real_2d (CV_Matrix matrix, int row, int column) |
void | CV__init_undistort_map (CV_Matrix camera_matrix, CV_Matrix distortion_coefficients, CV_Matrix mapx, CV_Matrix mapy) |
void | CV__release_image (CV_Image image) |
void | CV__rodrigues2 (CV_Matrix rotation_vector, CV_Matrix rotation_matrix, CV_Matrix jacobian) |
int | CV__round (double value) |
void | CV__set_identity (CV_Matrix matrix, CV_Scalar scalar) |
void | CV__set_real_2d (CV_Matrix matrix, int row, int column, double value) |
void | CV__set_zero (CV_Matrix matrix) |
int | CV__undistortion_setup (String_Const calibrate_file_name, int width, int height, CV_Image *mapx, CV_Image *mapy) |
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) |
void | CV_Image__blob_draw (CV_Image image, int x, int y, CV_Scalar color) |
int | CV_Image__channels_get (CV_Image image) |
void | CV_Image__convert_color (CV_Image source_image, CV_Image destination_image, int conversion_code) |
void | CV_Image__copy (CV_Image source_image, CV_Image destination_image, CV_Image mask) |
CV_Image | CV_Image__create (CV_Size size, unsigned int depth, unsigned int channels) |
void | CV_Image__cross_draw (CV_Image image, int x, int y, CV_Scalar color) |
unsigned int | CV_Image__depth_get (CV_Image image) |
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) |
unsigned int | CV_Image__fetch3 (CV_Image image, unsigned int x, unsigned int y, unsigned int channel) |
CV_Sequence | CV_Image__find_contours (CV_Image image, CV_Memory_Storage storage, int header_size, int mode, int method, CV_Point point) |
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) |
void | CV_Image__flip (CV_Image from_image, CV_Image to_image, int flip_code) |
int | CV_Image__gray_fetch (CV_Image image, int x, int y) |
CV_Image | CV_Image__header_create (CV_Size size, unsigned int depth, unsigned int channels) |
int | CV_Image__height_get (CV_Image image) |
CV_Image | CV_Image__pnm_read (String_Const file_name) |
Reads in a CV_Image in from the .pnm file named file_name. More... | |
void | CV_Image__pnm_write (CV_Image image, String_Const file_name) |
Writes image out to .pnm file named file_name. More... | |
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) |
void | CV_Image__smooth (CV_Image source_image, CV_Image destination_image, int smooth_type, int parameter1, int parameter2, double parameter3, double parameter4) |
void | CV_Image__store3 (CV_Image image, unsigned int x, unsigned int y, unsigned int channel, unsigned int value) |
CV_Image | CV_Image__tga_read (CV_Image image, String_Const tga_file_name) |
Read in a .tga file. More... | |
void | CV_Image__tga_write (CV_Image image, String_Const file_name) |
Write image out to file_name in .tga format. More... | |
int | CV_Image__width_get (CV_Image image) |
int | CV_Matrix__columns_get (CV_Matrix matrix) |
int | CV_Matrix__rows_get (CV_Matrix matrix) |
void | CV_Matrix__save (CV_Matrix matrix, const char *file_name) |
void | CV_Memory_Storage__clear (CV_Memory_Storage storage) |
CV_Memory_Storage | CV_Memory_Storage__create (int block_size) |
CV_Point2D32F | CV_Point2D32F__create (double x, double y) |
void | CV_Point2D32F__point_set (CV_Point2D32F point2d32f, CV_Point point) |
double | CV_Point2D32F__x_get (CV_Point2D32F point) |
void | CV_Point2D32F__x_set (CV_Point2D32F point, double x) |
double | CV_Point2D32F__y_get (CV_Point2D32F point) |
void | CV_Point2D32F__y_set (CV_Point2D32F point, double y) |
CV_Point2D32F_Vector | CV_Point2D32F_Vector__create (unsigned int size) |
CV_Point2D32F | CV_Point2D32F_Vector__fetch1 (CV_Point2D32F_Vector vector, unsigned int index) |
CV_Point | CV_Point__create (int x, int y) |
int | CV_Point__x_get (CV_Point point) |
void | CV_Point__x_set (CV_Point point, int x) |
int | CV_Point__y_get (CV_Point point) |
void | CV_Point__y_set (CV_Point point, int y) |
CV_Scalar | CV_Scalar__create (double value0, double value1, double value2, double value3) |
void | CV_Scalar__free (CV_Scalar cv_scalar) |
CV_Scalar | CV_Scalar__rgb (double red, double green, double blue) |
CV_Sequence | CV_Sequence__approximate_polygon (CV_Sequence contour, int header_size, CV_Memory_Storage storage, int method, int parameter1, double parameter2) |
double | CV_Sequence__arc_length (CV_Sequence contour, CV_Slice slice, int is_closed) |
bool | CV_Sequence__check_contour_convexity (CV_Sequence contour) |
double | CV_Sequence__contour_area (CV_Sequence contour, CV_Slice slice, int oriented) |
CV_Sequence | CV_Sequence__next_get (CV_Sequence sequence) |
CV_Point | CV_Sequence__point_fetch1 (CV_Sequence sequence, unsigned int index) |
int | CV_Sequence__total_get (CV_Sequence sequence) |
CV_Size | CV_Size__create (int width, int height) |
void | CV_Size__free (CV_Size cv_size) |
CV_Slice | CV_Slice__create (int start_index, int end_index) |
void | CV_Slice__Initialize (void) |
CV_Term_Criteria | CV_Term_Criteria__create (int type, int maximum_iterations, double epsilon) |
Variables | |
int | CV__adaptive_thresh_gaussian_c = CV_ADAPTIVE_THRESH_GAUSSIAN_C |
int | CV__adaptive_thresh_mean_c = CV_ADAPTIVE_THRESH_MEAN_C |
int | CV__auto_step = CV_AUTO_STEP |
int | CV__bayerbg_to_bgr = CV_BayerBG2BGR |
int | CV__bayerbg_to_rgb = CV_BayerBG2RGB |
int | CV__bayergb_to_bgr = CV_BayerGB2BGR |
int | CV__bayergb_to_rgb = CV_BayerGB2RGB |
int | CV__bayergr_to_bgr = CV_BayerGR2BGR |
int | CV__bayergr_to_rgb = CV_BayerGR2RGB |
int | CV__bayerrg_to_bgr = CV_BayerRG2BGR |
int | CV__bayerrg_to_rgb = CV_BayerRG2RGB |
int | CV__bg4565_to_rgb = CV_BGR5652RGB |
int | CV__bgr555_to_bgr = CV_BGR5552BGR |
int | CV__bgr555_to_bgra = CV_BGR5552BGRA |
int | CV__bgr555_to_gray = CV_BGR5552GRAY |
int | CV__bgr555_to_rgb = CV_BGR5552RGB |
int | CV__bgr555_to_rgba = CV_BGR5552RGBA |
int | CV__bgr565_to_bgr = CV_BGR5652BGR |
int | CV__bgr565_to_bgra = CV_BGR5652BGRA |
int | CV__bgr565_to_gray = CV_BGR5652GRAY |
int | CV__bgr565_to_rgba = CV_BGR5652RGBA |
int | CV__bgr_to_bgr555 = CV_BGR2BGR555 |
int | CV__bgr_to_bgr565 = CV_BGR2BGR565 |
int | CV__bgr_to_bgra = CV_BGR2BGRA |
int | CV__bgr_to_gray = CV_BGR2GRAY |
int | CV__bgr_to_hls = CV_BGR2HLS |
int | CV__bgr_to_hsv = CV_BGR2HSV |
int | CV__bgr_to_lab = CV_BGR2Lab |
int | CV__bgr_to_luv = CV_BGR2Luv |
int | CV__bgr_to_rgb = CV_BGR2RGB |
int | CV__bgr_to_rgba = CV_BGR2RGBA |
int | CV__bgr_to_xyz = CV_BGR2XYZ |
int | CV__bgr_to_ycrcb = CV_BGR2YCrCb |
int | CV__bgra_to_bgr = CV_BGRA2BGR |
int | CV__bgra_to_bgr555 = CV_BGRA2BGR555 |
int | CV__bgra_to_bgr565 = CV_BGRA2BGR565 |
int | CV__bgra_to_rgb = CV_BGRA2RGB |
int | CV__bilateral = CV_BILATERAL |
int | CV__blur = CV_BLUR |
int | CV__blur_no_scale = CV_BLUR_NO_SCALE |
int | CV__brga_to_gray = CV_BGRA2GRAY |
int | CV__brga_to_rgba = CV_BGRA2RGBA |
int | CV__calib_cb_adaptive_thresh = CV_CALIB_CB_ADAPTIVE_THRESH |
int | CV__calib_cb_filter_quads = CV_CALIB_CB_FILTER_QUADS |
int | CV__calib_cb_normalize_image = CV_CALIB_CB_NORMALIZE_IMAGE |
int | CV__chain_approx_none = CV_CHAIN_APPROX_NONE |
int | CV__chain_approx_simple = CV_CHAIN_APPROX_SIMPLE |
int | CV__chain_approx_tc89_kcos = CV_CHAIN_APPROX_TC89_KCOS |
int | CV__chain_approx_tc89_l1 = CV_CHAIN_APPROX_TC89_L1 |
int | CV__chain_code = CV_CHAIN_CODE |
int | CV__chain_link_runs = CV_LINK_RUNS |
int | CV__depth_16s = IPL_DEPTH_16S |
int | CV__depth_16u = IPL_DEPTH_16U |
int | CV__depth_1u = IPL_DEPTH_1U |
int | CV__depth_32f = IPL_DEPTH_32F |
int | CV__depth_32s = IPL_DEPTH_32S |
int | CV__depth_64f = IPL_DEPTH_64F |
int | CV__depth_8s = IPL_DEPTH_8S |
int | CV__depth_8u = IPL_DEPTH_8U |
int | CV__f32 = CV_32F |
int | CV__f32c1 = CV_32FC1 |
int | CV__f32c2 = CV_32FC2 |
int | CV__f32c3 = CV_32FC3 |
int | CV__f32c4 = CV_32FC4 |
int | CV__f64 = CV_64F |
int | CV__f64c1 = CV_64FC1 |
int | CV__f64c2 = CV_64FC2 |
int | CV__f64c3 = CV_64FC3 |
int | CV__f64c4 = CV_64FC4 |
int | CV__gaussian = CV_GAUSSIAN |
int | CV__gemm_a_t = CV_GEMM_A_T |
int | CV__gemm_b_t = CV_GEMM_B_T |
int | CV__gemm_c_t = CV_GEMM_C_T |
int | CV__gray_to_bgr555 = CV_GRAY2BGR555 |
int | CV__gray_to_bgr565 = CV_GRAY2BGR565 |
int | CV__gray_to_bgra = CV_GRAY2BGRA |
int | CV__gray_to_brg = CV_GRAY2BGR |
int | CV__gray_to_rgb = CV_GRAY2RGB |
int | CV__gray_to_rgba = CV_GRAY2RGBA |
int | CV__hls_to_bgr = CV_HLS2BGR |
int | CV__hls_to_rgb = CV_HLS2RGB |
int | CV__hsv_to_bgr = CV_HSV2BGR |
int | CV__hsv_to_rgb = CV_HSV2RGB |
int | CV__inter_linear = CV_INTER_LINEAR |
int | CV__lab_to_bgr = CV_Lab2BGR |
int | CV__lab_to_rgb = CV_Lab2RGB |
int | CV__load_image_any_color = CV_LOAD_IMAGE_ANYCOLOR |
int | CV__load_image_any_depth = CV_LOAD_IMAGE_ANYDEPTH |
int | CV__load_image_color = CV_LOAD_IMAGE_COLOR |
int | CV__load_image_gray_scale = CV_LOAD_IMAGE_GRAYSCALE |
int | CV__load_image_unchanged = CV_LOAD_IMAGE_UNCHANGED |
int | CV__luv_to_bgr = CV_Luv2BGR |
int | CV__luv_to_rgb = CV_Luv2RGB |
int | CV__median = CV_MEDIAN |
int | CV__poly_approx_dp = CV_POLY_APPROX_DP |
int | CV__retr_ccomp = CV_RETR_CCOMP |
int | CV__retr_external = CV_RETR_EXTERNAL |
int | CV__retr_list = CV_RETR_LIST |
int | CV__retr_tree = CV_RETR_TREE |
int | CV__rgb_to_bgr = CV_RGB2BGR |
int | CV__rgb_to_bgr555 = CV_RGB2BGR555 |
int | CV__rgb_to_bgr565 = CV_RGB2BGR565 |
int | CV__rgb_to_bgra = CV_RGB2BGRA |
int | CV__rgb_to_gray = CV_RGB2GRAY |
int | CV__rgb_to_hls = CV_RGB2HLS |
int | CV__rgb_to_hsv = CV_RGB2HSV |
int | CV__rgb_to_lab = CV_RGB2Lab |
int | CV__rgb_to_luv = CV_RGB2Luv |
int | CV__rgb_to_rgba = CV_RGB2RGBA |
int | CV__rgb_to_xyz = CV_RGB2XYZ |
int | CV__rgb_to_ycrcb = CV_RGB2YCrCb |
int | CV__rgba_to_bgr = CV_RGBA2BGR |
int | CV__rgba_to_bgr555 = CV_RGBA2BGR555 |
int | CV__rgba_to_bgr565 = CV_RGBA2BGR565 |
int | CV__rgba_to_brga = CV_RGBA2BGRA |
int | CV__rgba_to_gray = CV_RGBA2GRAY |
int | CV__rgba_to_rgb = CV_RGBA2RGB |
int | CV__s16 = CV_16S |
int | CV__s16c1 = CV_16SC1 |
int | CV__s16c2 = CV_16SC2 |
int | CV__s16c3 = CV_16SC3 |
int | CV__s16c4 = CV_16SC4 |
int | CV__s32 = CV_32S |
int | CV__s32c1 = CV_32SC1 |
int | CV__s32c2 = CV_32SC2 |
int | CV__s32c3 = CV_32SC3 |
int | CV__s32c4 = CV_32SC4 |
int | CV__s8 = CV_8S |
int | CV__s8c1 = CV_8SC1 |
int | CV__s8c2 = CV_8SC2 |
int | CV__s8c3 = CV_8SC3 |
int | CV__s8c4 = CV_8SC4 |
int | CV__term_criteria_eps = CV_TERMCRIT_EPS |
int | CV__term_criteria_iterations = CV_TERMCRIT_ITER |
int | CV__thresh_binary = CV_THRESH_BINARY |
int | CV__thresh_binary_inv = CV_THRESH_BINARY_INV |
int | CV__u16 = CV_16U |
int | CV__u16c1 = CV_16UC1 |
int | CV__u16c2 = CV_16UC2 |
int | CV__u16c3 = CV_16UC3 |
int | CV__u16c4 = CV_16UC4 |
int | CV__u8 = CV_8U |
int | CV__u8c1 = CV_8UC1 |
int | CV__u8c2 = CV_8UC2 |
int | CV__u8c3 = CV_8UC3 |
int | CV__u8c4 = CV_8UC4 |
int | CV__user_type = CV_USRTYPE1 |
int | CV__warp_fill_outliers = CV_WARP_FILL_OUTLIERS |
CV_Slice | CV__whole_seq = &whole_sequence |
int | CV__window_auto_size = CV_WINDOW_AUTOSIZE |
int | CV__xyz_to_bgr = CV_XYZ2BGR |
int | CV__xyz_to_rgb = CV_XYZ2RGB |
int | CV__ycrcb_to_bgr = CV_YCrCb2BGR |
int | CV__ycrcb_to_rgb = CV_YCrCb2RGB |
static CvSlice | whole_sequence |
void CV__draw_chessboard_corners | ( | CV_Image | image, |
CV_Size | pattern_size, | ||
CV_Point2D32F_Vector | corners, | ||
int | count, | ||
bool | pattern_was_found | ||
) |
int CV__find_chessboard_corners | ( | CV_Image | image, |
CV_Size | pattern_size, | ||
CV_Point2D32F_Vector | corners, | ||
int | flags | ||
) |
int CV__fourcc | ( | char | character1, |
char | character2, | ||
char | character3, | ||
char | character4 | ||
) |
double CV__get_real_2d | ( | CV_Matrix | matrix, |
int | row, | ||
int | column | ||
) |
void CV__set_real_2d | ( | CV_Matrix | matrix, |
int | row, | ||
int | column, | ||
double | value | ||
) |
int CV__undistortion_setup | ( | String_Const | calibrate_file_name, |
int | width, | ||
int | height, | ||
CV_Image * | mapx, | ||
CV_Image * | mapy | ||
) |
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 | ||
) |
unsigned int CV_Image__fetch3 | ( | CV_Image | image, |
unsigned int | x, | ||
unsigned int | y, | ||
unsigned int | channel | ||
) |
CV_Sequence CV_Image__find_contours | ( | CV_Image | image, |
CV_Memory_Storage | storage, | ||
int | header_size, | ||
int | mode, | ||
int | method, | ||
CV_Point | point | ||
) |
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 | ||
) |
CV_Image CV_Image__pnm_read | ( | String_Const | file_name | ) |
Reads in a CV_Image in from the .pnm file named file_name.
file_name | is the base name (excluding suffix) to write out to. |
CV_Image__pnm_read() will reads in and return a CV_Image in from the file .pnm file named file_name.
void CV_Image__pnm_write | ( | CV_Image | image, |
String_Const | file_name | ||
) |
void CV_Image__store3 | ( | CV_Image | image, |
unsigned int | x, | ||
unsigned int | y, | ||
unsigned int | channel, | ||
unsigned int | value | ||
) |
CV_Image CV_Image__tga_read | ( | CV_Image | image, |
String_Const | tga_file_name | ||
) |
Read in a .tga file.
image | to read into (or null). |
tga_file_name | is the file name of the .tga file. |
*CV__tga_read will read the contents of {tga_file_name} into {image}. If the sizes do not match, {image} is released and new {CV_Image} object of the right size is allocated, filled and returned. In either case, the returned {CV_Image} object containing the read in image data is returned.
void CV_Image__tga_write | ( | CV_Image | image, |
String_Const | file_name | ||
) |
void CV_Matrix__save | ( | CV_Matrix | matrix, |
const char * | file_name | ||
) |
void CV_Memory_Storage__clear | ( | CV_Memory_Storage | storage | ) |
CV_Memory_Storage CV_Memory_Storage__create | ( | int | block_size | ) |
CV_Point2D32F CV_Point2D32F__create | ( | double | x, |
double | y | ||
) |
void CV_Point2D32F__point_set | ( | CV_Point2D32F | point2d32f, |
CV_Point | point | ||
) |
double CV_Point2D32F__x_get | ( | CV_Point2D32F | point | ) |
void CV_Point2D32F__x_set | ( | CV_Point2D32F | point, |
double | x | ||
) |
double CV_Point2D32F__y_get | ( | CV_Point2D32F | point | ) |
void CV_Point2D32F__y_set | ( | CV_Point2D32F | point, |
double | y | ||
) |
CV_Point2D32F_Vector CV_Point2D32F_Vector__create | ( | unsigned int | size | ) |
CV_Point2D32F CV_Point2D32F_Vector__fetch1 | ( | CV_Point2D32F_Vector | vector, |
unsigned int | index | ||
) |
CV_Scalar CV_Scalar__create | ( | double | value0, |
double | value1, | ||
double | value2, | ||
double | value3 | ||
) |
CV_Scalar CV_Scalar__rgb | ( | double | red, |
double | green, | ||
double | blue | ||
) |
CV_Sequence CV_Sequence__approximate_polygon | ( | CV_Sequence | contour, |
int | header_size, | ||
CV_Memory_Storage | storage, | ||
int | method, | ||
int | parameter1, | ||
double | parameter2 | ||
) |
double CV_Sequence__arc_length | ( | CV_Sequence | contour, |
CV_Slice | slice, | ||
int | is_closed | ||
) |
bool CV_Sequence__check_contour_convexity | ( | CV_Sequence | contour | ) |
double CV_Sequence__contour_area | ( | CV_Sequence | contour, |
CV_Slice | slice, | ||
int | oriented | ||
) |
CV_Sequence CV_Sequence__next_get | ( | CV_Sequence | sequence | ) |
CV_Point CV_Sequence__point_fetch1 | ( | CV_Sequence | sequence, |
unsigned int | index | ||
) |
int CV_Sequence__total_get | ( | CV_Sequence | sequence | ) |
CV_Term_Criteria CV_Term_Criteria__create | ( | int | type, |
int | maximum_iterations, | ||
double | epsilon | ||
) |
int CV__adaptive_thresh_gaussian_c = CV_ADAPTIVE_THRESH_GAUSSIAN_C |
int CV__calib_cb_adaptive_thresh = CV_CALIB_CB_ADAPTIVE_THRESH |
int CV__calib_cb_normalize_image = CV_CALIB_CB_NORMALIZE_IMAGE |
CV_Slice CV__whole_seq = &whole_sequence |