correlation_weight.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_correlation_weight_hh
#define mia_correlation_weight_hh
#include <vector>
#include <mia/2d/image.hh>
NS_MIA_BEGIN
class EXPORT_2D CCorrelationEvaluator
{
public:
typedef struct {
C2DFImage horizontal;
C2DFImage vertical;
} result_type;
CCorrelationEvaluator(double thresh);
~CCorrelationEvaluator();
result_type operator() (const std::vector<P2DImage>& images, size_t skip = 0) const;
private:
struct CCorrelationEvaluatorImpl *impl;
};
NS_MIA_END
#endif
image.hh
C2DFImage
T2DImage< float > C2DFImage
2D image with single precsion floating point values
Definition 2d/image.hh:469
CCorrelationEvaluator::~CCorrelationEvaluator
~CCorrelationEvaluator()
CCorrelationEvaluator::CCorrelationEvaluator
CCorrelationEvaluator(double thresh)
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
CCorrelationEvaluator::result_type
Definition correlation_weight.hh:45
CCorrelationEvaluator::result_type::vertical
C2DFImage vertical
data field to hold the correlation in vertical direction
Definition correlation_weight.hh:49
CCorrelationEvaluator::result_type::horizontal
C2DFImage horizontal
data field to hold the correlation in horizontal direction
Definition correlation_weight.hh:47