/usr/include/InsightToolkit/Common/itkBloxBoundaryProfileItem.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 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | /*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkBloxBoundaryProfileItem.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 __itkBloxBoundaryProfileItem_h
#define __itkBloxBoundaryProfileItem_h
#include "itkBloxBoundaryPointItem.h"
#include "itkBloxItem.h"
namespace itk
{
template <unsigned int TImageDimension>
class ITK_EXPORT BloxBoundaryProfileItem : public BloxItem
{
public:
/** Run-time type information (and related methods). */
itkTypeMacro( BloxBoundaryProfileItem, BloxItem );
/** The point type used to store the position of the boundary profile */
typedef Point<double, TImageDimension> PositionType;
/** The type of vector used to store the gradient of the BoundaryPointItem
*/
typedef CovariantVector<double, TImageDimension> GradientType;
/** Vector type */
typedef vnl_vector<double> VectorType;
/** The type of boundary point item we store pointers to */
typedef BloxBoundaryPointItem<TImageDimension> BPItemType;
/** Set the position of the first boundary point in physical space */
void SetBoundaryPoint(BPItemType * point);
/** Set and get lower intensity estimates */
void SetLowerIntensity(double lowerIntensity);
double GetLowerIntensity(void);
/** Set and get upper intensity estimates */
void SetUpperIntensity(double upperIntensity);
double GetUpperIntensity(void);
/** Set and get mean estimates */
void SetMean(double mean);
double GetMean(void);
/** Set and get the length of profile */
void SetProfileLength(unsigned int profileLength);
unsigned int GetProfileLength(void);
/** Set and get mean normalized by profile length */
void SetMeanNormalized(void);
double GetMeanNormalized(void);
/** Set and get standard deviation */
void SetStandardDeviation(double standardDeviation);
double GetStandardDeviation(void);
/** Set and get standard deviation normalized by profile length */
void SetStandardDeviationNormalized(void);
double GetStandardDeviationNormalized(void);
/** Set and get optimal boundary location */
void SetOptimalBoundaryLocation(VectorType spatialFunctionOriginVector,
VectorType orientation);
PositionType GetOptimalBoundaryLocation(void);
/** Set and get the gradient of the boundary profile * */
void SetGradient(GradientType * gradient);
GradientType * GetGradient();
void SetGradient2(GradientType gradient) {m_Gradient2 = gradient;}
GradientType GetGradient2() {return m_Gradient2;}
BloxBoundaryProfileItem();
~BloxBoundaryProfileItem();
private:
/** Lower estimated intensity */
double m_LowerIntensity;
/** Upper estimated intensity */
double m_UpperIntensity;
/** Length of sampling profile */
unsigned int m_ProfileLength;
/** Mean location of the boundary along sampling profile */
double m_Mean;
/** Mean normalized by the profile length */
double m_MeanNormalized;
/** Width of blurred boundary */
double m_StandardDeviation;
/** Width of blurred boundary normalized by sampling profile */
double m_StandardDeviationNormalized;
/** The boundary point to construct a profile from */
BPItemType * m_BoundaryPoint;
/** The position of the estimated boundary location */
PositionType m_OptimalBoundaryLocation;
/** The gradient of the boundary point (non-normalized) */
GradientType * m_Gradient;
GradientType m_Gradient2;
};
} // end namespace itk
// Define instantiation macro for this template.
#define ITK_TEMPLATE_BloxBoundaryProfileItem(_, EXPORT, x, y) namespace itk { \
_(1(class EXPORT BloxBoundaryProfileItem< ITK_TEMPLATE_1 x >)) \
namespace Templates { typedef BloxBoundaryProfileItem< ITK_TEMPLATE_1 x > \
BloxBoundaryProfileItem##y; } \
}
#if ITK_TEMPLATE_EXPLICIT
# include "Templates/itkBloxBoundaryProfileItem+-.h"
#endif
#if ITK_TEMPLATE_TXX
# include "itkBloxBoundaryProfileItem.txx"
#endif
#endif
|