3d/distance.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_distance_hh
#define mia_3d_distance_hh
#include <mia/core/iodata.hh>
#include <mia/3d/image.hh>
NS_MIA_BEGIN
C3DFImage EXPORT_3D distance_transform(const C3DImage& f);
class EXPORT_3D C3DDistance : public CIOData
{
public:
C3DDistance();
~C3DDistance();
C3DDistance(const C3DDistance& other) = delete;
C3DDistance& operator =(const C3DDistance& other) = delete;
void push_slice(int z, const C2DImage& slice);
float get_distance_at(const C3DFVector& p) const;
C2DFImage get_distance_slice(int z) const;
private:
struct C3DDistanceImpl *impl;
};
NS_MIA_END
#endif
C2DFImage
T2DImage< float > C2DFImage
2D image with single precsion floating point values
Definition 2d/image.hh:469
distance_transform
C3DFImage EXPORT_3D distance_transform(const C3DImage &f)
image.hh
C3DFImage
T3DImage< float > C3DFImage
3D image with signed 32 bit floating point values
Definition 3d/image.hh:521
C3DFVector
T3DVector< float > C3DFVector
A float 3D Vector.
Definition 3d/vector.hh:409
C2DImage
This is the base class for 2D images that can hold generic pixel data.
Definition 2d/image.hh:48
C3DDistance::C3DDistance
C3DDistance()
C3DDistance::push_slice
void push_slice(int z, const C2DImage &slice)
C3DDistance::get_distance_at
float get_distance_at(const C3DFVector &p) const
C3DDistance::C3DDistance
C3DDistance(const C3DDistance &other)=delete
C3DDistance::~C3DDistance
~C3DDistance()
C3DDistance::get_distance_slice
C2DFImage get_distance_slice(int z) const
C3DImage
The generic base type of a 3D image.
Definition 3d/image.hh:47
CIOData
helper class to derive from for data that can be loaded and stored to a disk.
Definition iodata.hh:37
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
iodata.hh