www.pudn.com > firev0.01.rar > imagefeature.hpp
/* This file is part of the FIRE -- Flexible Image Retrieval System FIRE is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. FIRE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with FIRE; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /** * @file imagefeature.hpp * @author Thomas Deselaers * @date Tue Jun 24 19:22:28 2003 * * @brief very simple class inherited from basefeature just to contain * some data. * */ #ifndef __imagefeature_hpp #define __imagefeature_hpp #include#include "basefeature.hpp" #include "image.hpp" #include class ImageFeature : public BaseFeature { public: ImageFeature() { } ImageFeature(const ::img::BaseImage & img) { img_=img; } void load(::std::string filename) { DBG(DBG_VERBOSE) << "loading image " << filename << endl; img_=::img::BaseImage (); img_.load(filename); for(unsigned int y=0;y & img() { return img_; } const ::img::BaseImage & img() const { return img_; } private: ::img::BaseImage img_; }; inline ostream& operator<<(ostream& os, const ImageFeature& src) { os << src.img() << endl; return os; } #endif