static gboolean module_register(const gchar *name) { static GwyProcessFuncInfo size_dist_func_info = { "grain_dist", N_("/_Grains/_Size Distribution"), (GwyProcessFunc)&size_dist, DIST_RUN_MODES, GWY_MENU_FLAG_DATA_MASK, }; static GwyProcessFuncInfo height_dist_func_info = { "grain_height_dist", N_("/_Grains/_Height Distribution"), (GwyProcessFunc)&height_dist, DIST_RUN_MODES, GWY_MENU_FLAG_DATA_MASK, }; static GwyProcessFuncInfo stats_func_info = { "grain_stats", N_("/_Grains/S_tatistics"), (GwyProcessFunc)&stats, DIST_RUN_MODES, GWY_MENU_FLAG_DATA_MASK, }; gwy_process_func_register(name, &size_dist_func_info); gwy_process_func_register(name, &height_dist_func_info); gwy_process_func_register(name, &stats_func_info); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("mask_remove", (GwyProcessFunc)&mask_remove, N_("/_Mask/_Remove Mask"), GWY_STOCK_MASK_REMOVE, MASKOPS_RUN_MODES, GWY_MENU_FLAG_DATA_MASK | GWY_MENU_FLAG_DATA, N_("Remove mask from data")); gwy_process_func_register("mask_invert", (GwyProcessFunc)&mask_invert, N_("/_Mask/_Invert Mask"), GWY_STOCK_MASK_INVERT, MASKOPS_RUN_MODES, GWY_MENU_FLAG_DATA_MASK | GWY_MENU_FLAG_DATA, N_("Invert mask")); gwy_process_func_register("mask_extract", (GwyProcessFunc)&mask_extract, N_("/_Mask/_Extract Mask"), GWY_STOCK_MASK_EXTRACT, MASKOPS_RUN_MODES, GWY_MENU_FLAG_DATA_MASK | GWY_MENU_FLAG_DATA, N_("Extract mask to a new channel")); gwy_process_func_register("grain_rem_touching", (GwyProcessFunc)&remove_touching, N_("/_Grains/_Remove Edge-Touching"), GWY_STOCK_GRAINS_EDGE_REMOVE, MASKOPS_RUN_MODES, GWY_MENU_FLAG_DATA | GWY_MENU_FLAG_DATA_MASK, N_("Remove grains touching image edges")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("level", (GwyProcessFunc)&level, N_("/_Level/Plane _Level"), GWY_STOCK_LEVEL, LEVEL_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Level data by mean plane subtraction")); gwy_process_func_register("level_rotate", (GwyProcessFunc)&level_rotate, N_("/_Level/Level _Rotate"), NULL, LEVEL_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Automatically level data by plane rotation")); gwy_process_func_register("fix_zero", (GwyProcessFunc)&fix_zero, N_("/_Level/Fix _Zero"), GWY_STOCK_FIX_ZERO, LEVEL_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Shift minimum data value to zero")); gwy_process_func_register("zero_mean", (GwyProcessFunc)&zero_mean, N_("/_Level/Zero _Mean Value"), NULL, LEVEL_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Shift mean data value to zero")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("presentation_remove", (GwyProcessFunc)&presentation_remove, N_("/_Presentation/_Remove Presentation"), NULL, PRESENTATIONOPS_RUN_MODES, GWY_MENU_FLAG_DATA_SHOW | GWY_MENU_FLAG_DATA, N_("Remove presentation from data")); gwy_process_func_register("presentation_extract", (GwyProcessFunc)&presentation_extract, N_("/_Presentation/E_xtract Presentation"), NULL, PRESENTATIONOPS_RUN_MODES, GWY_MENU_FLAG_DATA_SHOW | GWY_MENU_FLAG_DATA, N_("Extract presentation to a new channel")); gwy_process_func_register("presentation_attach", (GwyProcessFunc)&presentation_attach, N_("/_Presentation/_Attach Presentation..."), NULL, PRESENTATION_ATTACH_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Attach another data field as presentation")); gwy_process_func_register("presentation_logscale", (GwyProcessFunc)&presentation_logscale, N_("/_Presentation/_Logscale"), NULL, PRESENTATIONOPS_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Creates a presentation with logarithmic " "color scale")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("grain_stat", (GwyProcessFunc)&grain_stat, N_("/_Grains/S_tatistics..."), NULL, STAT_RUN_MODES, GWY_MENU_FLAG_DATA | GWY_MENU_FLAG_DATA_MASK, N_("Simple grain statistics")); gwy_process_func_register("grain_inscribe_discs", (GwyProcessFunc)&grain_inscribe_discs, N_("/_Grains/Select _Inscribed Discs"), GWY_STOCK_GRAIN_EXSCRIBED_CIRCLE, INSCRIBE_RUN_MODES, GWY_MENU_FLAG_DATA | GWY_MENU_FLAG_DATA_MASK, N_("Create a selection visualizing discs " "inscribed into grains")); gwy_process_func_register("grain_exscribe_circles", (GwyProcessFunc)&grain_exscribe_circles, N_("/_Grains/Select _Circumscribed Circles"), GWY_STOCK_GRAIN_INSCRIBED_CIRCLE, INSCRIBE_RUN_MODES, GWY_MENU_FLAG_DATA | GWY_MENU_FLAG_DATA_MASK, N_("Create a selection visualizing grain " "circumcircles")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("line_correct_modus", (GwyProcessFunc)&line_correct_modus, N_("/_Correct Data/M_odus Line Correction"), GWY_STOCK_LINE_LEVEL, LINECORR_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Correct lines by matching height modus")); gwy_process_func_register("line_correct_median", (GwyProcessFunc)&line_correct_median, N_("/_Correct Data/M_edian Line Correction"), GWY_STOCK_LINE_LEVEL, LINECORR_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Correct lines by matching height median")); gwy_process_func_register("line_correct_median_difference", (GwyProcessFunc)&line_correct_median_difference, N_("/_Correct Data/Median Di_fference Line Correction"), GWY_STOCK_LINE_LEVEL, LINECORR_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Correct lines by zeroing median " "of differences between neighbor lines")); gwy_process_func_register("line_correct_match", (GwyProcessFunc)&line_correct_match, N_("/_Correct Data/Ma_tch Line Correction"), GWY_STOCK_LINE_LEVEL, LINECORR_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Correct lines by matching flat segments")); gwy_process_func_register("line_correct_step", (GwyProcessFunc)&line_correct_step, N_("/_Correct Data/Ste_p Line Correction"), GWY_STOCK_LINE_LEVEL, LINECORR_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Correct steps in lines")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("rotate", (GwyProcessFunc)&rotate, N_("/_Basic Operations/Rotate by _Angle..."), GWY_STOCK_ROTATE, ROTATE_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Rotate by arbitrary angle")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("grain_dist", (GwyProcessFunc)&grain_dist, N_("/_Grains/_Distributions..."), GWY_STOCK_GRAINS_GRAPH, DIST_RUN_MODES, GWY_MENU_FLAG_DATA | GWY_MENU_FLAG_DATA_MASK, N_("Distributions of various grain " "characteristics")); gwy_process_func_register("grain_stat", (GwyProcessFunc)&grain_stat, N_("/_Grains/S_tatistics..."), NULL, STAT_RUN_MODES, GWY_MENU_FLAG_DATA | GWY_MENU_FLAG_DATA_MASK, N_("Simple grain statistics")); return TRUE; }
static gboolean module_register(const gchar *name) { static GwyProcessFuncInfo sobel_horizontal_func_info = { "sobel_horizontal", N_("/_Display/_Gradient/_Sobel (horizontal)"), (GwyProcessFunc)&sobel_horizontal, GRADIENT_RUN_MODES, 0, }; static GwyProcessFuncInfo sobel_vertical_func_info = { "sobel_vertical", N_("/_Display/_Gradient/_Sobel (vertical)"), (GwyProcessFunc)&sobel_vertical, GRADIENT_RUN_MODES, 0, }; static GwyProcessFuncInfo prewitt_horizontal_func_info = { "prewitt_horizontal", N_("/_Display/_Gradient/_Prewitt (horizontal)"), (GwyProcessFunc)&prewitt_horizontal, GRADIENT_RUN_MODES, 0, }; static GwyProcessFuncInfo prewitt_vertical_func_info = { "prewitt_vertical", N_("/_Display/_Gradient/_Prewitt (vertical)"), (GwyProcessFunc)&prewitt_vertical, GRADIENT_RUN_MODES, 0, }; gwy_process_func_register(name, &sobel_horizontal_func_info); gwy_process_func_register(name, &sobel_vertical_func_info); gwy_process_func_register(name, &prewitt_horizontal_func_info); gwy_process_func_register(name, &prewitt_vertical_func_info); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("tip_blind", (GwyProcessFunc)&tip_blind, N_("/_Tip and Indentation/_Blind Estimation..."), GWY_STOCK_TIP_ESTIMATION, TIP_BLIND_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Blind tip estimation")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("fft_profile", (GwyProcessFunc)&fft_profile, N_("/_Statistics/_PSDF Section..."), GWY_STOCK_PSDF_SECTION, PROF_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Read radial PSDF sections")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("grain_filter", (GwyProcessFunc)&grain_filter, N_("/_Grains/_Filter..."), GWY_STOCK_GRAINS_REMOVE, GFILTER_RUN_MODES, GWY_MENU_FLAG_DATA | GWY_MENU_FLAG_DATA_MASK, N_("Filter grains by their properties")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("cwt", (GwyProcessFunc)&cwt, N_("/_Integral Transforms/2D _CWT..."), GWY_STOCK_CWT, CWT_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Compute continuous wavelet transform")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("dwtanisotropy", (GwyProcessFunc)&dwt_anisotropy, N_("/_Integral Transforms/DWT _Anisotropy..."), NULL, DWT_ANISOTROPY_RUN_MODES, GWY_MENU_FLAG_DATA, N_("DWT anisotropy detection")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("polylevel", (GwyProcessFunc)&poly_level, N_("/_Level/_Polynomial Background..."), GWY_STOCK_POLYNOM, POLYLEVEL_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Remove polynomial background")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("immerse", (GwyProcessFunc)&immerse, N_("/M_ultidata/_Immerse Detail..."), GWY_STOCK_IMMERSE, IMMERSE_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Immerse a detail into image")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("extract_path", (GwyProcessFunc)&extract_path, N_("/_Distortion/Extract _Path Selection..."), GWY_STOCK_EXTRACT_PATH, EXTR_PATH_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Extract path selection data")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("psdf_logphi", (GwyProcessFunc)&psdflp, N_("/_Statistics/_Log-Phi PSDF..."), GWY_STOCK_PSDF_LOG_PHI, PSDFLP_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Compute PSDF in Log-Phi coordinates")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("cload", (GwyProcessFunc)&cload, N_("/Cali_bration/_3D calibration/Load from text file..."), GWY_STOCK_CWT, CNEW_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Load calibration data from text file.")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("scale", (GwyProcessFunc)&scale, N_("/_Basic Operations/Scale..."), GWY_STOCK_SCALE, SCALE_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Scale data")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("grain_cross", (GwyProcessFunc)&grain_cross, N_("/_Grains/_Correlate..."), GWY_STOCK_GRAINS_GRAPH, CROSS_RUN_MODES, GWY_MENU_FLAG_DATA | GWY_MENU_FLAG_DATA_MASK, N_("Correlate grain characteristics")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("grain_edge", (GwyProcessFunc)&grain_edge, N_("/_Grains/Mark by _Edge Detection..."), GWY_STOCK_GRAINS, GEDGE_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Mark grains with edge detection mechanism")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("dwt", (GwyProcessFunc)&dwt, N_("/_Integral Transforms/2D _DWT..."), GWY_STOCK_DWT, DWT_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Compute Discrete Wavelet Transform")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("merge", (GwyProcessFunc)&merge, N_("/M_ultidata/_Merge..."), GWY_STOCK_MERGE, MERGE_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Merge two images")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("xydenoise", (GwyProcessFunc)&xydenoise, N_("/M_ultidata/_XY denoise..."), NULL, XYDENOISE_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Denoises horizontal/vertical measurement.")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("noise_synth", (GwyProcessFunc)&noise_synth, N_("/S_ynthetic/_Noise..."), GWY_STOCK_SYNTHETIC_NOISE, NOISE_SYNTH_RUN_MODES, 0, N_("Generate surface of uncorrelated noise")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("deposit", (GwyProcessFunc)&deposit, N_("/_Synthetic/_Deposit particles..."), GWY_STOCK_GRAINS, DEPOSIT_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Deposit spherical particles")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("median-bg", (GwyProcessFunc)&median, N_("/_Level/_Median Level..."), NULL, MEDIANBG_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Level data by local median subtraction")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("facet_analysis", (GwyProcessFunc)&facets_analyse, N_("/_Statistics/Facet _Analysis..."), NULL, FACETS_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Mark areas by 2D slope")); return TRUE; }
static gboolean module_register(void) { gwy_process_func_register("cnew", (GwyProcessFunc)&cnew, N_("/Cali_bration/_Create..."), NULL, CNEW_RUN_MODES, GWY_MENU_FLAG_DATA, N_("Specify simple calibration data.")); return TRUE; }