18 #ifndef itkTriangleMeshToBinaryImageFilter_h
19 #define itkTriangleMeshToBinaryImageFilter_h
70 template<
typename TInputMesh,
typename TOutputImage >
86 using ValueType =
typename OutputImageType::ValueType;
136 virtual void SetSpacing(
const double spacing[3]);
139 virtual void SetSpacing(
const float spacing[3]);
156 itkGetConstMacro(InsideValue,
ValueType);
165 itkGetConstMacro(OutsideValue,
ValueType);
173 virtual void SetOrigin(
const double origin[3]);
176 virtual void SetOrigin(
const float origin[3]);
178 itkGetConstReferenceMacro(Origin,
PointType);
191 using Superclass::SetInput;
196 if ( InfoImage != m_InfoImage )
199 m_InfoImage = InfoImage;
204 InputMeshType * GetInput();
206 InputMeshType * GetInput(
unsigned int idx);
209 itkSetMacro(Tolerance,
double);
210 itkGetConstMacro(Tolerance,
double);
217 void GenerateData()
override;
219 virtual void RasterizeTriangles();
221 static int PolygonToImageRaster(PointVector coords, Point1DArray & zymatrix,
int extent[6]);
242 void PrintSelf(std::ostream & os,
Indent indent)
const override;
251 #ifndef ITK_MANUAL_INSTANTIATION
252 #include "itkTriangleMeshToBinaryImageFilter.hxx"
Point1D(const Point1D &point)
typename InputMeshType::PointsContainer InputPointsContainer
std::vector< std::vector< Point1D > > Point1DArray
typename InputPointsContainer::Iterator InputPointsContainerIterator
typename OutputImageType::Pointer OutputImagePointer
typename TOutputImage::IndexType IndexType
3D Rasterization algorithm Courtesy of Dr David Gobbi of Atamai Inc.
void GenerateOutputInformation() override
Represent a n-dimensional index in a n-dimensional image.
OutputImageType * m_InfoImage
typename InputMeshType::PixelType InputPixelType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
Point1D(const double p, const int s)
typename InputMeshType::Pointer InputMeshPointer
std::vector< std::vector< PointType > > PointArray
std::vector< int > StencilIndexVector
typename OutputImageType::ValueType ValueType
std::vector< std::vector< Point2DType > > Point2DArray
StencilIndexVector m_StencilIndex
TOutputImage OutputImageType
typename InputPointsContainer::Pointer InputPointsContainerPointer
typename InputMeshType::CellsContainerIterator CellsContainerIterator
std::vector< Point2DType > Point2DVector
ImageBaseType::SizeType SizeType
typename MeshTraits::PointsContainer PointsContainer
ImageBaseType::DirectionType DirectionType
typename OutputImageType::RegionType OutputImageRegionType
ImageBaseType::IndexType IndexType
Represent a n-dimensional size (bounds) of a n-dimensional image.
A superclass of the N-dimensional mesh structure; supports point (geometric coordinate and attribute)...
typename OutputImageType::DirectionType DirectionType
DirectionType m_Direction
void SetInfoImage(OutputImageType *InfoImage)
typename InputMeshType::PointType InputPointType
typename PointSetType::PointsContainer PointsContainer
typename TOutputImage::SizeType SizeType
Control indentation during Print() invocation.
ImageBaseType::PointType PointType
std::vector< Point1D > Point1DVector
typename InputMeshType::MeshTraits::CellTraits InputCellTraitsType
typename OutputImageType::SpacingType SpacingType
typename InputMeshType::CellsContainerPointer CellsContainerPointer
std::vector< PointType > PointVector
typename InputMeshType::CellType CellType