- Timestamp:
- Jul 13, 2017, 11:01:58 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/rosenfeld/nrc2/include/nrsort1.h
r772 r826 11 11 #define _NRSORT1_H_ 12 12 13 #ifdef __cplusplus 14 #ifdef PRAGMA_VERBOSE 15 #pragma message ("C++") 16 #endif 17 extern "C" { 18 #endif 13 #define extractnz_boundaries_type_vector(t) \ 14 void short_name(t,extractnz_boundaries_,vector)(t * v, int32_t nl, int32_t nh, int32_t * nlnz, int32_t * nhnz); 19 15 20 #ifdef PRAGMA_VERBOSE 21 //#pragma message("- include nrsort1.h") 22 #endif 16 extractnz_boundaries_type_vector(int8_t); 17 extractnz_boundaries_type_vector(uint8_t); 18 extractnz_boundaries_type_vector(int16_t); 19 extractnz_boundaries_type_vector(uint16_t); 20 extractnz_boundaries_type_vector(int32_t); 21 extractnz_boundaries_type_vector(uint32_t); 22 extractnz_boundaries_type_vector(int64_t); 23 extractnz_boundaries_type_vector(uint64_t); 24 extractnz_boundaries_type_vector(float); 25 extractnz_boundaries_type_vector(double); 23 26 24 IMAGE_EXPORT(void) extractnz_boundaries_ui8vector (uint8 *v, long nl, long nh, long *nlnz, long *nhnz);25 IMAGE_EXPORT(void) extractnz_boundaries_si16vector(sint16 *v, long nl, long nh, long *nlnz, long *nhnz);26 IMAGE_EXPORT(void) extractnz_boundaries_ui16vector(uint16 *v, long nl, long nh, long *nlnz, long *nhnz);27 IMAGE_EXPORT(void) extractnz_boundaries_si32vector(sint32 *v, long nl, long nh, long *nlnz, long *nhnz);28 IMAGE_EXPORT(void) extractnz_boundaries_ui32vector(uint32 *v, long nl, long nh, long *nlnz, long *nhnz);29 IMAGE_EXPORT(void) extractnz_boundaries_f32vector (float32 *v, long nl, long nh, long *nlnz, long *nhnz, float32 epsillon);30 IMAGE_EXPORT(void) extractnz_boundaries_f64vector (float64 *v, long nl, long nh, long *nlnz, long *nhnz, float64 epsillon);31 32 IMAGE_EXPORT(void) sort_index_dvector_selection (double *key, long nl, long nh, int *index);33 27 34 IMAGE_EXPORT(void) sort_index_ivector_selection_min (int *key, long nl, long nh, int *index);35 IMAGE_EXPORT(void) sort_index_ivector_selection_max (int *key, long nl, long nh, int *index);36 IMAGE_EXPORT(void) sort_index_ivector_selection_kmin(int *key, long nl, long nh, int *index, int k);37 IMAGE_EXPORT(void) sort_index_ivector_selection_kmax(int *key, long nl, long nh, int *index, int k);38 28 39 IMAGE_EXPORT(void) sort_index_vector_selection_min (float *key, long nl, long nh, int *index); 40 IMAGE_EXPORT(void) sort_index_vector_selection_max (float *key, long nl, long nh, int *index); 41 IMAGE_EXPORT(void) sort_index_vector_selection_kmin(float *key, long nl, long nh, int *index, int k); 42 IMAGE_EXPORT(void) sort_index_vector_selection_kmax(float *key, long nl, long nh, int *index, int k); 29 void sort_index_f64vector_selection(double * key, int32_t nl, int32_t nh, int32_t * index); 30 void sort_index_ivector_selection_min(int32_t * key, int32_t nl, int32_t nh, int32_t * index); 31 void sort_index_ivector_selection_max(int32_t * key, int32_t nl, int32_t nh, int32_t * index); 32 void sort_index_vector_selection_min(float * key, int32_t nl, int32_t nh, int32_t * index); 33 void sort_index_vector_selection_max(float * key, int32_t nl, int32_t nh, int32_t * index); 34 void sort_index_vector_selection_kmin(float * key, int32_t nl, int32_t nh, int32_t * index, int32_t k); 35 void sort_index_ivector_selection_kmin(int32_t * key, int32_t nl, int32_t nh, int32_t * index, int32_t k); 36 void sort_index_vector_selection_kmax(float * key, int32_t nl, int32_t nh, int32_t * index, int32_t k); 37 void sort_index_ivector_selection_kmax(int32_t * key, int32_t nl, int32_t nh, int32_t * index, int32_t k); 38 void sort_bvector_selection_min(int8_t * v, int32_t nl, int32_t nh); 43 39 44 40 /* … … 46 42 */ 47 43 48 IMAGE_EXPORT(void) sort_bvector_selection_min(byte *v, long nl, long nh);49 44 50 45 /* ======================================================================== */ 51 46 /* == Select = order/rank filter = median ================================= */ 52 47 /* ======================================================================== */ 48 int8_t select_bvector(int8_t * v, int32_t nl, int32_t nh, int32_t k); 49 rgb8 select_rgb8vector(rgb8 * v, int32_t nl, int32_t nh, int32_t k); 53 50 54 IMAGE_EXPORT(byte) select_bvector (byte *v, long nl, long nh, long k);55 IMAGE_EXPORT(rgb8) select_rgb8vector(rgb8 *v, long nl, long nh, long k);56 51 57 #ifdef __cplusplus58 }59 #endif60 52 61 53 #endif /* _NRSORT1_H_ */ 54
Note: See TracChangeset
for help on using the changeset viewer.