FLGR_Ret flgr1d_clear_all | ( | FLGR_Data1D * | data | ) |
Set to zero the whole image
data | : a pointer to a FLGR_Data1D |
Definition at line 520 of file flgrCoreData.c.
FLGR_Data1D* flgr1d_create | ( | int | length, | |
int | spp, | |||
FLGR_Type | type, | |||
FLGR_Shape | shape | |||
) |
Allocate a FLGR_Data1D structure
length | : an integer for array length | |
type | : a string for data type | |
spp | : Samples per pixel | |
shape | : shape |
Definition at line 177 of file flgrCoreData.c.
FLGR_Data1D* flgr1d_create_from | ( | FLGR_Data1D * | dat | ) |
Allocate a FLGR_Data1D structure from another one. Just allocation is performed, no copy.
dat | : FLGR_Data1D pointer |
Definition at line 201 of file flgrCoreData.c.
FLGR_Data1D* flgr1d_create_neighborhood | ( | int | length, | |
int | spp, | |||
FLGR_Type | type, | |||
FLGR_Shape | shape | |||
) |
Allocate a FLGR_Data1D structure representing a neighborhood.
length | : an integer for array length | |
type | : a string for data type | |
shape | : shape | |
spp | : Samples Per Pixel |
Definition at line 250 of file flgrCoreData.c.
FLGR_Data1D* flgr1d_create_neighborhood_from | ( | FLGR_Data1D * | dat | ) |
Allocate a FLGR_Data1D structure representing a neighborhood from another one
dat | : FLGR_Data1D pointer |
Definition at line 278 of file flgrCoreData.c.
FLGR_Data1D* flgr1d_create_signal | ( | int | length, | |
int | spp, | |||
FLGR_Type | type | |||
) |
Allocate a FLGR_Data1D structure
length | : an integer for array length | |
spp | : Samples per pixel | |
type | : a string for data type |
Definition at line 219 of file flgrCoreData.c.
FLGR_Data1D* flgr1d_create_signal_from | ( | FLGR_Data1D * | dat | ) |
Allocate a FLGR_Data1D structure from another one. Just allocation is performed, no copy.
dat | : FLGR_Data1D pointer |
Definition at line 231 of file flgrCoreData.c.
int flgr1d_data_is_shape | ( | FLGR_Data1D * | data, | |
FLGR_Shape | shape | |||
) |
Test if a FLGR_Data1D correspond to a given shape
data | : a pointer to FLGR_Data1D | |
shape |
Definition at line 438 of file flgrCoreData.c.
int flgr1d_data_is_type | ( | FLGR_Data1D * | data, | |
FLGR_Type | type | |||
) |
Test if a FLGR_Data1D correspond to a given type
data | : a pointer to FLGR_Data1D | |
type | : type |
Definition at line 483 of file flgrCoreData.c.
FLGR_Ret flgr1d_data_set_shape | ( | FLGR_Data1D * | dat, | |
FLGR_Shape | shape | |||
) |
Change the shape string of a FLGR_Data2D (No modification of neighborhood definition or pixel array)
dat | : a pointer to FLGR_Data2D | |
shape | : a string for shape |
Definition at line 500 of file flgrCoreData.c.
FLGR_Ret flgr1d_destroy | ( | FLGR_Data1D * | dat | ) |
Unallocate a FLGR_Data1D structure
dat | : a pointer to FLGR_Data1D |
Definition at line 295 of file flgrCoreData.c.
EXPORT_LIB FLGR_Ret flgr1d_get_data_no_norm_ptr | ( | FLGR_Data1D * | dat, | |
int | pos, | |||
void * | value | |||
) |
get a value at a specific position in an 1D Array
dat | : a pointer to FLGR_Data1D | |
pos | : an integer representing the position in the array | |
value | : pointer to a value |
Definition at line 800 of file flgrCoreDataIO.c.
EXPORT_LIB FLGR_Ret flgr1d_get_data_ptr | ( | FLGR_Data1D * | dat, | |
int | pos, | |||
void * | value | |||
) |
get a value at a specific position in an 1D Array. If the position is out of the matrix, pos will be recalculated to reflect a signal unfolded
dat | : a pointer to FLGR_Data1D | |
pos | : an integer representing the position in the array | |
value | : pointer to a value |
Definition at line 695 of file flgrCoreDataIO.c.
EXPORT_LIB FLGR_Ret flgr1d_get_data_vector | ( | FLGR_Data1D * | dat, | |
int | pos, | |||
FLGR_Vector * | vct | |||
) |
Get a vector at a specific position in an 1D Array
The position in the array is normalized (eg if pos==-2 then pos=1)
dat | : a pointer to FLGR_Data1D | |
pos | : an integer representing the position in the array | |
vct | : pointer to a FLGR_Vector |
Definition at line 157 of file flgrCoreDataIO.c.
EXPORT_LIB FLGR_Ret flgr1d_get_data_vector_no_norm | ( | FLGR_Data1D * | dat, | |
int | pos, | |||
FLGR_Vector * | vct | |||
) |
Get a vector at a specific position in an 1D Array
dat | : a pointer to FLGR_Data1D | |
pos | : an integer representing the position in the array | |
vct | : pointer to a FLGR_Vector |
Definition at line 223 of file flgrCoreDataIO.c.
FLGR_Ret flgr1d_is_data_same_attributes | ( | FLGR_Data1D * | data1, | |
FLGR_Data1D * | data2, | |||
const char * | callingFunction | |||
) |
Test if two FLGR_Data2D have the same sizes and same types
data1 | : a pointer to FLGR_Data1D | |
data2 | : a pointer to FLGR_Data1D | |
callingFunction | : String representing the name of the calling function |
Definition at line 391 of file flgrCoreData.c.
FLGR_Ret flgr1d_is_data_same_length | ( | FLGR_Data1D * | dat1, | |
FLGR_Data1D * | dat2 | |||
) |
Test if data1d have same length
dat1 | : a pointer to FLGR_Data1D | |
dat2 | : a pointer to FLGR_Data1D |
Definition at line 316 of file flgrCoreData.c.
FLGR_Ret flgr1d_is_data_same_spp | ( | FLGR_Data1D * | dat1, | |
FLGR_Data1D * | dat2 | |||
) |
Test if data1d have same samples per pixel. Valid spp check is also performed
dat1 | : a pointer to FLGR_Data1D | |
dat2 | : a pointer to FLGR_Data1D |
Definition at line 365 of file flgrCoreData.c.
FLGR_Ret flgr1d_is_data_same_type | ( | FLGR_Data1D * | dat1, | |
FLGR_Data1D * | dat2 | |||
) |
Test if data1d have same type and same samples per pixel. Valid type check is also performed
dat1 | : a pointer to FLGR_Data1D | |
dat2 | : a pointer to FLGR_Data1D |
Definition at line 338 of file flgrCoreData.c.
EXPORT_LIB FLGR_Ret flgr1d_set_data_ptr | ( | FLGR_Data1D * | dat, | |
int | pos, | |||
void * | value | |||
) |
Set a value at a specific position in an 1D Array
dat | : a pointer to FLGR_Data1D | |
pos | : an integer representing the position in the array | |
value | : pointer to a value |
Definition at line 551 of file flgrCoreDataIO.c.
EXPORT_LIB FLGR_Ret flgr1d_set_data_str | ( | FLGR_Data1D * | dat, | |
int | pos, | |||
char * | value | |||
) |
Set a value at a specific position in an 1D Array
dat | : a pointer to FLGR_Data1D | |
pos | : an integer representing the position in the array | |
value | : string representing the value |
Definition at line 602 of file flgrCoreDataIO.c.
EXPORT_LIB FLGR_Ret flgr1d_set_data_vector | ( | FLGR_Data1D * | dat, | |
int | pos, | |||
FLGR_Vector * | vct | |||
) |
Set a vector at a specific position in an 1D Array
dat | : a pointer to FLGR_Data1D | |
pos | : an integer representing the position in the array | |
vct | : pointer to a FLGR_Vector |
Definition at line 83 of file flgrCoreDataIO.c.
FLGR_Ret flgr2d_clear_all | ( | FLGR_Data2D * | data | ) |
Set to zero the whole image
data | : a pointer to a FLGR_Data2D |
Definition at line 1275 of file flgrCoreData.c.
FLGR_Data2D* flgr2d_create_neighborhood | ( | int | size_y, | |
int | size_x, | |||
int | spp, | |||
FLGR_Type | type, | |||
FLGR_Shape | shape, | |||
FLGR_Connexity | connexity | |||
) |
Allocate a FLGR_Data2D structure representing a Neighborhood definition
size_y | : an integer for array size_y | |
size_x | : an integer for array size_x | |
spp | : Samples per pixel | |
type | : a string for data type (FLGR_UINT8, FLGR_UINT16, FLGR_UINT32, FLGR_INT8, FLGR_INT16, FLGR_INT32, FLGR_FLOAT32, FLGR_FLOAT64) | |
shape | : a string for shape considered (FLGR_RECT, FLGR_HEX, FLGR_DISC, "SLASH", "BSLASH", FLGR_CROSS, "CROSS2") | |
connexity | : |
Definition at line 702 of file flgrCoreData.c.
FLGR_Data2D* flgr2d_create_neighborhood_from | ( | FLGR_Data2D * | nhbsrc | ) |
Allocate a FLGR_Data2D structure by copying size, type, shape and connexity from another FLGR_Data2D. Neighborhood definition contents is not copied, but created from collected informations.
nhbsrc | : a pointer to FLGR_Data2D |
Definition at line 740 of file flgrCoreData.c.
FLGR_Data2D* flgr2d_create_neighborhood_from_connexity | ( | int | spp, | |
FLGR_Type | type, | |||
FLGR_Connexity | connexity | |||
) |
Allocate a FLGR_Data2D structure only with connexity information. The size is the smallest for the connexity specified
spp | : Samples per pixel | |
type | ||
connexity |
Definition at line 759 of file flgrCoreData.c.
FLGR_Data2D* flgr2d_create_pixmap | ( | int | size_y, | |
int | size_x, | |||
int | spp, | |||
FLGR_Type | type | |||
) |
Allocate a FLGR_Data2D structure representing an image
size_y | : an integer for array size_y | |
size_x | : an integer for array size_x | |
spp | : Samples per pixel | |
type | : a string for data type (FLGR_UINT8, FLGR_UINT16, FLGR_UINT32, FLGR_INT8, FLGR_INT16, FLGR_INT32, FLGR_FLOAT32, FLGR_FLOAT64) |
Definition at line 669 of file flgrCoreData.c.
FLGR_Data2D* flgr2d_create_pixmap_from | ( | FLGR_Data2D * | imgsrc | ) |
Allocate a FLGR_Data2D structure by copying size and type from another FLGR_Data2D. Image contents is not copied
imgsrc | : a pointer to FLGR_Data2D |
Definition at line 681 of file flgrCoreData.c.
FLGR_Data2D* flgr2d_create_pixmap_link | ( | FLGR_Data2D * | datain, | |
int | partsNumber, | |||
int | partIndex, | |||
int | overlapSize | |||
) |
Create an image and instead of allocating rows, copy rows pointer from another image
datain | : a pointer to FLGR_Data2D | |
partsNumber | : integer representing where row start link in source data | |
partIndex | : integer representing where row stop link in source data | |
overlapSize | : overlap size to consider between parts |
Definition at line 822 of file flgrCoreData.c.
int flgr2d_data_is_connexity | ( | FLGR_Data2D * | data, | |
FLGR_Connexity | connexity | |||
) |
Test if a FLGR_Data2D correspond to a connexity
data | : a pointer to FLGR_Data2D | |
connexity | : connexity flag |
Definition at line 1172 of file flgrCoreData.c.
int flgr2d_data_is_shape | ( | FLGR_Data2D * | data, | |
FLGR_Shape | shape | |||
) |
Test if a FLGR_Data2D correspond to a given shape
data | : a pointer to FLGR_Data2D | |
shape | : shape flag |
Definition at line 1154 of file flgrCoreData.c.
int flgr2d_data_is_type | ( | FLGR_Data2D * | data, | |
FLGR_Type | type | |||
) |
Test if a FLGR_Data2D correspond to a given type
data | : a pointer to FLGR_Data2D | |
type | : type |
Definition at line 1218 of file flgrCoreData.c.
FLGR_Ret flgr2d_data_set_connexity | ( | FLGR_Data2D * | dat, | |
FLGR_Connexity | connexity | |||
) |
Change the connexity of a FLGR_Data2D
dat | : a pointer to FLGR_Data2D | |
connexity | : FLGR_Connexity connexity |
Definition at line 1256 of file flgrCoreData.c.
FLGR_Ret flgr2d_data_set_shape | ( | FLGR_Data2D * | dat, | |
FLGR_Shape | shape | |||
) |
Change the shape string of a FLGR_Data2D (No modification of neighborhood definition or pixel array)
dat | : a pointer to FLGR_Data2D | |
shape | : a string for shape |
Definition at line 1236 of file flgrCoreData.c.
FLGR_Ret flgr2d_destroy | ( | FLGR_Data2D * | dat | ) |
Unallocate a FLGR_Data2D structure
dat | : a pointer to FLGR_Data2D |
Definition at line 785 of file flgrCoreData.c.
FLGR_Ret flgr2d_destroy_link | ( | FLGR_Data2D * | dat | ) |
Unallocate a FLGR_Data2D which is a link another FLGR_Data2D
dat | : a pointer to FLGR_Data2D |
Definition at line 976 of file flgrCoreData.c.
EXPORT_LIB FLGR_Ret flgr2d_get_data_no_norm_ptr | ( | FLGR_Data2D * | dat, | |
int | row, | |||
int | col, | |||
void * | value | |||
) |
Get a pixel value
dat | : a pointer to FLGR_Data2D | |
row | : an integer for row number | |
col | : an integer for column number | |
value | : pointer to the value (the type of the original value must fit with dat->type) |
Definition at line 1199 of file flgrCoreDataIO.c.
EXPORT_LIB FLGR_Ret flgr2d_get_data_ptr | ( | FLGR_Data2D * | dat, | |
int | row, | |||
int | col, | |||
void * | value | |||
) |
Get a pixel value by specifying coordinates. Unfold data if coordinate are outside
dat | : a pointer to FLGR_Data2D | |
row | : an integer for row number | |
col | : an integer for column number | |
value | : pointer to the value (the type of the original value must fit with dat->type) |
Definition at line 1076 of file flgrCoreDataIO.c.
EXPORT_LIB FLGR_Ret flgr2d_get_data_vector | ( | FLGR_Data2D * | dat, | |
int | row, | |||
int | col, | |||
FLGR_Vector * | vct | |||
) |
Get a vector at a specific position in an 2D Array
The position in the array is normalized (eg if rows==-2 then row=1)
dat | : a pointer to FLGR_Data2D | |
row | : an integer representing the row position in the array | |
col | : an integer representing the column position in the array | |
vct | : pointer to a FLGR_Vector |
Definition at line 382 of file flgrCoreDataIO.c.
EXPORT_LIB FLGR_Ret flgr2d_get_data_vector_no_norm | ( | FLGR_Data2D * | dat, | |
int | row, | |||
int | col, | |||
FLGR_Vector * | vct | |||
) |
Get a vector at a specific position in an 2D Array
dat | : a pointer to FLGR_Data2D | |
row | : an integer representing the row position in the array | |
col | : an integer representing the column position in the array | |
vct | : pointer to a FLGR_Vector |
Definition at line 449 of file flgrCoreDataIO.c.
FLGR_Ret flgr2d_is_data_same_attributes | ( | FLGR_Data2D * | data1, | |
FLGR_Data2D * | data2, | |||
const char * | callingFunction | |||
) |
Test if two FLGR_Data2D have the same sizes and same types
data1 | : a pointer to FLGR_Data2D | |
data2 | : a pointer to FLGR_Data2D | |
callingFunction | : String representing the name of the calling function |
Definition at line 1106 of file flgrCoreData.c.
FLGR_Ret flgr2d_is_data_same_size | ( | FLGR_Data2D * | data1, | |
FLGR_Data2D * | data2 | |||
) |
Test if two FLGR_Data2D have the same sizes (size_x and size_y)
data1 | : a pointer to FLGR_Data2D | |
data2 | : a pointer to FLGR_Data2D |
Definition at line 1082 of file flgrCoreData.c.
FLGR_Ret flgr2d_is_data_same_spp | ( | FLGR_Data2D * | dat1, | |
FLGR_Data2D * | dat2 | |||
) |
Test if data2d have same samples per pixel. Valid spp check is also performed
dat1 | : a pointer to FLGR_Data2D | |
dat2 | : a pointer to FLGR_Data2D |
Definition at line 1058 of file flgrCoreData.c.
FLGR_Ret flgr2d_is_data_same_type | ( | FLGR_Data2D * | data1, | |
FLGR_Data2D * | data2 | |||
) |
Test if two FLGR_Data2D have the same type
data1 | : a pointer to FLGR_Data2D | |
data2 | : a pointer to FLGR_Data2D |
Definition at line 1030 of file flgrCoreData.c.
EXPORT_LIB FLGR_Ret flgr2d_set_data_ptr | ( | FLGR_Data2D * | dat, | |
int | row, | |||
int | col, | |||
void * | value | |||
) |
Set a value at a specific position in an 2D Array
dat | : a pointer to FLGR_Data2D | |
row | : an integer for row number | |
col | : an integer for column number | |
value | : a pointer to a variable which type corresponds with dat->type |
Definition at line 928 of file flgrCoreDataIO.c.
EXPORT_LIB FLGR_Ret flgr2d_set_data_str | ( | FLGR_Data2D * | dat, | |
int | row, | |||
int | col, | |||
char * | value | |||
) |
Get a value at a specific position in an 2D array
dat | : a pointer to FLGR_Data2D | |
row | : an integer for row number | |
col | : an integer for column number | |
value | : string representig the value |
Definition at line 982 of file flgrCoreDataIO.c.
EXPORT_LIB FLGR_Ret flgr2d_set_data_vector | ( | FLGR_Data2D * | dat, | |
int | row, | |||
int | col, | |||
FLGR_Vector * | vct | |||
) |
Set a vector at a specific position in an 2D Array
dat | : a pointer to FLGR_Data2D | |
row | : an integer representing the row position in the array | |
col | : an integer representing the column position in the array | |
vct | : pointer to a FLGR_Vector |
Definition at line 299 of file flgrCoreDataIO.c.
int flgr_normalize_coordinate | ( | int | axis_coord, | |
int | axis_length | |||
) |
Protect coordinate access as the image was unfolded
axis_coord | : coordinate value of an axis | |
axis_length | : axis length |
Definition at line 65 of file flgrCoreData.c.