1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
|
/* This is a private header for now, may require clean-up before publishing */
/*< private_header >*/
#ifndef __GWY_MORPH_LIB_H__
#define __GWY_MORPH_LIB_H__
#include <libprocess/tip.h>
G_BEGIN_DECLS
G_GNUC_INTERNAL
gint **_gwy_morph_lib_iallocmatrix(gint ysiz,
gint xsiz);
G_GNUC_INTERNAL
void _gwy_morph_lib_ifreematrix(gint **mptr);
G_GNUC_INTERNAL
gdouble **_gwy_morph_lib_dallocmatrix(gint ysiz,
gint xsiz);
G_GNUC_INTERNAL
void _gwy_morph_lib_dfreematrix(gdouble **mptr);
/*simple routines - integer arithmetics*/
G_GNUC_INTERNAL
gint **_gwy_morph_lib_ireflect(gint **surface,
gint surf_xsiz,
gint surf_ysiz);
G_GNUC_INTERNAL
gint **_gwy_morph_lib_idilation(gint **surface,
gint surf_xsiz,
gint surf_ysiz,
gint **tip,
gint tip_xsiz,
gint tip_ysiz,
gint xc,
gint yc,
GwySetFractionFunc set_fraction,
GwySetMessageFunc set_message);
G_GNUC_INTERNAL
gint **_gwy_morph_lib_ierosion(gint **image,
gint im_xsiz,
gint im_ysiz,
gint **tip,
gint tip_xsiz,
gint tip_ysiz,
gint xc,
gint yc,
GwySetFractionFunc set_fraction,
GwySetMessageFunc set_message);
G_GNUC_INTERNAL
gint **_gwy_morph_lib_icmap(gint **image,
gint im_xsiz,
gint im_ysiz,
gint **tip,
gint tip_xsiz,
gint tip_ysiz,
gint **rsurf,
gint xc,
gint yc,
GwySetFractionFunc set_fraction,
GwySetMessageFunc set_message);
/*simple routines - double arithmetics (can be very slow)*/
G_GNUC_INTERNAL
gdouble **_gwy_morph_lib_dreflect(gdouble **surface,
gint surf_xsiz,
gint surf_ysiz);
G_GNUC_INTERNAL
gdouble **_gwy_morph_lib_ddilation(gdouble **surface,
gint surf_xsiz,
gint surf_ysiz,
gdouble **tip,
gint tip_xsiz,
gint tip_ysiz,
gint xc,
gint yc,
GwySetFractionFunc set_fraction,
GwySetMessageFunc set_message);
G_GNUC_INTERNAL
gdouble **_gwy_morph_lib_derosion(gdouble **image,
gint im_xsiz,
gint im_ysiz,
gdouble **tip,
gint tip_xsiz,
gint tip_ysiz,
gint xc,
gint yc,
GwySetFractionFunc set_fraction,
GwySetMessageFunc set_message);
/*tip estimation routines - all in integer artithmetics*/
G_GNUC_INTERNAL
gint _gwy_morph_lib_itip_estimate(gint **image,
gint im_xsiz,
gint im_ysiz,
gint tip_xsiz,
gint tip_ysiz,
gint xc,
gint yc,
gint **tip0,
gint thresh,
gboolean use_edges,
GwySetFractionFunc set_fraction,
GwySetMessageFunc set_message);
G_GNUC_INTERNAL
gint _gwy_morph_lib_itip_estimate0(gint **image,
gint im_xsiz,
gint im_ysiz,
gint tip_xsiz,
gint tip_ysiz,
gint xc,
gint yc,
gint **tip0,
gint thresh,
gboolean use_edges,
GwySetFractionFunc set_fraction,
GwySetMessageFunc set_message);
G_END_DECLS
#endif
/* vim: set cin et ts=4 sw=4 cino=>1s,e0,n0,f0,{0,}0,^0,\:1s,=0,g1s,h0,t0,+1s,c3,(0,u0 : */
|