Initialization functions
The implementation of the detector map is based on a global variable,
hidden in the library. Proper initialization is needed
before any access to it.
Two functions are present:
- dmap_load()
-
This function initializes the detector map and
are fills it with the data read from the file.
Should be called before any other function in the library!
- Syntax:
- int dmap_load(char *filename);
- Parameters:
- IN: filename
- file name from which read the data
(relative to the current directory, *.map file names recomended)
- Returns:
- DMAP_ERROR_OK in case of success
- dmap_dispose()
-
This function frees the memory allocated by the library.
Should be called when you do not need the library any more.
- Syntax:
- int dmap_dispose(void);
- Returns:
- DMAP_ERROR_OK in case of success