/usr/include/InsightToolkit/Common/itkBloxBoundaryPointItem.h is in libinsighttoolkit3-dev 3.20.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | /*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkBloxBoundaryPointItem.h
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __itkBloxBoundaryPointItem_h
#define __itkBloxBoundaryPointItem_h
#include "itkCovariantVector.h"
#include "itkPoint.h"
#include "itkBloxItem.h"
namespace itk
{
/**
* \class BloxBoundaryPointItem
* \brief A boundary point, stored in a BloxPixel.
* \ingroup ImageObjects
*
* */
template <unsigned int VImageDimension>
class ITK_EXPORT BloxBoundaryPointItem: public BloxItem
{
public:
/** The type of vector used to store the position of the
* BoundaryPointItem */
typedef Point<double, VImageDimension> PositionType;
/** The type of vector used to store the gradient of the
* BoundaryPointItem */
typedef CovariantVector<double, VImageDimension> GradientType;
/** Set the position of the boundary point in physical space */
void SetPhysicalPosition(PositionType physPos)
{
m_PhysicalPosition = physPos;
}
/** Get the position of the boundary point in physical space */
PositionType GetPhysicalPosition()
{
return m_PhysicalPosition;
}
/** Set the gradient of the boundary point */
void SetGradient(GradientType grad)
{
m_Gradient = grad;
}
/** Get the gradient of the boundary point */
GradientType GetGradient()
{
return m_Gradient;
}
BloxBoundaryPointItem();
~BloxBoundaryPointItem();
private:
/** The position of the boundary point in the coordinate system of the
* physical image in which the boundary pixel was located */
PositionType m_PhysicalPosition;
/** The gradient of the boundary point (non-normalized) */
GradientType m_Gradient;
};
} // end namespace itk
// Define instantiation macro for this template.
#define ITK_TEMPLATE_BloxBoundaryPointItem(_, EXPORT, x, y) namespace itk { \
_(1(class EXPORT BloxBoundaryPointItem< ITK_TEMPLATE_1 x >)) \
namespace Templates { typedef BloxBoundaryPointItem< ITK_TEMPLATE_1 x > \
BloxBoundaryPointItem##y; } \
}
#if ITK_TEMPLATE_EXPLICIT
# include "Templates/itkBloxBoundaryPointItem+-.h"
#endif
#if ITK_TEMPLATE_TXX
# include "itkBloxBoundaryPointItem.txx"
#endif
#endif
|