00001 /***************************************************************** 00002 * 00003 * This file is part of the FLIRTLib project 00004 * 00005 * FLIRTLib Copyright (c) 2010 Gian Diego Tipaldi and Kai O. Arras 00006 * 00007 * This software is licensed under the "Creative Commons 00008 * License (Attribution-NonCommercial-ShareAlike 3.0)" 00009 * and is copyrighted by Gian Diego Tipaldi and Kai O. Arras 00010 * 00011 * Further information on this license can be found at: 00012 * http://creativecommons.org/licenses/by-nc-sa/3.0/ 00013 * 00014 * FLIRTLib is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied 00016 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00017 * PURPOSE. 00018 * 00019 *****************************************************************/ 00020 00021 00022 00023 #ifndef DESCRIPTOR_H_ 00024 #define DESCRIPTOR_H_ 00025 00026 class InterestPoint; 00027 class LaserReading; 00028 class OrientedPoint2D; 00029 00037 class Descriptor { 00038 public: 00040 virtual Descriptor* clone() const = 0; 00041 00043 virtual double distance(const Descriptor* descriptor) const = 0; 00044 }; 00045 00053 class DescriptorGenerator{ 00054 public: 00056 virtual Descriptor* describe(const InterestPoint& _point, const LaserReading& reading) = 0; 00057 00059 virtual Descriptor* describe(const OrientedPoint2D& _point, const LaserReading& reading) = 0; 00060 }; 00061 00062 #endif