aimsdata  4.7.0
Neuroimaging data handling
point_set_features.h
Go to the documentation of this file.
1 /* This software and supporting documentation are distributed by
2  * Institut Federatif de Recherche 49
3  * CEA/NeuroSpin, Batiment 145,
4  * 91191 Gif-sur-Yvette cedex
5  * France
6  *
7  * This software is governed by the CeCILL-B license under
8  * French law and abiding by the rules of distribution of free software.
9  * You can use, modify and/or redistribute the software under the
10  * terms of the CeCILL-B license as circulated by CEA, CNRS
11  * and INRIA at the following URL "http://www.cecill.info".
12  *
13  * As a counterpart to the access to the source code and rights to copy,
14  * modify and redistribute granted by the license, users are provided only
15  * with a limited warranty and the software's author, the holder of the
16  * economic rights, and the successive licensors have only limited
17  * liability.
18  *
19  * In this respect, the user's attention is drawn to the risks associated
20  * with loading, using, modifying and/or developing or reproducing the
21  * software by the user in light of its specific status of free software,
22  * that may mean that it is complicated to manipulate, and that also
23  * therefore means that it is reserved for developers and experienced
24  * professionals having in-depth computer knowledge. Users are therefore
25  * encouraged to load and test the software's suitability as regards their
26  * requirements in conditions enabling the security of their systems and/or
27  * data to be ensured and, more generally, to use and operate it in the
28  * same conditions as regards security.
29  *
30  * The fact that you are presently reading this means that you have had
31  * knowledge of the CeCILL-B license and that you accept its terms.
32  */
33 
34 #ifndef AIMS_POINT_SET_FEATURES_H
35 #define AIMS_POINT_SET_FEATURES_H
36 
37 
39 #include <aims/vector/vector.h>
41 
42 
43 namespace aims {
44 
45  //--------------------//
46  // PointSetFeatures //
47 //--------------------//
48 
50 {
51 public:
53 
54  virtual void setPoints( const std::vector< Point_t > & ) = 0;
55 };
56 
57 
58  //-------------------------//
59  // PointsInImageFeatures //
60 //-------------------------//
61 
63 {
64 public:
65  PointsInImageFeatures( const std::string &prefix,
67 
68  inline const std::vector< Point_t > &
69  points() const;
70  inline std::vector< Point_t > &points();
71  void setPoints( const std::vector< Point_t > & );
72 
73  void scalarFeatureValues(
74  std::vector< ScalarFeaturesProvider::Scalar_t > &result ) const;
75 
76 private:
77 
78  carto::rc_ptr< Interpolator > _interpolator;
79  std::vector< Point_t > _points;
80 };
81 
82 
83 
84  //-------------------------//
85  // PointsInImageFeatures //
86 //-------------------------//
87 
88 //-----------------------------------------------------------------------------
89 inline const std::vector< PointsInImageFeatures::Point_t > &
91 {
92  return _points;
93 }
94 
95 
96 //-----------------------------------------------------------------------------
97 inline std::vector< PointsInImageFeatures::Point_t > &
99 {
100  return _points;
101 }
102 
103 
104 
105 
106 } // namesapce aims
107 
108 #endif // ifndef AIMS_POINT_SET_FEATURES_H
Interpolator::Point_t Point_t
This class should be inherited by all subclasses that provides scalar features.
Definition: features.h:52
The class for EcatSino data write operation.
Definition: border.h:42
virtual void scalarFeatureValues(std::vector< Scalar_t > &) const =0
Clear an fill its parameter with the values of the scalar features.
virtual void setPoints(const std::vector< Point_t > &)=0
const std::vector< Point_t > & points() const