11 #ifndef __itkMeshFromPeaksImageFilter_h 12 #define __itkMeshFromPeaksImageFilter_h 16 #include "itkPointSet.h" 18 #include "vtkPoints.h" 19 #include "vtkPolyData.h" 20 #include "vtkCellArray.h" 21 #include "vtkPolyDataWriter.h" 22 #include "vtkDoubleArray.h" 23 #include "vtkUnsignedCharArray.h" 24 #include "vtkPointData.h" 25 #include "vtkCellData.h" 26 #include "vtkTypeTraits.h" 44 template <
class TInputImage,
class TOutputMesh=vtkPolyData >
95 m_ColorPeak[0]=r, m_ColorPeak[1]=g, m_ColorPeak[2]=b;
106 utlSAException(this->m_ColorScheme!=Superclass::FIXED && this->m_ColorScheme!=Superclass::DIRECTION)
107 (this->m_ColorScheme).msg(
"wrong m_ColorScheme");
110 typename LightObject::Pointer InternalClone()
const ITK_OVERRIDE;
112 void PrintSelf(std::ostream& os, Indent indent)
const ITK_OVERRIDE
115 PrintVar(
true, os<<indent, peaktypeStr, m_TubeRadius, m_MaxNumberOfPeaks);
116 PrintVar(
true, os<<indent, m_ColorPeak[0], m_ColorPeak[1], m_ColorPeak[2]);
126 double m_ColorPeak[3];
133 void operator=(
const Self&);
140 #define ITK_TEMPLATE_MeshFromPeaksImageFilter(_, EXPORT, x, y) namespace itk { \ 141 _(2(class EXPORT MeshFromPeaksImageFilter< ITK_TEMPLATE_2 x >)) \ 142 namespace Templates { typedef MeshFromPeaksImageFilter< ITK_TEMPLATE_2 x > MeshFromPeaksImageFilter##y; } \ 145 #if ITK_TEMPLATE_EXPLICIT 146 # include "Templates/itkMeshFromPeaksImageFilter+-.h" 149 #if !defined(ITK_MANUAL_INSTANTIATION) && !defined(__itkMeshFromPeaksImageFilter_hxx) InputImageType::IndexType InputImageIndexType
Superclass::OutputMeshScalarType OutputMeshScalarType
std::vector< double > STDVectorType
InputImageType::SizeType InputImageSizeType
utl_shared_ptr< VectorType > VectorPointer
InputImageType::PointType InputImagePointType
Superclass::OutputMeshPointsType OutputMeshPointsType
utl::NDArray< double, 2 > MatrixType
Superclass::OutputMeshRGBType OutputMeshRGBType
MeshFromImageImageFilter< TInputImage, TOutputMesh > Superclass
Generate a mesh from given peaks.
InputImageType::SpacingType InputImageSpacingType
void SetColorPeak(double r, double g, double b)
InputImageType::Pointer InputImagePointer
TInputImage InputImageType
Superclass::OutputMeshPolyDataPointer OutputMeshPolyDataPointer
Compute mesh from SH coefficients.
Superclass::OutputMeshCellArrayType OutputMeshCellArrayType
InputImageType::ConstPointer InputImageConstPointer
~MeshFromPeaksImageFilter()
static std::string GetString(const PeakType peakType)
InputImageType::SizeValueType InputImageSizeValueType
utl_shared_ptr< STDVectorType > STDVectorPointer
#define PrintVar(cond, os,...)
InputImageType::PixelType InputImagePixelType
#define utlSAException(expr)
void VerifyInputParameters() const ITK_OVERRIDE
#define itkSetGetMacro(name, type)
SmartPointer< const Self > ConstPointer
void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
utl_shared_ptr< MatrixType > MatrixPointer
SmartPointer< Self > Pointer
InputImageType::RegionType InputImageRegionType
MeshFromPeaksImageFilter Self
utl::NDArray< double, 1 > VectorType
TOutputMesh OutputMeshPolyDataType