VMTK
Loading...
Searching...
No Matches
itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType > Class Template Reference

Computes the medial curve of a tube-like object. More...

#include <itkMedialCurveImageFilter.h>

Inheritance diagram for itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >:
[legend]
Collaboration diagram for itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >:
[legend]

Classes

struct  Pixel
struct  Greater

Public Types

typedef itk::Image< TAverageOutwardFluxPixelType, TInputImage::ImageDimension > TAverageOutwardFluxFImage
typedef itk::Image< TOutputPixelType, TInputImage::ImageDimension > TOutputImage
typedef MedialCurveImageFilter Self
typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass
typedef SmartPointer< Self > Pointer
typedef SmartPointer< const Self > ConstPointer
typedef itk::ConstantBoundaryCondition< TOutputImage > OutputBCType
typedef TInputImage::ConstPointer InputConstPointerType
typedef TAverageOutwardFluxFImage::ConstPointer AOFConstPointerType
typedef TOutputImage::Pointer OutputPointerType
typedef TOutputImage::IndexType OutputIndexType
typedef TOutputImage::SizeType OutputSizeType
typedef TOutputImage::RegionType OutputRegionType
typedef TOutputImage::PixelType OutputPixelType
typedef TInputImage::IndexType InputIndexType
typedef TInputImage::PixelType InputPixelType
typedef itk::ImageRegionConstIterator< TInputImage > InputConstIteratorType
typedef itk::ImageRegionIterator< TOutputImage > OutputIteratorType
typedef itk::ConstNeighborhoodIterator< TInputImage > InputConstNeighborhoodIteratorType
typedef itk::ConstNeighborhoodIterator< TAverageOutwardFluxFImage > AOFConstNeighborhoodIteratorType
typedef itk::NeighborhoodIterator< TOutputImage > OutputNeighborhoodIteratorType
typedef std::vector< Pixel > HeapContainer
typedef std::priority_queue< Pixel, HeapContainer, Greater > HeapType

Public Member Functions

 itkNewMacro (Self)
 itkTypeMacro (MedialCurveImageFilter, ImageToImageFilter)
 itkStaticConstMacro (InputImageDimension, unsigned int, TInputImage::ImageDimension)
 itkStaticConstMacro (OutputImageDimension, unsigned int, TOutputImage::ImageDimension)
virtual void SetAverageOutwardFluxImage (AOFConstPointerType aofImage)
virtual AOFConstPointerType GetAverageOutwardFluxImage ()
 itkSetMacro (Threshold, double)
 itkGetConstReferenceMacro (Threshold, double)

Protected Member Functions

 MedialCurveImageFilter ()
 Default Constructor.
virtual ~MedialCurveImageFilter ()
 Destructor.
bool IsBoundary (OutputIndexType p)
 Returns true if p belongs to the object and at least one of its 27 neighbors belong to the background.
bool IsIntSimple (OutputIndexType p)
 Returns true if its deletion from the object changes the local object topology in the 27 neighborhood.
bool IsExtSimple (OutputIndexType p)
 Returns true if its deletion from the object changes the local background topology in the 18 neighborhood.
bool IsEnd (OutputIndexType p)
 Returns true if the point has less than two object neighbors.
void DistanceToObject ()
 Computes the binary object from its implicit representation.
void GenerateData () ITK_OVERRIDE
void PrintSelf (std::ostream &os, Indent indent) const ITK_OVERRIDE

Protected Attributes

InputConstPointerType distance
AOFConstPointerType aof
double m_Threshold
OutputPointerType queued
OutputPointerType auxQueued
OutputPointerType skeleton
OutputRegionType region

Detailed Description

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
class itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >

Computes the medial curve of a tube-like object.

The object is represented as a binary image. A topological prunning is performed guided by the distance transform to the object. The prunning stops when all voxels that are end points are not simple. The average outward flux imposes an extra criterion for deletion. This class implements the centerline extraction algorithm described in : "S. Bouix, K. Siddiqi, and A. Tannenbaum. Flux driven automatic centerline extraction. Technical Report SOCS-04.2, School of Ccomputer Science, McGill University, 2004." TODO:

  1. manual instantiation

Definition at line 65 of file itkMedialCurveImageFilter.h.

Member Typedef Documentation

◆ TAverageOutwardFluxFImage

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
typedef itk::Image< TAverageOutwardFluxPixelType, TInputImage::ImageDimension > itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::TAverageOutwardFluxFImage

Definition at line 74 of file itkMedialCurveImageFilter.h.

◆ TOutputImage

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
typedef itk::Image< TOutputPixelType, TInputImage::ImageDimension > itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::TOutputImage

Definition at line 75 of file itkMedialCurveImageFilter.h.

◆ Self

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
typedef MedialCurveImageFilter itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::Self

Standard class typedefs.

Definition at line 78 of file itkMedialCurveImageFilter.h.

◆ Superclass

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
typedef ImageToImageFilter<TInputImage,TOutputImage> itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::Superclass

Definition at line 79 of file itkMedialCurveImageFilter.h.

◆ Pointer

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
typedef SmartPointer<Self> itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::Pointer

Definition at line 80 of file itkMedialCurveImageFilter.h.

◆ ConstPointer

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
typedef SmartPointer<const Self> itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::ConstPointer

Definition at line 81 of file itkMedialCurveImageFilter.h.

◆ OutputBCType

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
typedef itk::ConstantBoundaryCondition< TOutputImage > itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::OutputBCType

Definition at line 89 of file itkMedialCurveImageFilter.h.

◆ InputConstPointerType

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
typedef TInputImage::ConstPointer itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::InputConstPointerType

Definition at line 91 of file itkMedialCurveImageFilter.h.

◆ AOFConstPointerType

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
typedef TAverageOutwardFluxFImage::ConstPointer itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::AOFConstPointerType

Definition at line 92 of file itkMedialCurveImageFilter.h.

◆ OutputPointerType

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
typedef TOutputImage::Pointer itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::OutputPointerType

Definition at line 93 of file itkMedialCurveImageFilter.h.

◆ OutputIndexType

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
typedef TOutputImage::IndexType itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::OutputIndexType

Definition at line 95 of file itkMedialCurveImageFilter.h.

◆ OutputSizeType

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
typedef TOutputImage::SizeType itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::OutputSizeType

Definition at line 96 of file itkMedialCurveImageFilter.h.

◆ OutputRegionType

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
typedef TOutputImage::RegionType itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::OutputRegionType

Definition at line 97 of file itkMedialCurveImageFilter.h.

◆ OutputPixelType

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
typedef TOutputImage::PixelType itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::OutputPixelType

Definition at line 98 of file itkMedialCurveImageFilter.h.

◆ InputIndexType

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
typedef TInputImage::IndexType itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::InputIndexType

Definition at line 100 of file itkMedialCurveImageFilter.h.

◆ InputPixelType

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
typedef TInputImage::PixelType itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::InputPixelType

Definition at line 101 of file itkMedialCurveImageFilter.h.

◆ InputConstIteratorType

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
typedef itk::ImageRegionConstIterator< TInputImage > itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::InputConstIteratorType

Definition at line 103 of file itkMedialCurveImageFilter.h.

◆ OutputIteratorType

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
typedef itk::ImageRegionIterator< TOutputImage > itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::OutputIteratorType

Definition at line 104 of file itkMedialCurveImageFilter.h.

◆ InputConstNeighborhoodIteratorType

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
typedef itk::ConstNeighborhoodIterator< TInputImage > itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::InputConstNeighborhoodIteratorType

Definition at line 105 of file itkMedialCurveImageFilter.h.

◆ AOFConstNeighborhoodIteratorType

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
typedef itk::ConstNeighborhoodIterator< TAverageOutwardFluxFImage > itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::AOFConstNeighborhoodIteratorType

Definition at line 106 of file itkMedialCurveImageFilter.h.

◆ OutputNeighborhoodIteratorType

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
typedef itk::NeighborhoodIterator< TOutputImage > itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::OutputNeighborhoodIteratorType

Definition at line 107 of file itkMedialCurveImageFilter.h.

◆ HeapContainer

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
typedef std::vector<Pixel> itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::HeapContainer

Definition at line 132 of file itkMedialCurveImageFilter.h.

◆ HeapType

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
typedef std::priority_queue<Pixel, HeapContainer, Greater > itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::HeapType

Definition at line 133 of file itkMedialCurveImageFilter.h.

Constructor & Destructor Documentation

◆ MedialCurveImageFilter()

template<class TInputImage, class TAverageOutwardFluxPixelType, class TOutputPixelType>
itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::MedialCurveImageFilter ( )
protected

Default Constructor.

Definition at line 39 of file itkMedialCurveImageFilter.h.

◆ ~MedialCurveImageFilter()

template<class TInputImage, class TAverageOutwardFluxPixelType, class TOutputPixelType>
itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::~MedialCurveImageFilter ( )
protectedvirtual

Destructor.

Definition at line 46 of file itkMedialCurveImageFilter.h.

49{

Member Function Documentation

◆ itkNewMacro()

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::itkNewMacro ( Self )

Method for creation through the object factory

◆ itkTypeMacro()

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::itkTypeMacro ( MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType > ,
ImageToImageFilter  )

Run-time type information (and related methods).

◆ itkStaticConstMacro() [1/2]

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::itkStaticConstMacro ( InputImageDimension ,
unsigned int ,
TInputImage::ImageDimension  )

The dimension of the input and output images.

◆ itkStaticConstMacro() [2/2]

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::itkStaticConstMacro ( OutputImageDimension ,
unsigned int ,
TOutputImage::ImageDimension  )

◆ SetAverageOutwardFluxImage()

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
virtual void itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::SetAverageOutwardFluxImage ( AOFConstPointerType aofImage)
inlinevirtual

Definition at line 146 of file itkMedialCurveImageFilter.h.

147 {
148 this->ProcessObject::SetNthInput( 1, const_cast< TAverageOutwardFluxFImage * >(aofImage.GetPointer()) );
149 }
Computes the medial curve of a tube-like object.
itk::Image< TAverageOutwardFluxPixelType, TInputImage::ImageDimension > TAverageOutwardFluxFImage

◆ GetAverageOutwardFluxImage()

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
virtual AOFConstPointerType itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::GetAverageOutwardFluxImage ( )
inlinevirtual

Definition at line 151 of file itkMedialCurveImageFilter.h.

152 {
153 return ( static_cast< TAverageOutwardFluxFImage *>(this->ProcessObject::GetInput(1)) );
154 }

◆ itkSetMacro()

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::itkSetMacro ( Threshold ,
double  )

Set the AOF threshold.

◆ itkGetConstReferenceMacro()

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::itkGetConstReferenceMacro ( Threshold ,
double  )

Get the AOF threshold .

◆ IsBoundary()

template<class TInputImage, class TAverageOutwardFluxPixelType, class TOutputPixelType>
bool itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::IsBoundary ( OutputIndexType p)
protected

Returns true if p belongs to the object and at least one of its 27 neighbors belong to the background.

Definition at line 54 of file itkMedialCurveImageFilter.h.

65 :
67{
68 public:
69
70 //-----------------------------------------------------
71 // Typedefs
72 //-----------------------------------------------------
73
76
82
85
88
90
itk::Image< TOutputPixelType, TInputImage::ImageDimension > TOutputImage
SmartPointer< const Self > ConstPointer
itk::ConstantBoundaryCondition< TOutputImage > OutputBCType
MedialCurveImageFilter()
Default Constructor.
itkTypeMacro(MedialCurveImageFilter, ImageToImageFilter)
ImageToImageFilter< TInputImage, TOutputImage > Superclass

◆ IsIntSimple()

template<class TInputImage, class TAverageOutwardFluxPixelType, class TOutputPixelType>
bool itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::IsIntSimple ( OutputIndexType p)
protected

Returns true if its deletion from the object changes the local object topology in the 27 neighborhood.

Definition at line 99 of file itkMedialCurveImageFilter.h.

110 {
111 private:
114
115 public:
116 InputPixelType GetPriority() const {return pixelValue;};
121 };
122
123 struct Greater
124 {
125 public:
126 bool operator()(const Pixel &p1, const Pixel &p2) const
127 {
128 return p1.GetPriority() > p2.GetPriority();
129 }
130 };
131
134
140
141
142 //-----------------------------------------------------
143 // Methods
144 //-----------------------------------------------------
145
147 {
148 this->ProcessObject::SetNthInput( 1, const_cast< TAverageOutwardFluxFImage * >(aofImage.GetPointer()) );
149 }
150
152 {
153 return ( static_cast< TAverageOutwardFluxFImage *>(this->ProcessObject::GetInput(1)) );
154 }
155
157 itkSetMacro( Threshold, double );
158
161
162#ifdef ITK_USE_CONCEPT_CHECKING
169#endif
170
171 protected:
172
175
177 virtual ~MedialCurveImageFilter();
178
182
186
190
192 bool IsEnd( OutputIndexType p );
193
195 void DistanceToObject();
196
199
201
202
203 //-----------------------------------------------------
204 // Variables
205 //-----------------------------------------------------
206
207 InputConstPointerType distance; // Implicit representation of the object. Is at input 0.
208 AOFConstPointerType aof; // Average outward flux. Is at input 1.
209 double m_Threshold; // Threshold for the average outward flux.
210 OutputPointerType queued; // Image that stores queued labels in Update().
211 OutputPointerType auxQueued; // Image that stores queued labels in IsIntSimple() and IsExtSimple().
212 OutputPointerType skeleton; // Skeleton.
214
215
216 private:
217
218 MedialCurveImageFilter( const MedialCurveImageFilter& ); //purposely not implemented
219 void operator = ( const MedialCurveImageFilter& ); //purposely not implemented
220};
221
virtual AOFConstPointerType GetAverageOutwardFluxImage()
itkSetMacro(Threshold, double)
bool IsIntSimple(OutputIndexType p)
Returns true if its deletion from the object changes the local object topology in the 27 neighborhood...
void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
void DistanceToObject()
Computes the binary object from its implicit representation.
TInputImage::ConstPointer InputConstPointerType
TAverageOutwardFluxFImage::ConstPointer AOFConstPointerType
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension)
TOutputImage::RegionType OutputRegionType
virtual void SetAverageOutwardFluxImage(AOFConstPointerType aofImage)
bool IsExtSimple(OutputIndexType p)
Returns true if its deletion from the object changes the local background topology in the 18 neighbor...
bool IsBoundary(OutputIndexType p)
Returns true if p belongs to the object and at least one of its 27 neighbors belong to the background...
itkGetConstReferenceMacro(Threshold, double)
virtual ~MedialCurveImageFilter()
Destructor.
bool IsEnd(OutputIndexType p)
Returns true if the point has less than two object neighbors.
std::priority_queue< Pixel, HeapContainer, Greater > HeapType
TOutputImage::IndexType OutputIndexType
bool operator()(const Pixel &p1, const Pixel &p2) const

◆ IsExtSimple()

template<class TInputImage, class TAverageOutwardFluxPixelType, class TOutputPixelType>
bool itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::IsExtSimple ( OutputIndexType p)
protected

Returns true if its deletion from the object changes the local background topology in the 18 neighborhood.

Definition at line 231 of file itkMedialCurveImageFilter.h.

279{
280
289
292template< class TInputImage,
294 class TOutputPixelType = unsigned char>
296 public ImageToImageFilter<TInputImage, ::itk::Image<TOutputPixelType,TInputImage::ImageDimension> >
297{
298 public:
299
300 //-----------------------------------------------------
301 // Typedefs
302 //-----------------------------------------------------
303
306
312
315
318
320
324
326 typedef typename TOutputImage::SizeType OutputSizeType;
329
330 typedef typename TInputImage::IndexType InputIndexType;
331 typedef typename TInputImage::PixelType InputPixelType;
332
338
339 struct Pixel
340 {
341 private:
344
345 public:
346 InputPixelType GetPriority() const {return pixelValue;};
351 };
352
353 struct Greater
354 {
355 public:
356 bool operator()(const Pixel &p1, const Pixel &p2) const
357 {
358 return p1.GetPriority() > p2.GetPriority();
359 }
360 };
361
364
370
371
372 //-----------------------------------------------------
373 // Methods
374 //-----------------------------------------------------
375
377 {
378 this->ProcessObject::SetNthInput( 1, const_cast< TAverageOutwardFluxFImage * >(aofImage.GetPointer()) );
379 }
380
382 {
383 return ( static_cast< TAverageOutwardFluxFImage *>(this->ProcessObject::GetInput(1)) );
384 }
385
387 itkSetMacro( Threshold, double );
388
391
392#ifdef ITK_USE_CONCEPT_CHECKING
399#endif
400
401 protected:
402
405
407 virtual ~MedialCurveImageFilter();
408
412
416
420
422 bool IsEnd( OutputIndexType p );
423
425 void DistanceToObject();
426
429
431
432
433 //-----------------------------------------------------
434 // Variables
435 //-----------------------------------------------------
436
437 InputConstPointerType distance; // Implicit representation of the object. Is at input 0.
438 AOFConstPointerType aof; // Average outward flux. Is at input 1.
439 double m_Threshold; // Threshold for the average outward flux.
440 OutputPointerType queued; // Image that stores queued labels in Update().
441 OutputPointerType auxQueued; // Image that stores queued labels in IsIntSimple() and IsExtSimple().
442 OutputPointerType skeleton; // Skeleton.
444
445
446 private:
447
448 MedialCurveImageFilter( const MedialCurveImageFilter& ); //purposely not implemented
449 void operator = ( const MedialCurveImageFilter& ); //purposely not implemented
450};
451
452#include "itkMedialCurveImageFilter.txx"
453
454}//end itk namespace
455
456#endif // _itkMedialCurveImageFilter_h
457

◆ IsEnd()

template<class TInputImage, class TAverageOutwardFluxPixelType, class TOutputPixelType>
bool itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::IsEnd ( OutputIndexType p)
protected

Returns true if the point has less than two object neighbors.

Definition at line 456 of file itkMedialCurveImageFilter.h.

504{
505
514
517template< class TInputImage,
519 class TOutputPixelType = unsigned char>
521 public ImageToImageFilter<TInputImage, ::itk::Image<TOutputPixelType,TInputImage::ImageDimension> >
522{
523 public:
524
525 //-----------------------------------------------------
526 // Typedefs
527 //-----------------------------------------------------
528
531
537
540
543
545
549
551 typedef typename TOutputImage::SizeType OutputSizeType;
554
555 typedef typename TInputImage::IndexType InputIndexType;
556 typedef typename TInputImage::PixelType InputPixelType;
557
563
564 struct Pixel
565 {
566 private:
569
570 public:
571 InputPixelType GetPriority() const {return pixelValue;};
576 };
577
578 struct Greater
579 {
580 public:
581 bool operator()(const Pixel &p1, const Pixel &p2) const
582 {
583 return p1.GetPriority() > p2.GetPriority();
584 }
585 };
586
589
595
596
597 //-----------------------------------------------------
598 // Methods
599 //-----------------------------------------------------
600
602 {
603 this->ProcessObject::SetNthInput( 1, const_cast< TAverageOutwardFluxFImage * >(aofImage.GetPointer()) );
604 }
605
607 {
608 return ( static_cast< TAverageOutwardFluxFImage *>(this->ProcessObject::GetInput(1)) );
609 }
610
612 itkSetMacro( Threshold, double );
613
616
617#ifdef ITK_USE_CONCEPT_CHECKING
624#endif
625
626 protected:
627
630
632 virtual ~MedialCurveImageFilter();
633
637
641
645
647 bool IsEnd( OutputIndexType p );
648
650 void DistanceToObject();
651
654
656
657
658 //-----------------------------------------------------
659 // Variables
660 //-----------------------------------------------------
661
662 InputConstPointerType distance; // Implicit representation of the object. Is at input 0.
663 AOFConstPointerType aof; // Average outward flux. Is at input 1.
664 double m_Threshold; // Threshold for the average outward flux.
665 OutputPointerType queued; // Image that stores queued labels in Update().
666 OutputPointerType auxQueued; // Image that stores queued labels in IsIntSimple() and IsExtSimple().
667 OutputPointerType skeleton; // Skeleton.
669
670
671 private:
672
673 MedialCurveImageFilter( const MedialCurveImageFilter& ); //purposely not implemented
674 void operator = ( const MedialCurveImageFilter& ); //purposely not implemented
675};
676
677#include "itkMedialCurveImageFilter.txx"
678
679}//end itk namespace
680
681#endif // _itkMedialCurveImageFilter_h
682

◆ DistanceToObject()

template<class TInputImage, class TAverageOutwardFluxPixelType, class TOutputPixelType>
void itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::DistanceToObject ( )
protected

Computes the binary object from its implicit representation.

Definition at line 496 of file itkMedialCurveImageFilter.h.

544{
545
554
557template< class TInputImage,
559 class TOutputPixelType = unsigned char>
561 public ImageToImageFilter<TInputImage, ::itk::Image<TOutputPixelType,TInputImage::ImageDimension> >
562{
563 public:
564
565 //-----------------------------------------------------
566 // Typedefs
567 //-----------------------------------------------------
568
571
577
580
583
585
589
591 typedef typename TOutputImage::SizeType OutputSizeType;
594
595 typedef typename TInputImage::IndexType InputIndexType;
596 typedef typename TInputImage::PixelType InputPixelType;
597
603
604 struct Pixel
605 {
606 private:
609
610 public:
611 InputPixelType GetPriority() const {return pixelValue;};
616 };
617
618 struct Greater
619 {
620 public:
621 bool operator()(const Pixel &p1, const Pixel &p2) const
622 {
623 return p1.GetPriority() > p2.GetPriority();
624 }
625 };
626
629
635
636
637 //-----------------------------------------------------
638 // Methods
639 //-----------------------------------------------------
640
642 {
643 this->ProcessObject::SetNthInput( 1, const_cast< TAverageOutwardFluxFImage * >(aofImage.GetPointer()) );
644 }
645
647 {
648 return ( static_cast< TAverageOutwardFluxFImage *>(this->ProcessObject::GetInput(1)) );
649 }
650
652 itkSetMacro( Threshold, double );
653
656
657#ifdef ITK_USE_CONCEPT_CHECKING
664#endif
665
666 protected:
667
670
672 virtual ~MedialCurveImageFilter();
673
677
681
685
687 bool IsEnd( OutputIndexType p );
688
690 void DistanceToObject();
691
694
696
697
698 //-----------------------------------------------------
699 // Variables
700 //-----------------------------------------------------
701
702 InputConstPointerType distance; // Implicit representation of the object. Is at input 0.
703 AOFConstPointerType aof; // Average outward flux. Is at input 1.
704 double m_Threshold; // Threshold for the average outward flux.
705 OutputPointerType queued; // Image that stores queued labels in Update().
706 OutputPointerType auxQueued; // Image that stores queued labels in IsIntSimple() and IsExtSimple().
707 OutputPointerType skeleton; // Skeleton.
709
710
711 private:
712
713 MedialCurveImageFilter( const MedialCurveImageFilter& ); //purposely not implemented
714 void operator = ( const MedialCurveImageFilter& ); //purposely not implemented
715};
716
717#include "itkMedialCurveImageFilter.txx"
718
719}//end itk namespace
720
721#endif // _itkMedialCurveImageFilter_h
722

◆ GenerateData()

template<class TInputImage, class TAverageOutwardFluxPixelType, class TOutputPixelType>
void itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::GenerateData ( )
protected

Compute the medial curve.

Definition at line 524 of file itkMedialCurveImageFilter.h.

572{
573
582
585template< class TInputImage,
587 class TOutputPixelType = unsigned char>
589 public ImageToImageFilter<TInputImage, ::itk::Image<TOutputPixelType,TInputImage::ImageDimension> >
590{
591 public:
592
593 //-----------------------------------------------------
594 // Typedefs
595 //-----------------------------------------------------
596
599
605
608
611
613
617
619 typedef typename TOutputImage::SizeType OutputSizeType;
622
623 typedef typename TInputImage::IndexType InputIndexType;
624 typedef typename TInputImage::PixelType InputPixelType;
625
631
632 struct Pixel
633 {
634 private:
637
638 public:
639 InputPixelType GetPriority() const {return pixelValue;};
644 };
645
646 struct Greater
647 {
648 public:
649 bool operator()(const Pixel &p1, const Pixel &p2) const
650 {
651 return p1.GetPriority() > p2.GetPriority();
652 }
653 };
654
657
663
664
665 //-----------------------------------------------------
666 // Methods
667 //-----------------------------------------------------
668
670 {
671 this->ProcessObject::SetNthInput( 1, const_cast< TAverageOutwardFluxFImage * >(aofImage.GetPointer()) );
672 }
673
675 {
676 return ( static_cast< TAverageOutwardFluxFImage *>(this->ProcessObject::GetInput(1)) );
677 }
678
680 itkSetMacro( Threshold, double );
681
684
685#ifdef ITK_USE_CONCEPT_CHECKING
692#endif
693
694 protected:
695
698
700 virtual ~MedialCurveImageFilter();
701
705
709
713
715 bool IsEnd( OutputIndexType p );
716
718 void DistanceToObject();
719
722
724
725
726 //-----------------------------------------------------
727 // Variables
728 //-----------------------------------------------------
729
730 InputConstPointerType distance; // Implicit representation of the object. Is at input 0.
731 AOFConstPointerType aof; // Average outward flux. Is at input 1.
732 double m_Threshold; // Threshold for the average outward flux.
733 OutputPointerType queued; // Image that stores queued labels in Update().
734 OutputPointerType auxQueued; // Image that stores queued labels in IsIntSimple() and IsExtSimple().
735 OutputPointerType skeleton; // Skeleton.
737
738
739 private:
740
741 MedialCurveImageFilter( const MedialCurveImageFilter& ); //purposely not implemented
742 void operator = ( const MedialCurveImageFilter& ); //purposely not implemented
743};
744
745#include "itkMedialCurveImageFilter.txx"
746
747}//end itk namespace
748
749#endif // _itkMedialCurveImageFilter_h
750

◆ PrintSelf()

template<class TInputImage, class TAverageOutwardFluxPixelType, class TOutputPixelType>
void itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::PrintSelf ( std::ostream & os,
Indent indent ) const
protected

Print Self

Definition at line 680 of file itkMedialCurveImageFilter.h.

728{
729
738
741template< class TInputImage,
743 class TOutputPixelType = unsigned char>
745 public ImageToImageFilter<TInputImage, ::itk::Image<TOutputPixelType,TInputImage::ImageDimension> >
746{
747 public:
748
749 //-----------------------------------------------------
750 // Typedefs
751 //-----------------------------------------------------
752
755
761
764
767
769
773
775 typedef typename TOutputImage::SizeType OutputSizeType;
778
779 typedef typename TInputImage::IndexType InputIndexType;
780 typedef typename TInputImage::PixelType InputPixelType;
781
787
788 struct Pixel
789 {
790 private:
793
794 public:
795 InputPixelType GetPriority() const {return pixelValue;};
800 };
801
802 struct Greater
803 {
804 public:
805 bool operator()(const Pixel &p1, const Pixel &p2) const
806 {
807 return p1.GetPriority() > p2.GetPriority();
808 }
809 };
810
813
819
820
821 //-----------------------------------------------------
822 // Methods
823 //-----------------------------------------------------
824
826 {
827 this->ProcessObject::SetNthInput( 1, const_cast< TAverageOutwardFluxFImage * >(aofImage.GetPointer()) );
828 }
829
831 {
832 return ( static_cast< TAverageOutwardFluxFImage *>(this->ProcessObject::GetInput(1)) );
833 }
834
836 itkSetMacro( Threshold, double );
837
840
841#ifdef ITK_USE_CONCEPT_CHECKING
848#endif
849
850 protected:
851
854
856 virtual ~MedialCurveImageFilter();
857
861
865
869
871 bool IsEnd( OutputIndexType p );
872
874 void DistanceToObject();
875
878
880
881
882 //-----------------------------------------------------
883 // Variables
884 //-----------------------------------------------------
885
886 InputConstPointerType distance; // Implicit representation of the object. Is at input 0.
887 AOFConstPointerType aof; // Average outward flux. Is at input 1.
888 double m_Threshold; // Threshold for the average outward flux.
889 OutputPointerType queued; // Image that stores queued labels in Update().
890 OutputPointerType auxQueued; // Image that stores queued labels in IsIntSimple() and IsExtSimple().
891 OutputPointerType skeleton; // Skeleton.
893
894
895 private:
896
897 MedialCurveImageFilter( const MedialCurveImageFilter& ); //purposely not implemented
898 void operator = ( const MedialCurveImageFilter& ); //purposely not implemented
899};
900
901#include "itkMedialCurveImageFilter.txx"
902
903}//end itk namespace
904
905#endif // _itkMedialCurveImageFilter_h
906

Member Data Documentation

◆ distance

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
InputConstPointerType itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::distance
protected

Definition at line 207 of file itkMedialCurveImageFilter.h.

◆ aof

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
AOFConstPointerType itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::aof
protected

Definition at line 208 of file itkMedialCurveImageFilter.h.

◆ m_Threshold

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
double itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::m_Threshold
protected

Definition at line 209 of file itkMedialCurveImageFilter.h.

◆ queued

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
OutputPointerType itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::queued
protected

Definition at line 210 of file itkMedialCurveImageFilter.h.

◆ auxQueued

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
OutputPointerType itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::auxQueued
protected

Definition at line 211 of file itkMedialCurveImageFilter.h.

◆ skeleton

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
OutputPointerType itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::skeleton
protected

Definition at line 212 of file itkMedialCurveImageFilter.h.

◆ region

template<class TInputImage, class TAverageOutwardFluxPixelType = float, class TOutputPixelType = unsigned char>
OutputRegionType itk::MedialCurveImageFilter< TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType >::region
protected

Definition at line 213 of file itkMedialCurveImageFilter.h.


The documentation for this class was generated from the following file: