|
CR2RE Pipeline Reference Manual 1.6.7
|
Sort functions for differents data types. More...
Functions | |
| cpl_error_code | sort_array_f (void *a, cpl_size nE, cpl_size sE, f_compare f) |
| sort_array_f Core sort algorith that it's called with the other sort function. If you need to changed the the method of sort this is the function that you need modified. | |
| cpl_error_code | sort_array (void *a, cpl_size nE, cpl_size sE, hdrl_sort_type type, cpl_sort_direction dir) |
| sort_array hdrl function for order arrays with know types. Using the type parameter for select the comparation function | |
| cpl_error_code | sort_array_index (double *a, cpl_size nE, void *b, hdrl_sort_type type, cpl_sort_direction dir) |
| sort_array_index hdrl function for sort two arrays The alghorithm sort 'a' and in the same way sort the other generic array by the index of 'a'. | |
| cpl_error_code | sort_arrays_index (double *a, cpl_size nE, void **bs, cpl_size nA, hdrl_sort_type *types, cpl_sort_direction dir) |
| sort_arrays_index hdrl function for sort several arrays The alghorithm sort 'a' and in the same way sort the others generic arrays by the index of 'a'. | |
Sort functions for differents data types.
| cpl_error_code sort_array | ( | void * | a, |
| cpl_size | nE, | ||
| cpl_size | sE, | ||
| hdrl_sort_type | type, | ||
| cpl_sort_direction | dir | ||
| ) |
sort_array hdrl function for order arrays with know types. Using the type parameter for select the comparation function
| a | generic pointer array with one unknown datatype |
| nE | Number of elements in the array |
| sE | Size of element in the array |
| type | Datatype of elements in the 'a' generic array. Standard type in hdrl_sort_type |
| dir | Direction of sort array (Ascending or Descending) |
Definition at line 107 of file hdrl_cat_utils_sort.c.
References sort_array_f().
Referenced by hdrl_background(), and hdrl_seeing().
| cpl_error_code sort_array_f | ( | void * | a, |
| cpl_size | nE, | ||
| cpl_size | sE, | ||
| f_compare | f | ||
| ) |
sort_array_f Core sort algorith that it's called with the other sort function. If you need to changed the the method of sort this is the function that you need modified.
| a | generic pointer array with one unknown datatype |
| nE | Number of elements in the array |
| sE | Size of element in the array |
| f | Function for evaluate the comparison between elements |
Definition at line 82 of file hdrl_cat_utils_sort.c.
Referenced by hdrl_overlp(), and sort_array().
| cpl_error_code sort_array_index | ( | double * | a, |
| cpl_size | nE, | ||
| void * | b, | ||
| hdrl_sort_type | type, | ||
| cpl_sort_direction | dir | ||
| ) |
sort_array_index hdrl function for sort two arrays The alghorithm sort 'a' and in the same way sort the other generic array by the index of 'a'.
| a | generic pointer array with doubles |
| nE | Number of elements in the array of doubles |
| b | generic array that you need to order by index of the first array |
| type | Datatype of elements in the 'b' generic array. Standard type in hdrl_sort_type |
| dir | Direction of sort the array (Ascending or Descending) |
Definition at line 153 of file hdrl_cat_utils_sort.c.
Referenced by hdrl_median().
| cpl_error_code sort_arrays_index | ( | double * | a, |
| cpl_size | nE, | ||
| void ** | bs, | ||
| cpl_size | nA, | ||
| hdrl_sort_type * | types, | ||
| cpl_sort_direction | dir | ||
| ) |
sort_arrays_index hdrl function for sort several arrays The alghorithm sort 'a' and in the same way sort the others generic arrays by the index of 'a'.
| a | generic pointer array with doubles |
| nE | Number of elements in the array of doubles |
| bs | generic arrays that you need to order by index of the first array |
| nA | Number of generic arrays |
| types | Datatypes of elements in the 'bs' generic arrays. Standard type in hdrl_sort_type |
| dir | Direction of sort the arrays (Ascending or Descending) |
Definition at line 188 of file hdrl_cat_utils_sort.c.