www.pudn.com > src.rar
To Read all the content
[file head]:
/* mono_tool.c
*
* Modification: 16-Sep-99 by IH, DICOM button added
*
* most basic tv_screen level code for managing mono resources and data
* structures.
*
* deals with file based i/o as well as display selection
*
*/
#include <stdio.h>
#include <sys/param.h>
#include <string.h>
#include <tina/sys.h>
#include <tina/sysfuncs.h>
#include <tina/math.h>
#include <tina/mathfuncs.h>
#include <tina/vision.h>
#include <tina/visionfuncs.h>
#include <tina/file.h>
#include <tina/filefuncs.h>
#include <tina/file_gen.h>
#include <tina/tv.h>
#include <tina/tvfuncs.h>
#include <tina/toolsfuncs.h>
#include <tina/tw_Xfuncs.h>
/* EXTERNS */
extern void tw_show_tool();
extern void *tw_tool();
/*
#define AIFF_FILE 0
#define PGM_FILE 1
#define RAD_FILE 2
#define EDGE_FILE 3
#define POLY_FILE 4
#define CAMERA 5
#define WISP 6
#define RAS 7
#define GIF 8
#define RAW_FILE 9
*/
/* STATIC GLOBALS */
static char directory_name[MAXPATHLEN];
static char base_nam
... ...
[file tail]:
... ...
proc, pixel_mouse,
NULL,
NULL);
tw_label(" ");
tw_help_button("mono_tool");
tw_newrow();
tw_check("Mono: ", mono_check_proc, 1,
"image", "edges", "corner", "strings", "geom",
NULL);
tw_newrow();
tw_choice("File:", file_choice_proc, 0,
"AIFF", "PGM", "RAD", "EDGE", "POLY", "CAM", "WISP",
"BMP", "GIF", "DICOM", NULL);
tw_newrow();
tw_button("input", input_proc, NULL);
tw_button("output", output_proc, NULL);
pframe = (void *)tw_iglobal(" Frame Number (#):", &amt;fnum, 5);
tw_button("<", dec_fnum_proc, NULL);
tw_button(">", inc_fnum_proc, NULL);
tw_newrow();
pdir = (void *) tw_sglobal("Directory Name:", directory_name, 32);
tw_button("scan", scan_proc, NULL);
tw_newrow();
pfile = (void *) tw_sglobal("Base Name: ", base_name, 32);
tw_newrow();
tw_button("push", push_proc, NULL);
tw_button("pop", pop_proc, NULL);
tw_end_tool();
}