Ignore:
Timestamp:
Jul 13, 2017, 11:01:58 AM (7 years ago)
Author:
meunier
Message:
  • Mise à jour NR2 et Rosenfeld
File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/applications/rosenfeld/nrc2/include/nrsort1.h

    r772 r826  
    1111#define _NRSORT1_H_
    1212
    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) \
     14void short_name(t,extractnz_boundaries_,vector)(t * v, int32_t nl, int32_t nh, int32_t * nlnz, int32_t * nhnz);
    1915
    20 #ifdef PRAGMA_VERBOSE
    21 //#pragma message("- include nrsort1.h")
    22 #endif
     16extractnz_boundaries_type_vector(int8_t);
     17extractnz_boundaries_type_vector(uint8_t);
     18extractnz_boundaries_type_vector(int16_t);
     19extractnz_boundaries_type_vector(uint16_t);
     20extractnz_boundaries_type_vector(int32_t);
     21extractnz_boundaries_type_vector(uint32_t);
     22extractnz_boundaries_type_vector(int64_t);
     23extractnz_boundaries_type_vector(uint64_t);
     24extractnz_boundaries_type_vector(float);
     25extractnz_boundaries_type_vector(double);
    2326
    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);
    3327
    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);
    3828
    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);
     29void sort_index_f64vector_selection(double * key, int32_t nl, int32_t nh, int32_t * index);
     30void sort_index_ivector_selection_min(int32_t * key, int32_t nl, int32_t nh, int32_t * index);
     31void sort_index_ivector_selection_max(int32_t * key, int32_t nl, int32_t nh, int32_t * index);
     32void sort_index_vector_selection_min(float * key, int32_t nl, int32_t nh, int32_t * index);
     33void sort_index_vector_selection_max(float * key, int32_t nl, int32_t nh, int32_t * index);
     34void sort_index_vector_selection_kmin(float * key, int32_t nl, int32_t nh, int32_t * index, int32_t k);
     35void sort_index_ivector_selection_kmin(int32_t * key, int32_t nl, int32_t nh, int32_t * index, int32_t k);
     36void sort_index_vector_selection_kmax(float * key, int32_t nl, int32_t nh, int32_t * index, int32_t k);
     37void sort_index_ivector_selection_kmax(int32_t * key, int32_t nl, int32_t nh, int32_t * index, int32_t k);
     38void sort_bvector_selection_min(int8_t * v, int32_t nl, int32_t nh);
    4339
    4440/*
     
    4642 */
    4743
    48 IMAGE_EXPORT(void) sort_bvector_selection_min(byte *v, long nl, long nh);
    4944
    5045/* ======================================================================== */
    5146/* == Select = order/rank filter = median ================================= */
    5247/* ======================================================================== */
     48int8_t select_bvector(int8_t * v, int32_t nl, int32_t nh, int32_t k);
     49rgb8 select_rgb8vector(rgb8 * v, int32_t nl, int32_t nh, int32_t k);
    5350
    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);
    5651
    57 #ifdef __cplusplus
    58 }
    59 #endif
    6052
    6153#endif /* _NRSORT1_H_ */
     54
Note: See TracChangeset for help on using the changeset viewer.