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

  new_feat = new_feature();
  ddata = new_feat->feature_data;
  memcpy( new_feat, feat, sizeof( struct feature ) );
  memcpy( ddata, feat->feature_data, sizeof( struct detection_data ) );
  new_feat->feature_data = ddata;

  return new_feat;
}
/*
  Makes a deep copy of a feature

  @param feat feature to be cloned

  @return Returns a deep copy of feat
*/
Makes a deep copy of a feature
Makes a deep copy of a feature
static struct feature* clone_feature( struct feature* feat )
{
  struct feature* new_feat;
  struct detection_data* ddata;
  new_feat = new_feature();
  ddata = new_feat->feature_data;
  memcpy( new_feat, feat, sizeof( struct feature ) );
  memcpy( ddata, feat->feature_data, sizeof( struct detection_data ) );
  new_feat->feature_data = ddata;
  return new_feat;
}
static struct feature * clone_feature ( struct feature * feat ) { struct feature * new_feat ; struct detection_data * ddata ; new_feat = new_feature ( ) ; ddata = new_feat -> feature_data ; memcpy ( new_feat , feat , sizeof ( struct feature ) ) ; memcpy ( ddata , feat -> feature_data , sizeof ( struct detection_data ) ) ; new_feat -> feature_data = ddata ; return new_feat ; }
Makes a deep copy of a feature
Makes a deep copy of a feature