highres-cortex
6.0.4
volume_util.hh
Go to the documentation of this file.
1
/*
2
Copyright Télécom ParisTech (2015).
3
4
Contributor: Yann Leprince <yann.leprince@ylep.fr>.
5
6
This file is part of highres-cortex, a collection of software designed
7
to process high-resolution magnetic resonance images of the cerebral
8
cortex.
9
10
This software is governed by the CeCILL licence under French law and
11
abiding by the rules of distribution of free software. You can use,
12
modify and/or redistribute the software under the terms of the CeCILL
13
licence as circulated by CEA, CNRS and INRIA at the following URL:
14
<http://www.cecill.info/>.
15
16
As a counterpart to the access to the source code and rights to copy,
17
modify and redistribute granted by the licence, users are provided only
18
with a limited warranty and the software's author, the holder of the
19
economic rights, and the successive licensors have only limited
20
liability.
21
22
In this respect, the user's attention is drawn to the risks associated
23
with loading, using, modifying and/or developing or reproducing the
24
software by the user in light of its specific status of scientific
25
software, that may mean that it is complicated to manipulate, and that
26
also therefore means that it is reserved for developers and experienced
27
professionals having in-depth computer knowledge. Users are therefore
28
encouraged to load and test the software's suitability as regards their
29
requirements in conditions enabling the security of their systems and/or
30
data to be ensured and, more generally, to use and operate it in the
31
same conditions as regards security.
32
33
The fact that you are presently reading this means that you have had
34
knowledge of the CeCILL licence and that you accept its terms.
35
*/
36
37
#ifndef VOLUME_UTIL_HH_INCLUDED
38
#define VOLUME_UTIL_HH_INCLUDED
39
40
#include <vector>
41
42
#include <cartodata/volume/volume.h>
43
44
namespace
yl
45
{
46
54
int
xyz_min_border
(
const
std::vector<int>& borders);
55
57
template
<
typename
T>
58
int
xyz_min_border
(
const
carto::VolumeRef<T>
& volume);
59
60
template
<
typename
T,
class
Predicate>
61
bool
62
check_border_values
(
const
carto::VolumeRef<T>
& volume,
63
const
Predicate& predicate);
64
65
}
// namespace yl
66
67
#endif
// !defined(VOLUME_UTIL_HH_INCLUDED)
carto::VolumeRef
yl
Definition
cortex.hh:41
yl::check_border_values
bool check_border_values(const carto::VolumeRef< T > &volume, const Predicate &predicate)
yl::xyz_min_border
int xyz_min_border(const std::vector< int > &borders)
Minimum border width along X, Y, and Z dimensions.
highres-cortex
volume_util.hh
Generated by
1.13.2