SOURCE: lib/img.c
LAST MODIFICATION DATE:
#define GPIV_IMGPAR_DEFAULT__AUTHOR "" |
Default parameter for author of __GpivImagePar
#define GPIV_IMGPAR_DEFAULT__COMMENT "" |
Default parameter for comment of __GpivImagePar
#define GPIV_IMGPAR_DEFAULT__COMMENT "" |
Default parameter for comment of __GpivImagePar
#define GPIV_IMGPAR_DEFAULT__COPYRIGHT "" |
Default parameter for copyright of __GpivImagePar
#define GPIV_IMGPAR_DEFAULT__CREATION_DATE "" |
Default parameter for creation_date of __GpivImagePar
#define GPIV_IMGPAR_DEFAULT__DEPTH 8 |
Default parameter for depth of __GpivImagePar
#define GPIV_IMGPAR_DEFAULT__DISCLAIMER "See The GNU General Public License (GPL)" |
Default parameter for disclaimer of __GpivImagePar
#define GPIV_IMGPAR_DEFAULT__EMAIL "" |
Default parameter for email of __GpivImagePar
#define GPIV_IMGPAR_DEFAULT__LOCATION "" |
Default parameter for location of __GpivImagePar
#define GPIV_IMGPAR_DEFAULT__NCOLUMNS 256 |
Default parameter for ncolumns of __GpivImagePar
#define GPIV_IMGPAR_DEFAULT__NROWS 256 |
Default parameter for nrows of __GpivImagePar
#define GPIV_IMGPAR_DEFAULT__S_SCALE 1.0 |
Default parameter for s_scale of __GpivImagePar
#define GPIV_IMGPAR_DEFAULT__SOFTWARE "gpiv / gpiv_rr" |
Default parameter for software of __GpivImagePar
#define GPIV_IMGPAR_DEFAULT__SOURCE "" |
Default parameter for source of __GpivImagePar
#define GPIV_IMGPAR_DEFAULT__T_SCALE 1.0 |
Default parameter for t_scale of __GpivImagePar
#define GPIV_IMGPAR_DEFAULT__TITLE "" |
Default parameter for title of __GpivImagePar
#define GPIV_IMGPAR_DEFAULT__URL "" |
Default parameter for url of __GpivImagePar
#define GPIV_IMGPAR_DEFAULT__USERTEXT "" |
Default parameter for usertext of __GpivImagePar
#define GPIV_IMGPAR_DEFAULT__WARNING "" |
Default parameter for warning of __GpivImagePar
#define GPIV_IMGPAR_DEFAULT__X_CORR 1 |
Default parameter for x_corr of __GpivImagePar
#define GPIV_IMGPAR_DEFAULT__Z_OFF_X 0.0 |
Default parameter for z_off_x of __GpivImagePar
#define GPIV_IMGPAR_DEFAULT__Z_OFF_Y 0.0 |
Default parameter for z_off_y of __GpivImagePar
char* gpiv_img_check_header_read | ( | GpivImagePar | image_par | ) |
Checks out if all image header info has been read
[in] | image_par | image parameters |
char* gpiv_img_check_header_required_read | ( | GpivImagePar | image_par | ) |
Checks out if the required image header info for reading/storing has been read
[in] | image_par | image parameters |
char* gpiv_img_check_header_scale_read | ( | GpivImagePar | image_par | ) |
Checks out if image header info for time/spatial scaling has been read
[in] | image_par | image parameters |
void gpiv_img_cp_parameters | ( | GpivImagePar | image_par_src, | |
GpivImagePar * | image_par_dest, | |||
gboolean | force, | |||
gboolean | print_par | |||
) |
Copies image parameters from src to dest
[in] | image_par_src | source image parameters |
[in] | force | flag to force the copying, even if destination already exists |
[in] | print_par | verbose output. Not implemented yet. |
[out] | image_par_dest | destination image parameters |
void gpiv_img_default_parameters | ( | GpivImagePar * | image_par, | |
gboolean | force | |||
) |
Sets default parameter values
[in] | force | flag to enforce parameters set to defaults |
[out] | image_par | structure of image evaluation parameters |
void gpiv_img_fprint_header | ( | FILE * | fp_par_out, | |
GpivImagePar | image_par | |||
) |
Prints image header parameters to file without GPIV_IMAGE_PAR_KEY
[in] | fp_par_out | file pointer to output file |
[in] | image_par | image parameter structure |
void gpiv_img_fprint_parameters | ( | FILE * | fp_par_out, | |
GpivImagePar | image_par | |||
) |
Prints image header parameters to fp_par_out including IMAGE_PAR_KEY
[in] | fp_par_out | filepointer or NULL if stdout |
[in] | image_par | structure to image parameters |
void gpiv_img_fprint_pgmheader | ( | FILE * | fp_par_out, | |
GpivImagePar | image_par | |||
) |
Prints image header parameters to PGM image format file without GPIV_IMAGE_PAR_KEY
[in] | fp_par_out | file pointer to output file |
[in] | image_par | image parameter structure |
char* gpiv_img_fread_davis_parameters | ( | char * | fname, | |
GpivImagePar * | image_par | |||
) |
Reads image specifications from Davis formatted image, with ext .IMG, from file
[in] | fname | filename |
[out] | image_par | image parameters |
char* gpiv_img_fread_hdf5_parameters | ( | char * | fname, | |
GpivImagePar * | image_par | |||
) |
Reads image parameters from hdf5 data file without IMAGE_PAR_KEY
[in] | fname | filename |
[out] | image_par | image parameters |
void gpiv_img_fread_header | ( | FILE * | fp_par, | |
FILE * | fp_par_out, | |||
GpivImagePar * | image_par, | |||
gboolean | print_par | |||
) |
Reads each line of file fp_par and looks for image header parameters without IMAGE_PAR_KEY
[in] | fp_par | file pointer of which parameters will be read from |
[in] | fp_par_out | file pointer of which parameter will have to be printed |
[in] | print_par | print parameters to fp_par_out (1) or not (0) |
[out] | image_par | structure of image parameters |
[out] | fp_par_out | file to write parameters to when read |
void gpiv_img_fread_parameters | ( | FILE * | fp_h, | |
FILE * | fp_par_out, | |||
GpivImagePar * | image_par, | |||
gboolean | print_par | |||
) |
Reads each line of the file and looks for image header parameters including IMAGE_PAR_KEY
[in] | fp_h | file pointer to image header |
[in] | print_par | print parameters to fp_par_out (1) or not (0) |
[in] | fp_par_out | file pointer to print parameter to |
[out] | image_par | image parameters |
char* gpiv_img_fwrite_hdf5_parameters | ( | char * | fname, | |
GpivImagePar * | image_par | |||
) |
Writes image parameters to an existing hdf5 data file
[in] | fname | filename |
[in] | image_par | image parameters |
void gpiv_img_parameters_logic | ( | GpivImagePar * | image_par, | |
gboolean | flag | |||
) |
Sets flag for image_par_logic
[in] | flag | flag to enforce parameters set to defaults |
[out] | image_par | image parameter |
void gpiv_img_print_header | ( | GpivImagePar | image_par | ) |
Prints header information without IMAGE_PAR_KEY
[in] | image_par | image parameters |
void gpiv_img_read_header | ( | FILE * | fp_par, | |
GpivImagePar * | image_par, | |||
gboolean | print_par | |||
) |
Scans the content of fp_par on image parameters without IMAGE_PAR_KEY
[in] | fp_par | poitner to input file |
[in] | print_par | print parameters to stdout |
[out] | image_par | output parameters |
void gpiv_img_read_parameters | ( | FILE * | fp_h, | |
GpivImagePar * | image_par, | |||
gboolean | print_par | |||
) |
Reads each line of file fp_h and looks for image header parameters including IMAGE_PAR_KEY
[in] | fp_h | file pointer to image header |
[in] | print_par | print parameters to fp_par_out (1) or not (0) |
[out] | image_par | image parameters |
char* gpiv_img_read_pgm_header | ( | char * | fname, | |
GpivImagePar * | image_par, | |||
gint * | line_nr | |||
) |
Reads each line of the raw portable graymap (pgm) format image file and retrieves image header parameters without GPIV_IMAGE_PAR_KEY
[in] | fname | file name |
[out] | image_par | parameter structure |
[out] | line_nr | line number to start image data |
char* gpiv_img_test_header | ( | GpivImagePar | image_par | ) |
Checks out if all header parameters have been read
[in] | image_par | image parameters |