Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CorrespondenceMap.hh
1 /*
2 This file is part of the BIAS library (Basic ImageAlgorithmS).
3 
4 Copyright (C) 2007 (see file CONTACT for details)
5  Multimediale Systeme der Informationsverarbeitung
6  Institut fuer Informatik
7  Christian-Albrechts-Universitaet Kiel
8 
9 
10 BIAS is free software; you can redistribute it and/or modify
11 it under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation; either version 2.1 of the License, or
13 (at your option) any later version.
14 
15 BIAS is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU Lesser General Public License for more details.
19 
20 You should have received a copy of the GNU Lesser General Public License
21 along with BIAS; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 */
24 
25 
26 #ifndef __BIASCorrespondenceMap_HH__
27 #define __BIASCorrespondenceMap_HH__
28 #include "bias_config.h"
29 
30 #include <Base/Image/Image.hh>
31 
32 namespace BIAS {
33  /** @class CorrespondenceMap
34  @ingroup g_image
35  @brief holds dense 2d correspondences (flow field) for an image
36  @author koeser 11/2007
37  */
38  template <class StorageType>
39  class BIASImage_EXPORT CorrespondenceMap : public Image<StorageType>
40  {
41  public:
43 
45  : BIAS::Image<StorageType>(src) {}
46 
47  virtual ~CorrespondenceMap() {}
48 
49  /** @brief read from ascii file vector as two doubles each line, starting
50  with first image column, then second */
51  int Read(const std::string filename,
52  unsigned int width=720, unsigned int height=576);
53 
54  /** virtual covariant copy constructor which produces the same type of
55  object as the template object (Image, CorrespondenceMap, ...).
56  Must be implemented in all derived classes and since some people do
57  work with ImageBase objects, it is also implemented there.
58  The caller is responsible to delete the clone.
59  @author koeser 11/2007 */
61  { return new CorrespondenceMap<StorageType>(*this); }
62 
63  };
64 }
65 #endif
66 
virtual CorrespondenceMap< StorageType > * Clone() const
virtual covariant copy constructor which produces the same type of object as the template object (Ima...
The image template class for specific storage types.
Definition: Image.hh:78
holds dense 2d correspondences (flow field) for an image
CorrespondenceMap(const CorrespondenceMap< StorageType > &src)