Fulguro Logo Support This Project

Copy functions
[Core]


Detailed Description

Functions to copy FLGR_Data2D.

FLGR_Ret flgr1d_downsample (FLGR_Data1D *datdest, FLGR_Data1D *datsrc, int factor)
FLGR_Ret flgr2d_downsample (FLGR_Data2D *datdest, FLGR_Data2D *datsrc, int factor_x, int factor_y)
FLGR_Ret flgr1d_extract_region (FLGR_Data1D *datroi, FLGR_Data1D *datsrc, int x)
FLGR_Ret flgr1d_insert_region (FLGR_Data1D *datdest, FLGR_Data1D *datroi, int x)
FLGR_Ret flgr2d_extract_region (FLGR_Data2D *datroi, FLGR_Data2D *datsrc, int x, int y)
FLGR_Ret flgr2d_insert_region (FLGR_Data2D *datdest, FLGR_Data2D *datroi, int x, int y)

Functions

FLGR_Ret flgr1d_copy (FLGR_Data1D *datdest, FLGR_Data1D *datsrc)
FLGR_Ret flgr1d_copy_to_2d (FLGR_Data2D *datdest, FLGR_Data1D *datsrc)
FLGR_Ret flgr1d_export_raw_ptr (void *raw, FLGR_Data1D *datsrc)
FLGR_Ret flgr1d_import_raw_ptr (FLGR_Data1D *datdest, void *raw)
FLGR_Ret flgr1d_mirror (FLGR_Data1D *datdest, FLGR_Data1D *datsrc)
FLGR_Ret flgr1d_mirror_hmorph (FLGR_Data1D *dat)
FLGR_Ret flgr2d_copy (FLGR_Data2D *datdest, FLGR_Data2D *datsrc)
FLGR_Ret flgr2d_copy_to_1d (FLGR_Data1D *datdest, FLGR_Data2D *datsrc)
FLGR_Ret flgr2d_export_raw_ptr (void *raw, FLGR_Data2D *datsrc)
FLGR_Ret flgr2d_fill_nhb_even_rows (FLGR_Data2D *datdest, FLGR_Data2D *datsrc)
FLGR_Ret flgr2d_fill_nhb_odd_rows (FLGR_Data2D *datdest, FLGR_Data2D *datsrc)
FLGR_Ret flgr2d_fill_nhbs_for_6_connexity (FLGR_Data2D *nhbEven, FLGR_Data2D *nhbOdd, FLGR_Data2D *nhb, int SYM)
FLGR_Ret flgr2d_import_raw_ptr (FLGR_Data2D *datdest, void *raw)
FLGR_Ret flgr2d_mirror_horizontal (FLGR_Data2D *datdest, FLGR_Data2D *datsrc)
FLGR_Ret flgr2d_mirror_horizontal_hmorph (FLGR_Data2D *dat)
FLGR_Ret flgr2d_mirror_vertical (FLGR_Data2D *datdest, FLGR_Data2D *datsrc)
FLGR_Ret flgr2d_mirror_vertical_hmorph (FLGR_Data2D *dat)


Function Documentation

FLGR_Ret flgr1d_copy ( FLGR_Data1D datdest,
FLGR_Data1D datsrc 
)

Copy FLGR_Data1D source array to FLGR_Data1D destination array

  • FLGR_Data1D must have the same size (size_x and size_y)
  • FLGR_Data1D types could be differents but no normalization are performed

Parameters:
*datdest : pointer to FLGR_Data1D structure
*datsrc : pointer to FLGR_Data1D structure
Returns:
FLGR_RET_OK, ...

Definition at line 458 of file flgrCoreCopy.c.

FLGR_Ret flgr1d_copy_to_2d ( FLGR_Data2D datdest,
FLGR_Data1D datsrc 
)

copy 1d data to 2d data

Parameters:
datdest : a pointer to FLGR_Data1D
datsrc : a pointer to FLGR_Data2D
Returns:
FLGR_RET_OK, ...

Definition at line 1543 of file flgrCoreCopy.c.

FLGR_Ret flgr1d_downsample ( FLGR_Data1D datdest,
FLGR_Data1D datsrc,
int  factor 
)

Downsample a data1d

Parameters:
datdest : a pointer to a FLGR_Data1D
datsrc : a pointer to a FLGR_Data1D
factor : downsampling factor
Returns:
FLGR_RET_OK, ...

Definition at line 93 of file flgrCoreSampling.c.

FLGR_Ret flgr1d_export_raw_ptr ( void *  raw,
FLGR_Data1D datsrc 
)

Export FLGR_Data1D to a raw. The raw is stored using type of the given FLGR_Data1D

Parameters:
raw : a pointer to the array (the type of the array must fit with the type of dat->type)
datsrc : a pointer to FLGR_Data1D
Returns:
FLGR_RET_OK, ...
For fgBIT, raw are stored one pixel (one bit) by fgBIT memory cell contrary to FLGR_DataXD where there is 32 bits per fgBIT memory cell

Definition at line 1258 of file flgrCoreCopy.c.

FLGR_Ret flgr1d_extract_region ( FLGR_Data1D datroi,
FLGR_Data1D datsrc,
int  x 
)

Extract a region of interest (ROI)

Parameters:
datsrc : a pointer to a FLGR_Data1D
datroi : a pointer to a FLGR_Data1D smaller than datsrc
x : x offset in destinnation
Returns:
FLGR_RET_OK, ...

Definition at line 93 of file flgrCoreRoI.c.

FLGR_Ret flgr1d_import_raw_ptr ( FLGR_Data1D datdest,
void *  raw 
)

Import a raw in a FLGR_Data1D. The raw is read using type of the given FLGR_Data1D

Parameters:
datdest : a pointer to FLGR_Data1D
raw : a pointer to the array (the type of the array must fit with the type of dat->type)
Returns:
FLGR_RET_OK, ...
For fgBIT, raw are stored one pixel (one bit) by fgBIT memory cell contrary to FLGR_DataXD where there is 32 bits per fgBIT memory cell

Definition at line 1104 of file flgrCoreCopy.c.

FLGR_Ret flgr1d_insert_region ( FLGR_Data1D datdest,
FLGR_Data1D datroi,
int  x 
)

Insert a region of interest (ROI)

Parameters:
datdest : a pointer to a FLGR_Data1D
datroi : a pointer to a FLGR_Data1D smaller than datdest
x : x offset in destinnation
Returns:
FLGR_RET_OK, ...

Definition at line 279 of file flgrCoreRoI.c.

FLGR_Ret flgr1d_mirror ( FLGR_Data1D datdest,
FLGR_Data1D datsrc 
)

mirror signal (obviously horizontally, ...)

Parameters:
datdest : a pointer to FLGR_Data1D
datsrc : a pointer to FLGR_Data1D
Returns:
FLGR_RET_OK, ...

Definition at line 1626 of file flgrCoreCopy.c.

FLGR_Ret flgr1d_mirror_hmorph ( FLGR_Data1D dat  ) 

mirror signal (obviously horizontally, ...)

Parameters:
dat : a pointer to FLGR_Data1D
Returns:
FLGR_RET_OK, ...

Definition at line 1695 of file flgrCoreCopy.c.

FLGR_Ret flgr2d_copy ( FLGR_Data2D datdest,
FLGR_Data2D datsrc 
)

Copy FLGR_Data2D source array to FLGR_Data2D destination array

  • FLGR_Data2D must have the same size (size_x and size_y)
  • FLGR_Data2D types could be differents but no normalization are performed

Parameters:
*datdest : pointer to FLGR_Data2D structure
*datsrc : pointer to FLGR_Data2D structure
Returns:
FLGR_RET_OK, ...
Examples:
example1.c, and example2.c.

Definition at line 895 of file flgrCoreCopy.c.

FLGR_Ret flgr2d_copy_to_1d ( FLGR_Data1D datdest,
FLGR_Data2D datsrc 
)

copy 2d data to 1d data

Parameters:
datdest : a pointer to FLGR_Data1D
datsrc : a pointer to FLGR_Data2D
Returns:
FLGR_RET_OK, ...

Definition at line 1468 of file flgrCoreCopy.c.

FLGR_Ret flgr2d_downsample ( FLGR_Data2D datdest,
FLGR_Data2D datsrc,
int  factor_x,
int  factor_y 
)

Downsample a data2d

Parameters:
datdest : a pointer to a FLGR_Data2D
datsrc : a pointer to a FLGR_Data2D
factor_x : downsampling factor X
factor_y : downsampling factor Y
Returns:
FLGR_RET_OK, ...

Definition at line 181 of file flgrCoreSampling.c.

FLGR_Ret flgr2d_export_raw_ptr ( void *  raw,
FLGR_Data2D datsrc 
)

Export FLGR_Data2D. The raw is stored using type of the given FLGR_Data2D

Parameters:
raw : a pointer to the array (the type of the array must fit with the type of dat->type)
datsrc : a pointer to FLGR_Data2D
Returns:
FLGR_RET_OK, ...
For fgBIT, raw are stored one pixel (one bit) by fgBIT memory cell contrary to FLGR_DataXD where there is 32 bits per fgBIT memory cell

Definition at line 1407 of file flgrCoreCopy.c.

FLGR_Ret flgr2d_extract_region ( FLGR_Data2D datroi,
FLGR_Data2D datsrc,
int  x,
int  y 
)

Extract a region of interest (ROI)

Parameters:
datsrc : a pointer to a FLGR_Data2D
datroi : a pointer to a FLGR_Data2D smaller than datsrc
x : column offset in destinnation
y : row offset in destinnation
Returns:
FLGR_RET_OK, ...

Definition at line 173 of file flgrCoreRoI.c.

FLGR_Ret flgr2d_fill_nhb_even_rows ( FLGR_Data2D datdest,
FLGR_Data2D datsrc 
)

fill a nhb definition from datsrc for processing correctly even rows in 6-connexity operations.

Parameters:
*datsrc : pointer to neighborhood definition for odd rows processing
*datdest : pointer to neighborhood definition for even rows processing
Returns:
FLGR_RET_OK, ...

Definition at line 2013 of file flgrCoreCopy.c.

FLGR_Ret flgr2d_fill_nhb_odd_rows ( FLGR_Data2D datdest,
FLGR_Data2D datsrc 
)

fill a nhb definition from datsrc for processing correctly odd rows in 6-connexity operations.

Parameters:
*datsrc : pointer to neighborhood definition for odd rows processing
*datdest : pointer to neighborhood definition for even rows processing
Returns:
FLGR_RET_OK, ...

Definition at line 2111 of file flgrCoreCopy.c.

FLGR_Ret flgr2d_fill_nhbs_for_6_connexity ( FLGR_Data2D nhbEven,
FLGR_Data2D nhbOdd,
FLGR_Data2D nhb,
int  SYM 
)

Prepare an Even and Odd Neighborhood definition to slide on the image.
If the nhb source is not 6-connex nhbEven and nhbodd will be copied from the the source definition regarding the SYM flag.
The SYM flag allow the user to symetrize destinations neighborhoods regarding the center value.

Parameters:
*nhbEven : pointer to FLGR_Data2D structure Even (destination)
*nhbOdd : pointer to FLGR_Data2D structure Odd (destination)
*nhb : pointer to FLGR_Data2D structure (source)
*SYM : Flag (FLGR_NHB_NO_SYM, FLGR_NHB_SYM)
Returns:
FLGR_RET_OK, ...

Definition at line 2140 of file flgrCoreCopy.c.

FLGR_Ret flgr2d_import_raw_ptr ( FLGR_Data2D datdest,
void *  raw 
)

Import a raw in a FLGR_Data2D. The raw is read using type of the given FLGR_Data2D

Parameters:
datdest : a pointer to FLGR_Data2D
raw : a pointer to the array (the type of the array must fit with the type of dat->type)
Returns:
FLGR_RET_OK, ...
For fgBIT, raw are stored one pixel (one bit) by fgBIT memory cell contrary to FLGR_DataXD where there is 32 bits per fgBIT memory cell

Definition at line 1336 of file flgrCoreCopy.c.

FLGR_Ret flgr2d_insert_region ( FLGR_Data2D datdest,
FLGR_Data2D datroi,
int  x,
int  y 
)

Insert a region of interest (ROI)

Parameters:
datdest : a pointer to a FLGR_Data2D
datroi : a pointer to a FLGR_Data2D smaller than datdest
x : column offset in destinnation
y : row offset in destinnation
Returns:
FLGR_RET_OK, ...

Definition at line 360 of file flgrCoreRoI.c.

FLGR_Ret flgr2d_mirror_horizontal ( FLGR_Data2D datdest,
FLGR_Data2D datsrc 
)

mirror horizontally an image (regarding a vertical axis ...)

Parameters:
datdest : a pointer to FLGR_Data2D
datsrc : a pointer to FLGR_Data2D
Returns:
FLGR_RET_OK, ...

Definition at line 1772 of file flgrCoreCopy.c.

FLGR_Ret flgr2d_mirror_horizontal_hmorph ( FLGR_Data2D dat  ) 

mirror horizontally an image (regarding a vertical axis ...)

Parameters:
dat : a pointer to FLGR_Data2D
Returns:
FLGR_RET_OK, ...

Definition at line 1847 of file flgrCoreCopy.c.

FLGR_Ret flgr2d_mirror_vertical ( FLGR_Data2D datdest,
FLGR_Data2D datsrc 
)

Mirror with a horizontal centered axis a FLGR_Data2D array.

Parameters:
*datsrc : pointer to FLGR_Data2D structure
*datdest : pointer to FLGR_Data2D structure
Returns:
FLGR_RET_OK, ...

Definition at line 1908 of file flgrCoreCopy.c.

FLGR_Ret flgr2d_mirror_vertical_hmorph ( FLGR_Data2D dat  ) 

Mirror with a horizontal centered axis a FLGR_Data2D array. Works in place

Parameters:
*dat : pointer to FLGR_Data2D structure
Returns:
FLGR_RET_OK, ...

Definition at line 1870 of file flgrCoreCopy.c.


SourceForge.net Logo
Generated on Tue Nov 11 19:17:28 2008 for Fulguro by doxygen 1.5.6