highres-cortex 6.0.4
iterative_region_merger.hh
Go to the documentation of this file.
1/*
2Copyright CEA (2014).
3Copyright Université Paris XI (2014).
4
5Contributor: Yann Leprince <yann.leprince@ylep.fr>.
6
7This file is part of highres-cortex, a collection of software designed
8to process high-resolution magnetic resonance images of the cerebral
9cortex.
10
11This software is governed by the CeCILL licence under French law and
12abiding by the rules of distribution of free software. You can use,
13modify and/or redistribute the software under the terms of the CeCILL
14licence as circulated by CEA, CNRS and INRIA at the following URL:
15<http://www.cecill.info/>.
16
17As a counterpart to the access to the source code and rights to copy,
18modify and redistribute granted by the licence, users are provided only
19with a limited warranty and the software's author, the holder of the
20economic rights, and the successive licensors have only limited
21liability.
22
23In this respect, the user's attention is drawn to the risks associated
24with loading, using, modifying and/or developing or reproducing the
25software by the user in light of its specific status of scientific
26software, that may mean that it is complicated to manipulate, and that
27also therefore means that it is reserved for developers and experienced
28professionals having in-depth computer knowledge. Users are therefore
29encouraged to load and test the software's suitability as regards their
30requirements in conditions enabling the security of their systems and/or
31data to be ensured and, more generally, to use and operate it in the
32same conditions as regards security.
33
34The fact that you are presently reading this means that you have had
35knowledge of the CeCILL licence and that you accept its terms.
36*/
37
38#ifndef ITERATIVE_REGION_MERGER_HH_INCLUDED
39#define ITERATIVE_REGION_MERGER_HH_INCLUDED
40
41#include <cartodata/volume/volume.h>
42
43#include "label_volume.hh"
44
45namespace yl
46{
47
48template <typename Tlabel, class RegionQualityCriterion>
50{
51public:
53 const LabelVolume<Tlabel>& label_vol,
54 const RegionQualityCriterion& criterion=RegionQualityCriterion(),
55 int verbosity=0);
57
58 void setVerbose(int verbosity=1);
59
61
63 {
64 return m_label_volume.volume();
65 }
66
67private:
68 LabelVolume<Tlabel> m_label_volume;
69 RegionQualityCriterion m_criterion;
70 int m_verbosity;
71}; // class IterativeRegionMerger
72
73}; // namespace yl
74
75#endif // !defined(ITERATIVE_REGION_MERGER_HH_INCLUDED)
IterativeRegionMerger(const LabelVolume< Tlabel > &label_vol, const RegionQualityCriterion &criterion=RegionQualityCriterion(), int verbosity=0)
carto::VolumeRef< Tlabel > volume() const
void setVerbose(int verbosity=1)
Definition cortex.hh:41