3rdparty/OpenCV-2.3.0/modules/features2d/src/sift.cpp
static int feature_cmp( void* feat1, void* feat2, void* /*param*/ )
{
  struct feature* f1 = (struct feature*) feat1;
  struct feature* f2 = (struct feature*) feat2;

  if( f1->scl < f2->scl )
    return 1;
  if( f1->scl > f2->scl )
    return -1;
  return 0;
}
/*
  Compares features for a decreasing-scale ordering.  Intended for use with
  CvSeqSort

  @param feat1 first feature
  @param feat2 second feature
  @param param unused

  @return Returns 1 if feat1's scale is greater than feat2's, -1 if vice versa,
    and 0 if their scales are equal
*/
Compares features for a decreasing-scale ordering.  Intended for use with
CvSeqSort
Compares features for a decreasing - scale ordering . Intended for use with CvSeqSort
static int feature_cmp( void* feat1, void* feat2, void*  )
{
  struct feature* f1 = (struct feature*) feat1;
  struct feature* f2 = (struct feature*) feat2;
  if( f1->scl < f2->scl )
    return 1;
  if( f1->scl > f2->scl )
    return -1;
  return 0;
}
static int feature_cmp ( void * feat1 , void * feat2 , void * ) { struct feature * f1 = ( struct feature * ) feat1 ; struct feature * f2 = ( struct feature * ) feat2 ; if ( f1 -> scl < f2 -> scl ) return 1 ; if ( f1 -> scl > f2 -> scl ) return -1 ; return 0 ; }
Compares features for a decreasing-scale ordering.
Compares features for a decreasing - scale ordering .
/*param*/