17 #ifndef itkSpeedFunctionToPathFilter_h
18 #define itkSpeedFunctionToPathFilter_h
64 template <
class TInputImage,
65 class TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension> >
85 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
116 itkWarningMacro(
"SetPathEndPoint() is not valid for this filter. Use AddPathInfo() instead.");
125 itkWarningMacro(
"AddPathEndPoint() is not valid for this filter. Use AddPathInfo() instead.");
134 itkWarningMacro(
"ClearPathEndPoints() is not valid for this filter. Use ClearPathInfo() instead.");
141 m_Information.push_back( info );
147 m_Information.clear( );
154 itkGetConstMacro( CurrentArrivalFunction, InputImagePointer );
159 void PrintSelf( std::ostream& os,
Indent indent )
const override;
162 void GenerateData(
void )
override;
165 unsigned int GetNumberOfPathsToExtract( )
const override;
168 InputImageType * ComputeArrivalFunction( )
override;
171 const PointsContainerType & GetNextEndPoint( )
override;
179 #ifndef ITK_MANUAL_INSTANTIATION
180 #include "itkSpeedFunctionToPathFilter.hxx"
This class is a cost function which queries an underlying image for the single value.
TInputImage InputImageType
Light weight base class for most itk classes.
typename OutputPathType::ConstPointer OutputPathConstPointer
Represent a n-dimensional index in a n-dimensional image.
Extracts a path from a Fast Marching arrival function.
typename InputImageType::Pointer InputImagePointer
typename OutputPathType::Pointer OutputPathPointer
This class is a base for the Optimization methods that optimize a single valued function.
void AddPathEndPoint(const PointType &) override
std::vector< typename PathInformationType::Pointer > m_Information
std::vector< PointType > PointsContainerType
void AddPathInformation(PathInformationType *info)
TOutputPath OutputPathType
void SetPathEndPoint(const PointType &) override
ImageBaseType::IndexType IndexType
typename InputImageType::PixelType InputImagePixelType
Extracts a path from a speed function between a start point and end point, which also passes near the...
int Execute(int argc, char *argv[])
typename InputImageType::RegionType InputImageRegionType
Abstraction of the Events used to communicating among filters and with GUIs.
InputImagePointer m_CurrentArrivalFunction
void ClearPathInformation()
A templated class holding a point in n-Dimensional image space.
typename InputImageType::ConstPointer InputImageConstPointer
void ClearPathEndPoints() override
Control indentation during Print() invocation.
ImageBaseType::PointType PointType
Base class for most ITK classes.
ImageBaseType::RegionType RegionType
A templated class holding a geometric point in n-Dimensional space.