filterchain.hh
Go to the documentation of this file.
/* -*- mia-c++ -*-
*
* This file is part of MIA - a toolbox for medical image analysis
* Copyright (c) Leipzig, Madrid 1999-2017 Gert Wollny
*
* MIA is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MIA; if not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef mia_2d_filterchain_hh
#define mia_2d_filterchain_hh
#include <mia/2d/filter.hh>
#include <list>
NS_MIA_BEGIN
typedef TFilterChain <
class EXPORT_2D C2DFilterChain
{
public:
C2DFilterChain();
C2DFilterChain(const std::vector<const char *>& descr) __attribute__((deprecated));
void push_front(P2DFilter filter);
void push_back(P2DFilter filter);
P2DImage filter(const C2DImage& image) const;
bool empty() const;
private:
std::list<P2DFilter> m_chain;
};
NS_MIA_END
#endif
filter.hh
P2DImage
C2DImage::Pointer P2DImage
Shared pointer representation of the 2D Image.
Definition 2d/image.hh:120
TFilterChain
create and use a chain of filters
Definition filter_chain.hh:41
EXPORT_2D
#define EXPORT_2D
Definition defines2d.hh:37
NS_MIA_BEGIN
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
Definition defines.hh:33
NS_MIA_END
#define NS_MIA_END
conveniance define to end the mia namespace
Definition defines.hh:36
P2DFilter
std::shared_ptr< C2DFilter > P2DFilter
Definition 2d/filter.hh:48
filter
static F::result_type filter(const F &f, const B &b)
Definition core/filter.hh:258