3rdparty/OpenCV-2.3.0/modules/features2d/src/sift.cpp
static struct feature* new_feature( void )
{
  struct feature* feat;
  struct detection_data* ddata;

  feat = (feature*) malloc( sizeof( struct feature ) );
  memset( feat, 0, sizeof( struct feature ) );
  ddata = (detection_data*) malloc( sizeof( struct detection_data ) );
  memset( ddata, 0, sizeof( struct detection_data ) );
  feat->feature_data = ddata;

  return feat;
}
/*
  Allocates and initializes a new feature

  @return Returns a pointer to the new feature
*/
Allocates and initializes a new feature
Allocates and initializes a new feature
static struct feature* new_feature( void )
{
  struct feature* feat;
  struct detection_data* ddata;
  feat = (feature*) malloc( sizeof( struct feature ) );
  memset( feat, 0, sizeof( struct feature ) );
  ddata = (detection_data*) malloc( sizeof( struct detection_data ) );
  memset( ddata, 0, sizeof( struct detection_data ) );
  feat->feature_data = ddata;
  return feat;
}
static struct feature * new_feature ( void ) { struct feature * feat ; struct detection_data * ddata ; feat = ( feature * ) malloc ( sizeof ( struct feature ) ) ; memset ( feat , 0 , sizeof ( struct feature ) ) ; ddata = ( detection_data * ) malloc ( sizeof ( struct detection_data ) ) ; memset ( ddata , 0 , sizeof ( struct detection_data ) ) ; feat -> feature_data = ddata ; return feat ; }
Allocates and initializes a new feature
Allocates and initializes a new feature