quick start:g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_algo.a #include <SegmentConcat.h> SegmentConcat(ALGORITHM algorithm = DEF_ALGORITHM, IMPLEMENTATION implementation = DEF_IMPLEMENTATION, float floor); boolean eq(const SegmentConcat& arg); boolean setDimension(long dim);
description:none. this class is not to be used in isaolation. this provides the base functionality for the isip_segment_concat utility.
static const String CLASS_NAME = L"SegmentConcat";
enum ALGORITHM { MIN_MAX = 0, SEG_CONCAT, DEF_ALGORITHM = MIN_MAX };
enum IMPLEMENTATION { NONE = 0, NORMALIZE, DEF_IMPLEMENTATION = NONE };
static const NameMap ALGO_MAP(L"MIN_MAX, SEG_CONCAT");
static const NameMap IMPL_MAP(L"NONE, NORMALIZE");
static const String DEF_PARAM = L"";
static const String PARAM_ALGORITHM = L"algorithm";
static const String PARAM_IMPLEMENTATION = L"implementation";
none
static const long ERR = 70800;
ALGORITHM algorithm_d;
IMPLEMENTATION implementation_d;
Long dim_d;
static MemoryManager mgr_d;
static const String& name();
static boolean diagnose(Integral::DEBUG debug_level);
static boolean setDebug(Integral::DEBUG debug_level);
boolean debug(const unichar* message) const;
~SegmentConcat();
SegmentConcat(ALGORITHM algorithm = DEF_ALGORITHM, IMPLEMENTATION implementation = DEF_IMPLEMENTATION, float floor);
SegmentConcat(const SegmentConcat& arg);
boolean assign(const SegmentConcat& arg);
SegmentConcat& operator= (const SegmentConcat& arg);
long sofSize() const;
boolean read(Sof& sof, long tag, const String& name = CLASS_NAME);
boolean write(Sof& sof, long tag, const String& name = CLASS_NAME) const;
boolean readData(Sof& sof, const String& pname = DEF_PARAM, long size = SofParser::FULL_OBJECT, boolean param = true, boolean nested = false);
boolean writeData(Sof& sof, const String& pname = DEF_PARAM) const;
boolean eq(const SegmentConcat& arg) const;
static void* operator new(size_t size);
static void* operator new[](size_t size);
static void operator delete(void* ptr);
static void operator delete[](void* ptr);
static boolean setGrowSize(long grow_size);
boolean clear(Integral::CMODE ctype = Integral::DEF_CMODE);
boolean setAlgorithm(ALGORITHM algorithm);
boolean setImplementation(IMPLEMENTATION implementation);
boolean setDimension(long dim = DEF_DIMENSION);
ALGORITHM getAlgorithm() const;
IMPLEMENTATION getImplementation() const;
long getDimension() const;
boolean compute(Sdb& sdb, Filename& audiodb_file, FeatureFile::FILE_TYPE f_type, FeatureFile::FILE_FORMAT f_format,Vector& min_max);
boolean compute(Sdb& sdb, Filename& audiodb_file, Filename& transdb_file, FeatureFile::FILE_TYPE in_f_type, FeatureFile::FILE_FORMAT in_f_format, String& level, String& ratio, boolean dur, boolean norm, Filename& min_max_file, FeatureFile::FILE_TYPE o_f_type, FeatureFile::FILE_FORMAT o_f_format, String& suffix);
boolean generateSegFeature(Vector& features, VectorLong& start_frames, VectorLong& end_frames, VectorLong& seg_ratio, boolean duration, Vector & seg_features);
boolean normalizeFeature(Vector& features, Vector & min_max, Vector & norm_features);