18 #ifndef itkTriangleMeshToBinaryImageFilter_h
19 #define itkTriangleMeshToBinaryImageFilter_h
70 template<
typename TInputMesh,
typename TOutputImage >
84 typedef typename OutputImageType::ValueType
ValueType;
134 virtual void SetSpacing(
const double spacing[3]);
137 virtual void SetSpacing(
const float spacing[3]);
154 itkGetConstMacro(InsideValue,
ValueType);
163 itkGetConstMacro(OutsideValue,
ValueType);
171 virtual void SetOrigin(
const double origin[3]);
174 virtual void SetOrigin(
const float origin[3]);
176 itkGetConstReferenceMacro(Origin,
PointType);
189 using Superclass::SetInput;
194 if ( InfoImage != m_InfoImage )
197 m_InfoImage = InfoImage;
202 InputMeshType * GetInput();
204 InputMeshType * GetInput(
unsigned int idx);
207 itkSetMacro(Tolerance,
double);
208 itkGetConstMacro(Tolerance,
double);
214 virtual
void GenerateOutputInformation() ITK_OVERRIDE {}
215 virtual void GenerateData() ITK_OVERRIDE;
217 virtual
void RasterizeTriangles();
219 static
int PolygonToImageRaster(PointVector coords, Point1DArray & zymatrix,
int extent[6]);
240 virtual
void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
251 #ifndef ITK_MANUAL_INSTANTIATION
252 #include "itkTriangleMeshToBinaryImageFilter.hxx"
Point1D(const Point1D &point)
InputMeshType::CellsContainerIterator CellsContainerIterator
std::vector< Point2DType > Point2DVector
SmartPointer< const Self > ConstPointer
3D Rasterization algorithm Courtesy of Dr David Gobbi of Atamai Inc.
Represent the size (bounds) of a n-dimensional image.
Superclass::OutputImageRegionType OutputImageRegionType
std::vector< Point1D > Point1DVector
InputPointsContainer::Iterator InputPointsContainerIterator
itk::Point< double, 2 > Point2DType
itk::Array< double > DoubleArrayType
TriangleMeshToBinaryImageFilter Self
TOutputImage::SizeType SizeType
InputMeshType::CellsContainerPointer CellsContainerPointer
Base class for all process objects that output image data.
Point1D(const double p, const int s)
InputMeshType::CellType CellType
InputMeshType::PointsContainer InputPointsContainer
OutputImageType::DirectionType DirectionType
PointSetType::PointsContainer PointsContainer
ImageBaseType::DirectionType DirectionType
InputMeshType::Pointer InputMeshPointer
ImageSource< TOutputImage > Superclass
ImageBaseType::PointType PointType
InputMeshType::MeshTraits::CellTraits InputCellTraitsType
std::vector< std::vector< Point1D > > Point1DArray
A superclass of the N-dimensional mesh structure; supports point (geometric coordinate and attribute)...
MeshTraits::PointsContainer PointsContainer
SmartPointer< Self > Pointer
void SetInfoImage(OutputImageType *InfoImage)
InputMeshType::PointType InputPointType
TOutputImage OutputImageType
InputMeshType::PixelType InputPixelType
std::vector< std::vector< PointType > > PointArray
Control indentation during Print() invocation.
itk::PointSet< double, 3 > PointSetType
ImageBaseType::SizeType SizeType
OutputImageType::SpacingType SpacingType
std::vector< PointType > PointVector
std::vector< std::vector< Point2DType > > Point2DArray
OutputImageType::Pointer OutputImagePointer
Represent a n-dimensional index in a n-dimensional image.
InputPointsContainer::Pointer InputPointsContainerPointer
OutputImageType::ValueType ValueType
itk::Point< double, 3 > PointType
std::vector< int > StencilIndexVector
TOutputImage::IndexType IndexType
ImageBaseType::IndexType IndexType