Go to the source code of this file.
|
| int | python_sequential (int argc, char **argv, grasp_results_description *python_result, grasp_segment_t *input_segment, sensor_data_t *sdata) |
| |
| int | python_read_segment (char *file_name, grasp_segment_t *segment) |
| |
| int | python_read_sdata (char *file_name, sensor_data_t *sdata) |
| |
| int | python_write_sdata (char *path, sensor_data_t *sdata) |
| |
| int | python_get_index (grasp_segment_t *seg, int t, int x, int y) |
| |
| sensor_data_t * | get_sensor () |
| |
| void | free_ptr (void *ptr) |
| |
| void | python_reindex_results (grasp_results_description *results_description) |
| |
| grasp_tile_description_t * | python_get_tile_description (int tile_nt, int tile_nx, int tile_ny) |
| |
| grasp_settings * | python_read_settings (char *settings_text) |
| |
| int | python_debug_settings (int argc, char **argv, char **settings_debug, char **error_string) |
| |
| size_t | sanity_check_segment_size () |
| | Returns byte of the the segment structure. Useful as a quick sanity check that the constants set loaded by the grasp python library is the same one as the one compiled in the binary. More...
|
| |
◆ free_ptr()
| void free_ptr |
( |
void * |
ptr | ) |
|
◆ get_sensor()
◆ python_debug_settings()
| int python_debug_settings |
( |
int |
argc, |
|
|
char ** |
argv, |
|
|
char ** |
settings_debug, |
|
|
char ** |
error_string |
|
) |
| |
- Parameters
-
| argc | number of arguments as argc |
| argv | arguments first has to be settings in inline format |
| settings_debug | information of debug settings into screen |
| error_string | text of errors |
- Returns
- 0 if everything works, otherwise number of errors
◆ python_get_index()
Return the memory index of the pixel [t, x, y] /!\ index t, x and y start at 1 return -1 if the pixel doesn't exist
◆ python_get_tile_description()
This function return a tile_description structure from the sizes of the tile
- Parameters
-
| segment_ntimes | Number of segments it contains in T dimension |
| segment_ncols | Number of segments it contains in X dimension |
| segment_nrows | Number of segments it contains in Y dimension |
| tile_nt | Number of pixels it contains in T dimension |
| tile_nx | Number of pixels it contains in X dimension |
| tile_ny | Number of pixels it contains in Y dimension |
- Returns
- allocated tile_description structure or NULL in case of error
◆ python_read_sdata()
| int python_read_sdata |
( |
char * |
file_name, |
|
|
sensor_data_t * |
sdata |
|
) |
| |
◆ python_read_segment()
Load the sdata file with the given name from disk. Used by pygrasp.SDATA('file.sdat')
◆ python_read_settings()
Read functions and return the structure.
- Parameters
-
| settings_text | Settings in 'inline' way |
- Returns
- allocated settins strucuture or NULL in case of error
◆ python_reindex_results()
This function need to be called if results structure is modified
- Parameters
-
| results | modified structure |
| tile_description | it defined the dimensions of the results |
◆ python_sequential()
Entry point to GRASP. Used by pygrasp.run(...)
◆ python_write_sdata()
◆ sanity_check_segment_size()
| size_t sanity_check_segment_size |
( |
| ) |
|
Returns byte of the the segment structure. Useful as a quick sanity check that the constants set loaded by the grasp python library is the same one as the one compiled in the binary.
- Returns
- sizeof(grasp_segment_t)