#ifndef __EXTRACT_GRAPH_H #define __EXTRACT_GRAPH_H #include "common++.h" #include "tools++.h" #include "xtools++.h" #include "JpegTool.h" #include "Gio.h" #include "Graph.h" #include "Gmt.h" #define WORK_COLOR 10000 #define EDGE_SIZE 30 #define MAX_GRAY_SCALE 255 tList* extract_graph(JPEGImage jp); tList* cut_graph(tList* lv, MSGraph gd); tList* graph2jpeg(tList* lp); tList* rotate_graph(tList* lc, tList* lv); double get_grad_graph(PCoordinate pc); tList* vertex_graph(MSGraph jp); int background_threshold(MSGraph vp, int ith, int dth, int size, float rate, int mode, int work_color); void delete_rough(MSGraph vp, int size, int mode, int work_color); tList* get_object_region(MSGraph gd, int mode, int work_color); tList* get_region_vertex(tList* lt, int err, int sz); PCoordinate detect_cross_point(MSGraph* vp, int err, int work_color); PCoordinate find_vertex(MSGraph vp, PCoordinate coord); int detect_cross_point_0(MSGraphvp, int& i, int& j, int err, int work_color); int detect_cross_point_1(MSGraphvp, int& i, int& j, int err, int work_color); int detect_cross_point_2(MSGraphvp, int& i, int& j, int err, int work_color); int detect_cross_point_3(MSGraphvp, int& i, int& j, int err, int work_color); #endif