Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef EDGLOOP_H
00021 #define EDGLOOP_H
00022
00023 #include "scrollview.h"
00024 #include "params.h"
00025 #include "img.h"
00026 #include "pdblock.h"
00027 #include "coutln.h"
00028 #include "crakedge.h"
00029
00030 #define BUCKETSIZE 16
00031
00032
00033 extern double_VAR_H (edges_threshold_greyfraction, 0.07,
00034 "Min edge diff for grad vector");
00035 extern BOOL_VAR_H (edges_show_paths, FALSE, "Draw raw outlines");
00036 extern BOOL_VAR_H (edges_show_needles, FALSE, "Draw edge needles");
00037 extern INT_VAR_H (edges_children_per_grandchild, 10,
00038 "Importance ratio for chucking outlines");
00039 extern INT_VAR_H (edges_children_count_limit, 45,
00040 "Max holes allowed in blob");
00041 extern INT_VAR_H (edges_maxedgelength, 16000, "Max steps in any outline");
00042 extern double_VAR_H (edges_childarea, 0.5,
00043 "Max area fraction of child outline");
00044 extern double_VAR_H (edges_boxarea, 0.8,
00045 "Min area fraction of grandchild for box");
00046 void complete_edge(CRACKEDGE *start,
00047 C_OUTLINE_IT* outline_it);
00048 ScrollView::Color check_path_legal(
00049 CRACKEDGE *start
00050 );
00051 inT16 loop_bounding_box(
00052 CRACKEDGE *&start,
00053 ICOORD &botleft,
00054 ICOORD &topright);
00055 #endif