3d/ppmatrix.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_3d_ppmatrix_hh
#define mia_3d_ppmatrix_hh
#include <mia/3d/interpolator.hh>
#include <mia/3d/datafield.hh>
#include <mia/core/vector.hh>
NS_MIA_BEGIN
class EXPORT_3D C3DPPDivcurlMatrix
{
public:
C3DPPDivcurlMatrix(const C3DBounds& size, const C3DFVector& range, const CSplineKernel& kernel,
double wd, double wr);
~C3DPPDivcurlMatrix();
double operator * (const T3DDatafield<C3DFVector>& coefficients) const;
double operator * (const T3DDatafield<C3DDVector>& coefficients) const;
double evaluate(const T3DDatafield<C3DFVector>& coefficients, CDoubleVector& gradient) const;
double evaluate(const T3DDatafield<C3DDVector>& coefficients, CDoubleVector& gradient) const;
const C3DBounds& get_size() const;
void reset(const C3DBounds& size, const C3DFVector& range, const CSplineKernel& kernel,
double wd, double wr);
private:
class C3DPPDivcurlMatrixImpl *impl;
};
NS_MIA_END
#endif
datafield.hh
interpolator.hh
C3DBounds
T3DVector< unsigned int > C3DBounds
A unsinged int 3D Vector (used for 3D field sizes).
Definition 3d/vector.hh:415
C3DFVector
T3DVector< float > C3DFVector
A float 3D Vector.
Definition 3d/vector.hh:409
C3DPPDivcurlMatrix::get_size
const C3DBounds & get_size() const
C3DPPDivcurlMatrix::evaluate
double evaluate(const T3DDatafield< C3DFVector > &coefficients, CDoubleVector &gradient) const
C3DPPDivcurlMatrix::evaluate
double evaluate(const T3DDatafield< C3DDVector > &coefficients, CDoubleVector &gradient) const
C3DPPDivcurlMatrix::reset
void reset(const C3DBounds &size, const C3DFVector &range, const CSplineKernel &kernel, double wd, double wr)
C3DPPDivcurlMatrix::~C3DPPDivcurlMatrix
~C3DPPDivcurlMatrix()
C3DPPDivcurlMatrix::C3DPPDivcurlMatrix
C3DPPDivcurlMatrix(const C3DBounds &size, const C3DFVector &range, const CSplineKernel &kernel, double wd, double wr)
CSplineKernel
Base class for all spline based interpolation kernels.
Definition splinekernel.hh:46
T3DDatafield
A templated class of a 3D data field.
Definition 3d/datafield.hh:83
vector.hh
EXPORT_3D
#define EXPORT_3D
Definition defines3d.hh:45
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
CDoubleVector
TCArrayWrapper< double > CDoubleVector
Definition core/vector.hh:266
operator*
F operator*(const typename TSparseSolver< F >::A_mult_x &A, const F &x)
Definition sparse_solver.hh:182