Fulguro Logo Support This Project

Compare and replace functions
[Core]


Detailed Description

Functions to compare FLGR_DataXD or to replace element inside an array.


Functions

int flgr1d_compare (FLGR_Data1D *dat1, char *test, FLGR_Data1D *dat2)
int flgr1d_compare_const_ptr (FLGR_Data1D *dat1, char *test, FLGR_Vector *constant)
int flgr1d_compare_const_str (FLGR_Data1D *dat1, char *test, char *constant)
FLGR_Ret flgr1d_replace_I_with_C_C_C (FLGR_Data1D *datout, FLGR_Data1D *dattest1, char *test, FLGR_Vector *vec_test2, FLGR_Vector *vec_true, FLGR_Vector *vec_false)
FLGR_Ret flgr1d_replace_I_with_C_C_I (FLGR_Data1D *datout, FLGR_Data1D *dattest1, char *test, FLGR_Vector *vec_test2, FLGR_Vector *vec_true, FLGR_Data1D *datfalse)
FLGR_Ret flgr1d_replace_I_with_C_I_C (FLGR_Data1D *datout, FLGR_Data1D *dattest1, char *test, FLGR_Vector *vec_test2, FLGR_Data1D *dattrue, FLGR_Vector *vec_false)
FLGR_Ret flgr1d_replace_I_with_C_I_I (FLGR_Data1D *datout, FLGR_Data1D *dattest1, char *test, FLGR_Vector *vec_test2, FLGR_Data1D *dattrue, FLGR_Data1D *datfalse)
FLGR_Ret flgr1d_replace_I_with_I_C_C (FLGR_Data1D *datout, FLGR_Data1D *dattest1, char *test, FLGR_Data1D *dattest2, FLGR_Vector *vec_true, FLGR_Vector *vec_false)
FLGR_Ret flgr1d_replace_I_with_I_C_I (FLGR_Data1D *datout, FLGR_Data1D *dattest1, char *test, FLGR_Data1D *dattest2, FLGR_Vector *vec_true, FLGR_Data1D *datfalse)
FLGR_Ret flgr1d_replace_I_with_I_I_C (FLGR_Data1D *datout, FLGR_Data1D *dattest1, char *test, FLGR_Data1D *dattest2, FLGR_Data1D *dattrue, FLGR_Vector *vec_false)
FLGR_Ret flgr1d_replace_I_with_I_I_I (FLGR_Data1D *datout, FLGR_Data1D *dattest1, char *test, FLGR_Data1D *dattest2, FLGR_Data1D *dattrue, FLGR_Data1D *datfalse)
FLGR_Ret flgr1d_replace_I_with_I_I_S (FLGR_Data1D *datout, FLGR_Data1D *dattest1, char *test, FLGR_Data1D *dattest2, FLGR_Data1D *dattrue, char *str_false)
FLGR_Ret flgr1d_replace_I_with_I_S_I (FLGR_Data1D *datout, FLGR_Data1D *dattest1, char *test, FLGR_Data1D *dattest2, char *str_true, FLGR_Data1D *datfalse)
FLGR_Ret flgr1d_replace_I_with_I_S_S (FLGR_Data1D *datout, FLGR_Data1D *dattest1, char *test, FLGR_Data1D *dattest2, char *str_true, char *str_false)
FLGR_Ret flgr1d_replace_I_with_S_I_I (FLGR_Data1D *datout, FLGR_Data1D *dattest1, char *test, char *str_test2, FLGR_Data1D *dattrue, FLGR_Data1D *datfalse)
FLGR_Ret flgr1d_replace_I_with_S_I_S (FLGR_Data1D *datout, FLGR_Data1D *dattest1, char *test, char *str_test2, FLGR_Data1D *dattrue, char *str_false)
FLGR_Ret flgr1d_replace_I_with_S_S_I (FLGR_Data1D *datout, FLGR_Data1D *dattest1, char *test, char *str_test2, char *str_true, FLGR_Data1D *datfalse)
FLGR_Ret flgr1d_replace_I_with_S_S_S (FLGR_Data1D *datout, FLGR_Data1D *dattest1, char *test, char *str_test2, char *str_true, char *str_false)
int flgr2d_compare (FLGR_Data2D *dat1, char *test, FLGR_Data2D *dat2)
int flgr2d_compare_const_ptr (FLGR_Data2D *dat1, char *test, FLGR_Vector *constant)
int flgr2d_compare_const_str (FLGR_Data2D *dat1, char *test, char *constant)
FLGR_Ret flgr2d_replace_I_with_C_C_C (FLGR_Data2D *datout, FLGR_Data2D *dattest1, char *test, FLGR_Vector *vec_test2, FLGR_Vector *vec_true, FLGR_Vector *vec_false)
FLGR_Ret flgr2d_replace_I_with_C_C_I (FLGR_Data2D *datout, FLGR_Data2D *dattest1, char *test, FLGR_Vector *vec_test2, FLGR_Vector *vec_true, FLGR_Data2D *datfalse)
FLGR_Ret flgr2d_replace_I_with_C_I_C (FLGR_Data2D *datout, FLGR_Data2D *dattest1, char *test, FLGR_Vector *vec_test2, FLGR_Data2D *dattrue, FLGR_Vector *vec_false)
FLGR_Ret flgr2d_replace_I_with_C_I_I (FLGR_Data2D *datout, FLGR_Data2D *dattest1, char *test, FLGR_Vector *vec_test2, FLGR_Data2D *dattrue, FLGR_Data2D *datfalse)
FLGR_Ret flgr2d_replace_I_with_I_C_C (FLGR_Data2D *datout, FLGR_Data2D *dattest1, char *test, FLGR_Data2D *dattest2, FLGR_Vector *vec_true, FLGR_Vector *vec_false)
FLGR_Ret flgr2d_replace_I_with_I_C_I (FLGR_Data2D *datout, FLGR_Data2D *dattest1, char *test, FLGR_Data2D *dattest2, FLGR_Vector *vec_true, FLGR_Data2D *datfalse)
FLGR_Ret flgr2d_replace_I_with_I_I_C (FLGR_Data2D *datout, FLGR_Data2D *dattest1, char *test, FLGR_Data2D *dattest2, FLGR_Data2D *dattrue, FLGR_Vector *vec_false)
FLGR_Ret flgr2d_replace_I_with_I_I_I (FLGR_Data2D *datout, FLGR_Data2D *dattest1, char *test, FLGR_Data2D *dattest2, FLGR_Data2D *dattrue, FLGR_Data2D *datfalse)
FLGR_Ret flgr2d_replace_I_with_I_I_S (FLGR_Data2D *datout, FLGR_Data2D *dattest1, char *test, FLGR_Data2D *dattest2, FLGR_Data2D *dattrue, char *str_false)
FLGR_Ret flgr2d_replace_I_with_I_S_I (FLGR_Data2D *datout, FLGR_Data2D *dattest1, char *test, FLGR_Data2D *dattest2, char *str_true, FLGR_Data2D *datfalse)
FLGR_Ret flgr2d_replace_I_with_I_S_S (FLGR_Data2D *datout, FLGR_Data2D *dattest1, char *test, FLGR_Data2D *dattest2, char *str_true, char *str_false)
FLGR_Ret flgr2d_replace_I_with_S_I_I (FLGR_Data2D *datout, FLGR_Data2D *dattest1, char *test, char *str_test2, FLGR_Data2D *dattrue, FLGR_Data2D *datfalse)
FLGR_Ret flgr2d_replace_I_with_S_I_S (FLGR_Data2D *datout, FLGR_Data2D *dattest1, char *test, char *str_test2, FLGR_Data2D *dattrue, char *str_false)
FLGR_Ret flgr2d_replace_I_with_S_S_I (FLGR_Data2D *datout, FLGR_Data2D *dattest1, char *test, char *str_test2, char *str_true, FLGR_Data2D *datfalse)
FLGR_Ret flgr2d_replace_I_with_S_S_S (FLGR_Data2D *datout, FLGR_Data2D *dattest1, char *test, char *str_test2, char *str_true, char *str_false)


Function Documentation

int flgr1d_compare ( FLGR_Data1D dat1,
char *  test,
FLGR_Data1D dat2 
)

Compare element by element two FLGR_Data1D

ex: dat1==dat2, dat1>dat2...

Warning:
dat1!=dat2 is not equivalent to !(dat1==dat2). The dat1!=dat2 test returns true if and only if every values are differents. The !(dat1==dat2) return true if at least one value is different.
Parameters:
dat1 : pointer to FLGR_Data1D structure
test : String for test ">" "<" ">=" "<=" "==" "!="
dat2 : pointer to FLGR_Data1D structure
Returns:
FLGR_TRUE or FLGR_FALSE

Definition at line 248 of file flgrCoreCompare.c.

int flgr1d_compare_const_ptr ( FLGR_Data1D dat1,
char *  test,
FLGR_Vector constant 
)

Compare element by element a FLGR_Data1D and a constant

Warning:
dat1!=constant is not equivalent to !(dat1==constant). The dat1!=constant test returns true if and only if every values are differents. The !(dat1==constant) return true if at least one value is different.
Parameters:
dat1 : pointer to FLGR_Data1D structure
test : String for test ">" "<" ">=" "<=" "==" "!="
constant : pointer to a value (type must correspond to dat1->type)
Returns:
FLGR_TRUE or FLGR_FALSE

Definition at line 417 of file flgrCoreCompare.c.

int flgr1d_compare_const_str ( FLGR_Data1D dat1,
char *  test,
char *  constant 
)

Compare element by element a FLGR_Data1D and a constant

Warning:
dat1!=constant is not equivalent to !(dat1==constant). The dat1!=constant test returns true if and only if every values are differents. The !(dat1==constant) return true if at least one value is different.
Parameters:
dat1 : pointer to FLGR_Data1D structure
test : String for test ">" "<" ">=" "<=" "==" "!="
constant : pointer to a string
Returns:
FLGR_TRUE or FLGR_FALSE

Definition at line 454 of file flgrCoreCompare.c.

FLGR_Ret flgr1d_replace_I_with_C_C_C ( FLGR_Data1D datout,
FLGR_Data1D dattest1,
char *  test,
FLGR_Vector vec_test2,
FLGR_Vector vec_true,
FLGR_Vector vec_false 
)

compute FLGR_Data1D elements replace

  if( dattest1[i]==dattest2[i] )
    datout[i]=dattrue[i];
  else
    datout[i]=datfalse[i];
Parameters:
datout 
dattest1 : test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
vec_test2 : test operand 2
vec_true 
vec_false 
Returns:
FLGR_RET_OK, ...

Definition at line 2211 of file flgrCoreReplace.c.

FLGR_Ret flgr1d_replace_I_with_C_C_I ( FLGR_Data1D datout,
FLGR_Data1D dattest1,
char *  test,
FLGR_Vector vec_test2,
FLGR_Vector vec_true,
FLGR_Data1D datfalse 
)

compute FLGR_Data1D elements replace

  if( dattest1[i]==dattest2[i] )
    datout[i]=dattrue[i];
  else
    datout[i]=datfalse[i];
Parameters:
datout 
dattest1 : test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
vec_test2 : test operand 2
vec_true 
datfalse 
Returns:
FLGR_RET_OK, ...

Definition at line 2014 of file flgrCoreReplace.c.

FLGR_Ret flgr1d_replace_I_with_C_I_C ( FLGR_Data1D datout,
FLGR_Data1D dattest1,
char *  test,
FLGR_Vector vec_test2,
FLGR_Data1D dattrue,
FLGR_Vector vec_false 
)

compute FLGR_Data1D elements replace

  if( dattest1[i]==dattest2[i] )
    datout[i]=dattrue[i];
  else
    datout[i]=vfalse;
Parameters:
datout 
dattest1 : test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
vec_test2 : test operand 2
dattrue 
vec_false 
Returns:
FLGR_RET_OK, ...

Definition at line 1819 of file flgrCoreReplace.c.

FLGR_Ret flgr1d_replace_I_with_C_I_I ( FLGR_Data1D datout,
FLGR_Data1D dattest1,
char *  test,
FLGR_Vector vec_test2,
FLGR_Data1D dattrue,
FLGR_Data1D datfalse 
)

compute FLGR_Data1D elements replace

  if( dattest1[i]==dattest2[i] )
    datout[i]=dattrue[i];
  else
    datout[i]=datfalse[i];
Parameters:
datout 
dattest1 : test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
vec_test2 : test operand 2
dattrue 
datfalse 
Returns:
FLGR_RET_OK, ...

Definition at line 1629 of file flgrCoreReplace.c.

FLGR_Ret flgr1d_replace_I_with_I_C_C ( FLGR_Data1D datout,
FLGR_Data1D dattest1,
char *  test,
FLGR_Data1D dattest2,
FLGR_Vector vec_true,
FLGR_Vector vec_false 
)

compute FLGR_Data1D elements replace

  if( dattest1[i]==dattest2[i] )
    datout[i]=dattrue[i];
  else
    datout[i]=datfalse[i];
Parameters:
datout 
dattest1 : test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
dattest2 : test operand 2
vec_true 
vec_false 
Returns:
FLGR_RET_OK, ...

Definition at line 1425 of file flgrCoreReplace.c.

FLGR_Ret flgr1d_replace_I_with_I_C_I ( FLGR_Data1D datout,
FLGR_Data1D dattest1,
char *  test,
FLGR_Data1D dattest2,
FLGR_Vector vec_true,
FLGR_Data1D datfalse 
)

compute FLGR_Data1D elements replace

  if( dattest1[i]==dattest2[i] )
    datout[i]=dattrue[i];
  else
    datout[i]=datfalse[i];
Parameters:
datout 
dattest1 : test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
dattest2 : test operand 2
vec_true 
datfalse 
Returns:
FLGR_RET_OK, ...

Definition at line 1235 of file flgrCoreReplace.c.

FLGR_Ret flgr1d_replace_I_with_I_I_C ( FLGR_Data1D datout,
FLGR_Data1D dattest1,
char *  test,
FLGR_Data1D dattest2,
FLGR_Data1D dattrue,
FLGR_Vector vec_false 
)

compute FLGR_Data1D elements replace

  if( dattest1[i]==dattest2[i] )
    datout[i]=dattrue[i];
  else
    datout[i]=vfalse;
Parameters:
datout 
dattest1 : test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
dattest2 : test operand 2
dattrue 
vec_false 
Returns:
FLGR_RET_OK, ...

Definition at line 1042 of file flgrCoreReplace.c.

FLGR_Ret flgr1d_replace_I_with_I_I_I ( FLGR_Data1D datout,
FLGR_Data1D dattest1,
char *  test,
FLGR_Data1D dattest2,
FLGR_Data1D dattrue,
FLGR_Data1D datfalse 
)

compute FLGR_Data1D elements replace

  if( dattest1[i]==dattest2[i] )
    datout[i]=dattrue[i];
  else
    datout[i]=datfalse[i];
Parameters:
datout 
dattest1 : test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
dattest2 : test operand 2
dattrue 
datfalse 
Returns:
FLGR_RET_OK, ...

Definition at line 894 of file flgrCoreReplace.c.

FLGR_Ret flgr1d_replace_I_with_I_I_S ( FLGR_Data1D datout,
FLGR_Data1D dattest1,
char *  test,
FLGR_Data1D dattest2,
FLGR_Data1D dattrue,
char *  str_false 
)

compute FLGR_Data1D elements replace

  if( dattest1[i]==dattest2[i] )
    datout[i]=dattrue[i];
  else
    datout[i]=vfalse;
Parameters:
datout 
dattest1 : test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
dattest2 : test operand 2
dattrue 
str_false 
Returns:
FLGR_RET_OK, ...

Definition at line 1091 of file flgrCoreReplace.c.

FLGR_Ret flgr1d_replace_I_with_I_S_I ( FLGR_Data1D datout,
FLGR_Data1D dattest1,
char *  test,
FLGR_Data1D dattest2,
char *  str_true,
FLGR_Data1D datfalse 
)

compute FLGR_Data1D elements replace

  if( dattest1[i]==dattest2[i] )
    datout[i]=dattrue[i];
  else
    datout[i]=datfalse[i];
Parameters:
datout 
dattest1 : test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
dattest2 : test operand 2
str_true 
datfalse 
Returns:
FLGR_RET_OK, ...

Definition at line 1282 of file flgrCoreReplace.c.

FLGR_Ret flgr1d_replace_I_with_I_S_S ( FLGR_Data1D datout,
FLGR_Data1D dattest1,
char *  test,
FLGR_Data1D dattest2,
char *  str_true,
char *  str_false 
)

compute FLGR_Data1D elements replace

  if( dattest1[i]==dattest2[i] )
    datout[i]=dattrue[i];
  else
    datout[i]=datfalse[i];
Parameters:
datout 
dattest1 : test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
dattest2 : test operand 2
str_true 
str_false 
Returns:
FLGR_RET_OK, ...

Definition at line 1471 of file flgrCoreReplace.c.

FLGR_Ret flgr1d_replace_I_with_S_I_I ( FLGR_Data1D datout,
FLGR_Data1D dattest1,
char *  test,
char *  str_test2,
FLGR_Data1D dattrue,
FLGR_Data1D datfalse 
)

compute FLGR_Data1D elements replace

  if( dattest1[i]==dattest2[i] )
    datout[i]=dattrue[i];
  else
    datout[i]=datfalse[i];
Parameters:
datout 
dattest1 : test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
str_test2 : string for vector test operand 2
dattrue 
datfalse 
Returns:
FLGR_RET_OK, ...

Definition at line 1677 of file flgrCoreReplace.c.

FLGR_Ret flgr1d_replace_I_with_S_I_S ( FLGR_Data1D datout,
FLGR_Data1D dattest1,
char *  test,
char *  str_test2,
FLGR_Data1D dattrue,
char *  str_false 
)

compute FLGR_Data1D elements replace

  if( dattest1[i]==dattest2[i] )
    datout[i]=dattrue[i];
  else
    datout[i]=vfalse;
Parameters:
datout 
dattest1 : test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
str_test2 : string for vector test operand 2
dattrue 
str_false 
Returns:
FLGR_RET_OK, ...

Definition at line 1865 of file flgrCoreReplace.c.

FLGR_Ret flgr1d_replace_I_with_S_S_I ( FLGR_Data1D datout,
FLGR_Data1D dattest1,
char *  test,
char *  str_test2,
char *  str_true,
FLGR_Data1D datfalse 
)

compute FLGR_Data1D elements replace

  if( dattest1[i]==dattest2[i] )
    datout[i]=dattrue[i];
  else
    datout[i]=vfalse;
Parameters:
datout 
dattest1 : test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
str_test2 : string for vector test operand 2
str_true 
datfalse 
Returns:
FLGR_RET_OK, ...

Definition at line 2060 of file flgrCoreReplace.c.

FLGR_Ret flgr1d_replace_I_with_S_S_S ( FLGR_Data1D datout,
FLGR_Data1D dattest1,
char *  test,
char *  str_test2,
char *  str_true,
char *  str_false 
)

compute FLGR_Data1D elements replace

  if( dattest1[i]==dattest2[i] )
    datout[i]=dattrue[i];
  else
    datout[i]=vfalse;
Parameters:
datout 
dattest1 : test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
str_test2 : string for vector test operand 2
str_true 
str_false 
Returns:
FLGR_RET_OK, ...

Definition at line 2255 of file flgrCoreReplace.c.

int flgr2d_compare ( FLGR_Data2D dat1,
char *  test,
FLGR_Data2D dat2 
)

Compare two images pixels by pixels.

Warning:
dat1!=dat2 is not equivalent to !(dat1==dat2). The dat1!=dat2 test returns true if and only if every values are differents. The !(dat1==dat2) return true if at least one value is different.
Parameters:
dat1 : pointer to FLGR_Data2D structure
test : String for test ">" "<" ">=" "<=" "==" "!="
dat2 : pointer to FLGR_Data2D structure
Returns:
FLGR_TRUE or FLGR_FALSE
Examples:
example2.c.

Definition at line 556 of file flgrCoreCompare.c.

int flgr2d_compare_const_ptr ( FLGR_Data2D dat1,
char *  test,
FLGR_Vector constant 
)

Compare all pixels of an images with a constant.

Warning:
dat1!=constant is not equivalent to !(dat1==constant). The dat1!=constant test returns true if and only if every values are differents. The !(dat1==constant) return true if at least one value is different.
Parameters:
dat1 : pointer to FLGR_Data2D structure
test : String for test ">" "<" ">=" "<=" "==" "!="
constant : void pointer to constant variable (type must correspond to image type)
Returns:
FLGR_TRUE or FLGR_FALSE

Definition at line 674 of file flgrCoreCompare.c.

int flgr2d_compare_const_str ( FLGR_Data2D dat1,
char *  test,
char *  constant 
)

Compare FLGR_Data2D elements with a constant.

Warning:
dat1!=constant is not equivalent to !(dat1==constant). The dat1!=constant test returns true if and only if every values are differents. The !(dat1==constant) return true if at least one value is different.
Parameters:
dat1 : pointer to FLGR_Data2D structure
test : String for test ">" "<" ">=" "<=" "==" "!="
constant : void pointer to constant variable (type must correspond to image type)
Returns:
FLGR_TRUE or FLGR_FALSE

Definition at line 709 of file flgrCoreCompare.c.

FLGR_Ret flgr2d_replace_I_with_C_C_C ( FLGR_Data2D datout,
FLGR_Data2D dattest1,
char *  test,
FLGR_Vector vec_test2,
FLGR_Vector vec_true,
FLGR_Vector vec_false 
)

compute pixel to pixel replace2d

  if( dattest1[i][j]==*vtest2 )
    datout[i][j]=dattrue[i][j];
  else
    datout[i][j]=*vfalse;
Parameters:
datout : image output
dattest1 : image test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
vec_test2 : constant pointer test operand 2
vec_true : constant pinter value if true
vec_false : constant pointer if false
Returns:
FLGR_RET_OK, ...

Definition at line 3284 of file flgrCoreReplace.c.

FLGR_Ret flgr2d_replace_I_with_C_C_I ( FLGR_Data2D datout,
FLGR_Data2D dattest1,
char *  test,
FLGR_Vector vec_test2,
FLGR_Vector vec_true,
FLGR_Data2D datfalse 
)

compute pixel to pixel replace2d

  if( dattest1[i][j]==*vtest2 )
    datout[i][j]=*vtrue;
  else
    datout[i][j]=datfalse[i][j];
Parameters:
datout : image output
dattest1 : image test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
vec_test2 : constant pointer for test operand 2
vec_true : constant pointer if true
datfalse : image value if false
Returns:
FLGR_RET_OK, ...

Definition at line 3236 of file flgrCoreReplace.c.

FLGR_Ret flgr2d_replace_I_with_C_I_C ( FLGR_Data2D datout,
FLGR_Data2D dattest1,
char *  test,
FLGR_Vector vec_test2,
FLGR_Data2D dattrue,
FLGR_Vector vec_false 
)

compute pixel to pixel replace2d

  if( dattest1[i][j]==*vtest2 )
    datout[i][j]=dattrue[i][j];
  else
    datout[i][j]=*vfalse;
Parameters:
datout : image output
dattest1 : image test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
vec_test2 : constant pointer test operand 2
dattrue : image value if true
vec_false : constant pointer if false
Returns:
FLGR_RET_OK, ...

Definition at line 3187 of file flgrCoreReplace.c.

FLGR_Ret flgr2d_replace_I_with_C_I_I ( FLGR_Data2D datout,
FLGR_Data2D dattest1,
char *  test,
FLGR_Vector vec_test2,
FLGR_Data2D dattrue,
FLGR_Data2D datfalse 
)

compute pixel to pixel replace2d

  if( dattest1[i][j]==*vtest2 )
    datout[i][j]=dattrue[i][j];
  else
    datout[i][j]=datfalse[i][j];
Parameters:
datout : image output
dattest1 : image test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
vec_test2 : constant pointer for test operand 2
dattrue : image value if true
datfalse : image value if false
Returns:
FLGR_RET_OK, ...

Definition at line 3137 of file flgrCoreReplace.c.

FLGR_Ret flgr2d_replace_I_with_I_C_C ( FLGR_Data2D datout,
FLGR_Data2D dattest1,
char *  test,
FLGR_Data2D dattest2,
FLGR_Vector vec_true,
FLGR_Vector vec_false 
)

compute pixel to pixel replace2d

  if( dattest1[i][j]==dattest2[i][j] )
    datout[i][j]=*vtrue;
  else
    datout[i][j]=*vfalse;
Parameters:
datout : image output
dattest1 : image test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
dattest2 : image test operand 2
vec_true : constant pointer if true
vec_false : constant pointer if false
Returns:
FLGR_RET_OK, ...

Definition at line 3090 of file flgrCoreReplace.c.

FLGR_Ret flgr2d_replace_I_with_I_C_I ( FLGR_Data2D datout,
FLGR_Data2D dattest1,
char *  test,
FLGR_Data2D dattest2,
FLGR_Vector vec_true,
FLGR_Data2D datfalse 
)

compute pixel to pixel replace2d

  if( dattest1[i][j]==dattest2[i][j] )
    datout[i][j]=*vtrue;
  else
    datout[i][j]=datfalse[i][j];
Parameters:
datout : image output
dattest1 : image test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
dattest2 : image test operand 2
vec_true : constant pointer if true
datfalse : image value if false
Returns:
FLGR_RET_OK, ...

Definition at line 3039 of file flgrCoreReplace.c.

FLGR_Ret flgr2d_replace_I_with_I_I_C ( FLGR_Data2D datout,
FLGR_Data2D dattest1,
char *  test,
FLGR_Data2D dattest2,
FLGR_Data2D dattrue,
FLGR_Vector vec_false 
)

compute pixel to pixel replace2d

  if( dattest1[i][j]==dattest2[i][j] )
    datout[i][j]=dattrue[i][j];
  else
    datout[i][j]=*vfalse;
Parameters:
datout : image output
dattest1 : image test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
dattest2 : image test operand 2
dattrue : image value if true
vec_false : constant pointer if false
Returns:
FLGR_RET_OK, ...

Definition at line 2989 of file flgrCoreReplace.c.

FLGR_Ret flgr2d_replace_I_with_I_I_I ( FLGR_Data2D datout,
FLGR_Data2D dattest1,
char *  test,
FLGR_Data2D dattest2,
FLGR_Data2D dattrue,
FLGR_Data2D datfalse 
)

compute pixel to pixel replace2d

  if( dattest1[i][j]==dattest2[i][j] )
    datout[i][j]=dattrue[i][j];
  else
    datout[i][j]=datfalse[i][j];
Parameters:
datout : image output
dattest1 : image test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
dattest2 : image test operand 2
dattrue : image value if true
datfalse : image value if false
Returns:
FLGR_RET_OK, ...

Definition at line 2934 of file flgrCoreReplace.c.

FLGR_Ret flgr2d_replace_I_with_I_I_S ( FLGR_Data2D datout,
FLGR_Data2D dattest1,
char *  test,
FLGR_Data2D dattest2,
FLGR_Data2D dattrue,
char *  str_false 
)

compute FLGR_Data2D elements replace

  if( dattest1[i]==dattest2[i] )
    datout[i]=dattrue[i];
  else
    datout[i]=vfalse;
Parameters:
datout 
dattest1 : test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
dattest2 : test operand 2
dattrue 
str_false 
Returns:
FLGR_RET_OK, ...

Definition at line 3336 of file flgrCoreReplace.c.

FLGR_Ret flgr2d_replace_I_with_I_S_I ( FLGR_Data2D datout,
FLGR_Data2D dattest1,
char *  test,
FLGR_Data2D dattest2,
char *  str_true,
FLGR_Data2D datfalse 
)

compute FLGR_Data2D elements replace

  if( dattest1[i]==dattest2[i] )
    datout[i]=dattrue[i];
  else
    datout[i]=datfalse[i];
Parameters:
datout 
dattest1 : test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
dattest2 : test operand 2
str_true 
datfalse 
Returns:
FLGR_RET_OK, ...

Definition at line 3384 of file flgrCoreReplace.c.

FLGR_Ret flgr2d_replace_I_with_I_S_S ( FLGR_Data2D datout,
FLGR_Data2D dattest1,
char *  test,
FLGR_Data2D dattest2,
char *  str_true,
char *  str_false 
)

compute FLGR_Data2D elements replace

  if( dattest1[i]==dattest2[i] )
    datout[i]=dattrue[i];
  else
    datout[i]=datfalse[i];
Parameters:
datout 
dattest1 : test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
dattest2 : test operand 2
str_true 
str_false 
Returns:
FLGR_RET_OK, ...

Definition at line 3432 of file flgrCoreReplace.c.

FLGR_Ret flgr2d_replace_I_with_S_I_I ( FLGR_Data2D datout,
FLGR_Data2D dattest1,
char *  test,
char *  str_test2,
FLGR_Data2D dattrue,
FLGR_Data2D datfalse 
)

compute FLGR_Data2D elements replace

  if( dattest1[i]==dattest2[i] )
    datout[i]=dattrue[i];
  else
    datout[i]=datfalse[i];
Parameters:
datout 
dattest1 : test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
str_test2 : string for vector test operand 2
dattrue 
datfalse 
Returns:
FLGR_RET_OK, ...

Definition at line 3488 of file flgrCoreReplace.c.

FLGR_Ret flgr2d_replace_I_with_S_I_S ( FLGR_Data2D datout,
FLGR_Data2D dattest1,
char *  test,
char *  str_test2,
FLGR_Data2D dattrue,
char *  str_false 
)

compute FLGR_Data2D elements replace

  if( dattest1[i]==dattest2[i] )
    datout[i]=dattrue[i];
  else
    datout[i]=vfalse;
Parameters:
datout 
dattest1 : test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
str_test2 : string for vector test operand 2
dattrue 
str_false 
Returns:
FLGR_RET_OK, ...

Definition at line 3536 of file flgrCoreReplace.c.

FLGR_Ret flgr2d_replace_I_with_S_S_I ( FLGR_Data2D datout,
FLGR_Data2D dattest1,
char *  test,
char *  str_test2,
char *  str_true,
FLGR_Data2D datfalse 
)

compute FLGR_Data2D elements replace

  if( dattest1[i]==dattest2[i] )
    datout[i]=dattrue[i];
  else
    datout[i]=vfalse;
Parameters:
datout 
dattest1 : test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
str_test2 : string for vector test operand 2
str_true 
datfalse 
Returns:
FLGR_RET_OK, ...
Examples:
example4.c, and multithread_watershed.c.

Definition at line 3592 of file flgrCoreReplace.c.

FLGR_Ret flgr2d_replace_I_with_S_S_S ( FLGR_Data2D datout,
FLGR_Data2D dattest1,
char *  test,
char *  str_test2,
char *  str_true,
char *  str_false 
)

compute FLGR_Data2D elements replace

  if( dattest1[i]==dattest2[i] )
    datout[i]=dattrue[i];
  else
    datout[i]=vfalse;
Parameters:
datout 
dattest1 : test operand 1
test : string for test "<", "<=", "==", ">=", ">", "!="
str_test2 : string for vector test operand 2
str_true 
str_false 
Returns:
FLGR_RET_OK, ...
Examples:
example4.c, and multithread_watershed.c.

Definition at line 3651 of file flgrCoreReplace.c.


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