System documentation of the GNU Image-Finding Tool

Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

CComparisonResults.h

00001 /* -*- mode: c++ -*- 
00002 */
00003 /* 
00004 
00005     GIFT, a flexible content based image retrieval system.
00006     Copyright (C) 1998, 1999, 2000, 2001, 2002, CUI University of Geneva
00007 
00008     This program is free software; you can redistribute it and/or modify
00009     it under the terms of the GNU General Public License as published by
00010     the Free Software Foundation; either version 2 of the License, or
00011     (at your option) any later version.
00012 
00013     This program is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016     GNU General Public License for more details.
00017 
00018     You should have received a copy of the GNU General Public License
00019     along with this program; if not, write to the Free Software
00020     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021 
00022 */
00023 /***************************************
00024 *
00025 * CCOMPARISONRESULTS
00026 *
00027 ****************************************
00028 *
00029 * modification history:
00030 *
00031 * HM 090399 created the documentation
00032 *
00033 ****************************************
00034 *
00035 * compiler defines used:
00036 *
00037 *
00038 ****************************************/
00039 #ifndef _CCOMPARISONRESULTS
00040 #define _CCOMPARISONRESULTS
00041 #include "libGIFTAcInvertedFile/include/uses-declarations.h"
00042 #include <list>
00043 #include <set>
00044 #include "libMRML/include/CRelevanceLevel.h"
00045 #include "libGIFTQuInvertedFile/include/CWeightingFunctionPointerHash.h"
00046 #include "libGIFTAcInvertedFile/include/CDocumentFrequencyElement.h"
00047 //#include "CBitVector.h"
00048 
00049 class CIFQPicHunter;
00050 class CRelevanceLevel;
00051 class CDocumentFrequencyList;
00068 class CComparisonResults{
00070   typedef CIFQPicHunter lCContainerType;
00072   CWeightingFunctionPointerHash mWeighters;
00074   lCContainerType& mContainer;
00076   typedef set<CDocumentFrequencyElement,CSortByID_DFE> lCScoreSet;
00078   mutable lCScoreSet mScores;
00080   CRelevanceLevel mQueryImage;
00082   TID mID;
00085   mutable CBitVector mReturnSet;
00086 public:
00087 /***************************************
00088 *
00089 * 
00090 *
00091 ***************************************/
00093   CComparisonResults(lCContainerType& inContainer,
00094                      const CWeightingFunction& inPrototype,
00095                      TID inID,
00096                      const CRelevanceLevel& inQuery);
00097 
00098 /***************************************
00099 *
00100 * 
00101 *
00102 ***************************************/
00104   double calculateImageScore(TID inDID,
00105                               const CDocumentFrequencyList& inList)const;
00106 
00107 /***************************************
00108 *
00109 * 
00110 *
00111 ***************************************/
00113   double addImageScore(TID inDID,
00114                        const CDocumentFrequencyList& inList)const;
00115 
00116 /***************************************
00117 *
00118 * 
00119 *
00120 ***************************************/
00122   CBitVector compare(const CComparisonResults& inResults)const;
00123 
00125   double getAsymmetry(const CComparisonResults& inResults)const;
00127   CWeightingFunctionPointerHash& getWeighters();
00129   void setRelevanceLevel(double);
00131   TID getID()const;
00133   CRelevanceLevel const& getQuery()const;
00134 };
00135 
00136 #endif
00137 
00138 

Need for discussion? Want to contribute? Contact
help-gift@gnu.org Generated using Doxygen