iRoCS Toolbox  1.1.0
LocalMaximumExtraction.hh
Go to the documentation of this file.
1 /**************************************************************************
2  *
3  * Copyright (C) 2015 Thorsten Falk
4  *
5  * Image Analysis Lab, University of Freiburg, Germany
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software Foundation,
19  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  *
21  **************************************************************************/
22 
23 #ifndef ATBLOCALMAXIMUMEXTRACTION_HH
24 #define ATBLOCALMAXIMUMEXTRACTION_HH
25 
26 #ifdef HAVE_CONFIG_H
27 #include <config.hh>
28 #endif
29 
31 
32 namespace atb
33 {
34 
36 
37 /*======================================================================*/
54 /*======================================================================*/
55  template<typename Type, typename IndexT, int Dim>
56  void
57  extractLocalMaxima(blitz::Array<Type,Dim> const &data,
58  std::list< blitz::TinyVector<IndexT,Dim> > &localMaxima,
59  NHood nh = COMPLEX_NHOOD,
60  iRoCS::ProgressReporter *progress = NULL);
61 
62 /*======================================================================*/
82 /*======================================================================*/
83  template<typename Type, typename IndexT, int Dim>
84  void
85  extractLocalMaxima(blitz::Array<Type,Dim> const &data,
86  std::list< blitz::TinyVector<IndexT,Dim> > &localMaxima,
87  Type const &minValue,
88  NHood nh = COMPLEX_NHOOD,
89  iRoCS::ProgressReporter *progress = NULL);
90 
91 /*======================================================================*/
108 /*======================================================================*/
109  template<typename Type, typename IndexT, int Dim>
110  void
111  extractLocalMaxima(blitz::Array<Type,Dim> const &data,
112  std::vector< blitz::TinyVector<IndexT,Dim> > &localMaxima,
113  NHood nh = COMPLEX_NHOOD,
114  iRoCS::ProgressReporter *progress = NULL);
115 
116 /*======================================================================*/
136 /*======================================================================*/
137  template<typename Type, typename IndexT, int Dim>
138  void
139  extractLocalMaxima(blitz::Array<Type,Dim> const &data,
140  std::vector< blitz::TinyVector<IndexT,Dim> > &localMaxima,
141  Type const &minValue,
142  NHood nh = COMPLEX_NHOOD,
143  iRoCS::ProgressReporter *progress = NULL);
144 
145 }
146 
147 #include "LocalMaximumExtraction.icc"
148 
149 #endif
void extractLocalMaxima(blitz::Array< Type, Dim > const &data, std::list< blitz::TinyVector< IndexT, Dim > > &localMaxima, NHood nh=COMPLEX_NHOOD, iRoCS::ProgressReporter *progress=NULL)
Extraction of local maxima of a blitz::Array.