18#ifndef itkTriangleMeshToBinaryImageFilter_h
19#define itkTriangleMeshToBinaryImageFilter_h
72template <
typename TInputMesh,
typename TOutputImage>
85 using SizeType =
typename TOutputImage::SizeType;
88 using ValueType =
typename OutputImageType::ValueType;
218 itkSetMacro(Tolerance,
double);
219 itkGetConstMacro(Tolerance,
double);
267#ifndef ITK_MANUAL_INSTANTIATION
268# include "itkTriangleMeshToBinaryImageFilter.hxx"
Array class with size defined at construction time.
typename OutputImageType::RegionType OutputImageRegionType
Control indentation during Print() invocation.
virtual void Modified() const
Point1D(const double p, const int s)
Point1D(const Point1D &point)
TPointsContainer PointsContainer
A superclass of the N-dimensional mesh structure; supports point (geometric coordinate and attribute)...
A templated class holding a geometric point in n-Dimensional space.
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
Implements transparent reference counting.
std::vector< Point1D > Point1DVector
typename InputPointsContainer::Iterator InputPointsContainerIterator
typename TOutputImage::IndexType IndexType
virtual void RasterizeTriangles()
std::vector< std::vector< Point2DType > > Point2DArray
itk::Array< double > DoubleArrayType
typename InputMeshType::PointsContainer InputPointsContainer
void GenerateData() override
typename OutputImageType::DirectionType DirectionType
typename OutputImageType::SpacingType SpacingType
virtual void SetOrigin(const double origin[3])
InputMeshType * GetInput(unsigned int idx)
virtual void SetSpacing(const float spacing[3])
void PrintSelf(std::ostream &os, Indent indent) const override
typename InputMeshType::CellsContainerPointer CellsContainerPointer
typename InputPointsContainer::Pointer InputPointsContainerPointer
TOutputImage OutputImageType
void GenerateOutputInformation() override
void SetInfoImage(OutputImageType *InfoImage)
SmartPointer< const Self > ConstPointer
itk::Point< double, 2 > Point2DType
typename InputMeshType::PixelType InputPixelType
static bool ComparePoints2D(Point2DType a, Point2DType b)
typename InputMeshType::PointType InputPointType
virtual void SetOrigin(const float origin[3])
~TriangleMeshToBinaryImageFilter() override=default
typename InputMeshType::MeshTraits::CellTraits InputCellTraitsType
std::vector< PointType > PointVector
SmartPointer< Self > Pointer
typename PointSetType::PointsContainer PointsContainer
typename InputMeshType::CellType CellType
static int PolygonToImageRaster(PointVector coords, Point1DArray &zymatrix, int extent[6])
TriangleMeshToBinaryImageFilter Self
typename OutputImageType::ValueType ValueType
typename InputMeshType::CellsContainerIterator CellsContainerIterator
ImageSource< TOutputImage > Superclass
InputMeshType * GetInput()
itk::Point< double, 3 > PointType
virtual void SetSpacing(const double spacing[3])
static bool ComparePoints1D(Point1D a, Point1D b)
std::vector< std::vector< Point1D > > Point1DArray
std::vector< std::vector< PointType > > PointArray
OutputImageType * m_InfoImage
typename InputMeshType::Pointer InputMeshPointer
typename TOutputImage::SizeType SizeType
DirectionType m_Direction
TriangleMeshToBinaryImageFilter()
void SetInput(InputMeshType *input)
itk::PointSet< double, 3 > PointSetType
std::vector< Point2DType > Point2DVector
typename OutputImageType::Pointer OutputImagePointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
*par Constraints *The filter image with at least two dimensions and a vector *length of at least The theory supports extension to scalar but *the implementation of the itk vector classes do not **The template parameter TRealType must be floating point(float or double) or *a user-defined "real" numerical type with arithmetic operations defined *sufficient to compute derivatives. **\par Performance *This filter will automatically multithread if run with *SetUsePrincipleComponents
Represent a n-dimensional index in a n-dimensional image.
Represent a n-dimensional size (bounds) of a n-dimensional image.