RealFileFeatures.h

Go to the documentation of this file.
00001 /*
00002  * This program is free software; you can redistribute it and/or modify
00003  * it under the terms of the GNU General Public License as published by
00004  * the Free Software Foundation; either version 3 of the License, or
00005  * (at your option) any later version.
00006  *
00007  * Written (W) 1999-2008 Soeren Sonnenburg
00008  * Copyright (C) 1999-2008 Fraunhofer Institute FIRST and Max-Planck-Society
00009  */
00010 
00011 #ifndef _DREALFILEFEATURES__H__
00012 #define _DREALFILEFEATURES__H__
00013 
00014 #include "lib/common.h"
00015 #include "features/RealFeatures.h"
00016 
00018 class CRealFileFeatures: public CRealFeatures
00019 {
00020     public:
00026         CRealFileFeatures(INT size, FILE* file);
00027 
00033         CRealFileFeatures(INT size, CHAR* filename);
00034 
00036         CRealFileFeatures(const CRealFileFeatures& orig);
00037 
00038         virtual ~CRealFileFeatures();
00039 
00044         virtual DREAL* load_feature_matrix();
00045 
00051         INT get_label(INT idx);
00052 
00053     protected:
00061         virtual DREAL* compute_feature_vector(INT num, INT& len, DREAL* target=NULL);
00062 
00067         bool load_base_data();
00068 
00070         FILE* working_file;
00072         CHAR* working_filename;
00074         bool status;
00076         INT* labels;
00077 
00079         BYTE intlen;
00081         BYTE doublelen;
00083         UINT endian;
00085         UINT fourcc;
00087         UINT preprocd;
00089         LONG filepos;
00090 };
00091 #endif

SHOGUN Machine Learning Toolbox - Documentation