plastimatch
|
#include "plm_config.h"
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <math.h>
#include "exchkeys.h"
#include "file_util.h"
Macros | |
#define | BUFLEN 2048 |
Typedefs | |
typedef struct program_parms | Program_Parms |
typedef struct ct_header | CT_Header |
typedef struct dose_header | DOSE_Header |
typedef struct polyline | Cxt_polyline |
typedef struct polyline_slice | Cxt_polyline_Slice |
typedef struct structure | STRUCTURE |
typedef struct structure_list | STRUCTURE_List |
typedef struct rtog_header | RTOG_Header |
typedef struct rtog_line | RTOG_Line |
Functions | |
void | print_usage (void) |
void | gs_strncpy (char *dst, char *src, int n) |
int | get_rtog_line (FILE *fp, char *key, char *val) |
int | parse_rtog_string (char **list, int list_size, char *str) |
int | parse_rtog_key (char *key) |
int | parse_rtog_value (char *value) |
int | parse_rtog_line (RTOG_Line *rtog_line, char *key, char *val) |
int | set_ct_ival (RTOG_Header *rtog_header, RTOG_Line *rtog_line, int imno, int *tgt, char *tgt_comment) |
int | set_ct_fval (RTOG_Header *rtog_header, RTOG_Line *rtog_line, int imno, float *tgt, char *tgt_comment) |
void | load_rtog_header (RTOG_Header *rtog_header, Program_Parms *parms) |
void | load_ct (RTOG_Header *rtog_header, Program_Parms *parms) |
void | make_output_dir (Program_Parms *parms) |
void | correct_ct (RTOG_Header *rtog_header) |
void | write_ct (RTOG_Header *rtog_header, Program_Parms *parms) |
void | free_ct (RTOG_Header *rtog_header) |
void | load_dose (RTOG_Header *rtog_header, Program_Parms *parms) |
void | correct_dose (RTOG_Header *rtog_header) |
void | write_dose (RTOG_Header *rtog_header, Program_Parms *parms) |
void | free_dose (RTOG_Header *rtog_header) |
void | load_structure (STRUCTURE *structure, Program_Parms *parms) |
void | load_skin (RTOG_Header *rtog_header, Program_Parms *parms) |
void | render_slice (RTOG_Header *rtog_header, unsigned char *slice_img, unsigned char *acc_img, Cxt_polyline_Slice *ps) |
void | render_skin (RTOG_Header *rtog_header, Program_Parms *parms) |
void | correct_skin (RTOG_Header *rtog_header) |
void | write_skin (RTOG_Header *rtog_header, Program_Parms *parms) |
void | free_skin (RTOG_Header *rtog_header) |
void | write_rtog_dose (Program_Parms *parms) |
Variables | |
char | mha_header_pat [] |
#define BUFLEN 2048 |
typedef struct ct_header CT_Header |
typedef struct polyline Cxt_polyline |
typedef struct polyline_slice Cxt_polyline_Slice |
typedef struct dose_header DOSE_Header |
typedef struct program_parms Program_Parms |
typedef struct rtog_header RTOG_Header |
typedef struct rtog_line RTOG_Line |
typedef struct structure STRUCTURE |
typedef struct structure_list STRUCTURE_List |
void correct_ct | ( | RTOG_Header * | rtog_header | ) |
void correct_dose | ( | RTOG_Header * | rtog_header | ) |
void correct_skin | ( | RTOG_Header * | rtog_header | ) |
void free_ct | ( | RTOG_Header * | rtog_header | ) |
void free_dose | ( | RTOG_Header * | rtog_header | ) |
void free_skin | ( | RTOG_Header * | rtog_header | ) |
int get_rtog_line | ( | FILE * | fp, |
char * | key, | ||
char * | val ) |
void gs_strncpy | ( | char * | dst, |
char * | src, | ||
int | n ) |
void load_ct | ( | RTOG_Header * | rtog_header, |
Program_Parms * | parms ) |
void load_dose | ( | RTOG_Header * | rtog_header, |
Program_Parms * | parms ) |
void load_rtog_header | ( | RTOG_Header * | rtog_header, |
Program_Parms * | parms ) |
void load_skin | ( | RTOG_Header * | rtog_header, |
Program_Parms * | parms ) |
void load_structure | ( | STRUCTURE * | structure, |
Program_Parms * | parms ) |
void make_output_dir | ( | Program_Parms * | parms | ) |
int parse_rtog_key | ( | char * | key | ) |
int parse_rtog_line | ( | RTOG_Line * | rtog_line, |
char * | key, | ||
char * | val ) |
int parse_rtog_string | ( | char ** | list, |
int | list_size, | ||
char * | str ) |
int parse_rtog_value | ( | char * | value | ) |
void print_usage | ( | void | ) |
void render_skin | ( | RTOG_Header * | rtog_header, |
Program_Parms * | parms ) |
void render_slice | ( | RTOG_Header * | rtog_header, |
unsigned char * | slice_img, | ||
unsigned char * | acc_img, | ||
Cxt_polyline_Slice * | ps ) |
int set_ct_fval | ( | RTOG_Header * | rtog_header, |
RTOG_Line * | rtog_line, | ||
int | imno, | ||
float * | tgt, | ||
char * | tgt_comment ) |
int set_ct_ival | ( | RTOG_Header * | rtog_header, |
RTOG_Line * | rtog_line, | ||
int | imno, | ||
int * | tgt, | ||
char * | tgt_comment ) |
void write_ct | ( | RTOG_Header * | rtog_header, |
Program_Parms * | parms ) |
void write_dose | ( | RTOG_Header * | rtog_header, |
Program_Parms * | parms ) |
void write_rtog_dose | ( | Program_Parms * | parms | ) |
void write_skin | ( | RTOG_Header * | rtog_header, |
Program_Parms * | parms ) |
char mha_header_pat[] |