VMTK
Loading...
Searching...
No Matches
itkAverageOutwardFluxImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3Original Method Developed By:
4 Module : EvoLib
5 File : $RCSfile: itkAverageOutwardFluxImageFilter.h,v $
6 Copyright : (C)opyright (University of Zaragoza) 2005++
7 See COPYRIGHT statement in top level directory.
8 Authors : Monica Hernandez && Xavier Mellado
9 Modified : $Author: ilarrabide $
10 Purpose : itkAverageOutwardFluxImageFilter definition.
11 Date : $Date: 2007/06/01 14:52:56 $
12 Version : $Revision: 1.3 $
13 Changes : $Locker: $
14 $Log: itkAverageOutwardFluxImageFilter.h,v $
15 Revision 1.3 2007/06/01 14:52:56 ilarrabide
16 Medial curve computation.
17
18 Revision 1.2 2007/02/19 10:01:15 xmellado
19 Release v1.0
20
21Modifications Made To Support Integration Into:
22 The Vascular Modeling Toolkit (VMTK)
23 vmtk.github.io
24
25Modification Authors:
26 Richard Izzo
27 University at Buffalo
28 Github: rlizzo
29 Luca Antiga
30 Orobix Srl.
31 Github: lantiga
32 Date: April 12, 2018
33
34=========================================================================*/
35
36#ifndef _itkAverageOutwardFluxImageFilter_h
37#define _itkAverageOutwardFluxImageFilter_h
38
39#include <time.h>
41#include <itkImage.h>
42#include <itkNeighborhoodIterator.h>
43#include <itkImageRegionIterator.h>
44
45#include <itkImageToImageFilter.h>
46#include <vector>
48using namespace std;
49
50namespace itk
51{
52
54/// represented as a distance transform. This class implements the centerline extraction
55/// algorithm described in : "S. Bouix, K. Siddiqi, and A. Tannenbaum. Flux driven automatic centerline extraction. Technical Report
56/// SOCS-04.2, School of Computer Science, McGill University, 2004."
57/// \ingroup Segmentation
58
61template< class TInputImage,
62 class TOutputPixelType = float,
63 class TInputVectorPixelType = ::itk::CovariantVector<TOutputPixelType,TInputImage::ImageDimension> >
65 public ImageToImageFilter<TInputImage, ::itk::Image<TOutputPixelType,TInputImage::ImageDimension> >
66{
67 public:
68
69 //-----------------------------------------------------
70 // Typedefs
71 //-----------------------------------------------------
72
73 typedef typename itk::Image< TInputVectorPixelType, TInputImage::ImageDimension > TInputVectorImage;
74 typedef typename itk::Image< TOutputPixelType, TInputImage::ImageDimension > TOutputImage;
75
78 typedef ImageToImageFilter<TInputImage, TOutputImage> Superclass;
79 typedef SmartPointer<Self> Pointer;
80 typedef SmartPointer<const Self> ConstPointer;
81
84
87
88 typedef typename TInputImage::ConstPointer InputConstPointerType;
89 typedef typename TInputVectorImage::ConstPointer InputVectorConstPointerType;
90 typedef typename TOutputImage::Pointer OutputPointerType;
91
92 typedef itk::ImageRegionConstIterator< TInputImage > InputConstIteratorType;
93 typedef itk::ConstNeighborhoodIterator< TInputVectorImage > InputVectorConstNeighborhoodIteratorType;
94 typedef itk::ImageRegionIterator< TOutputImage > OutputIteratorType;
95
96// #ifdef ITK_USE_CONCEPT_CHECKING
97// /** Begin concept checking */
98// itkConceptMacro(SameDimensionCheck,
99// (Concept::SameDimension<InputImageDimension, OutputImageDimension>));
100// itkConceptMacro(InputVectorIsReallyAVectorCheck,
101// (Concept::HasValueType<TInputVectorPixelType>));
102// itkConceptMacro(InputVectorIsFloatingPointCheck,
103// (Concept::IsFloatingPoint<TInputVectorPixelType::ValueType>));
104// //itkConceptMacro(InputVectorIsSameDimensionInputImageCheck,
105// // (Concept::SameDimension<TInputVectorPixelType::SizeType,InputImageDimension>));
106// itkConceptMacro(OutputIsFloatingPointCheck,
107// (Concept::IsFloatingPoint<TOutputPixelType>));
108// /** End concept checking */
109// #endif
110
111 //-----------------------------------------------------
112 // Methods
113 //-----------------------------------------------------
114
116 {
117 this->ProcessObject::SetNthInput( 1, const_cast< TInputVectorImage * >(gradient.GetPointer()) );
118 }
119
121 {
122 return ( static_cast< TInputVectorImage *>(this->ProcessObject::GetInput(1)) );
123 }
124
126 void GenerateData() ITK_OVERRIDE;
127
128 void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
129
130 protected:
137
138
139 //-----------------------------------------------------
140 // Variables
141 //-----------------------------------------------------
142
146
147 private:
148
149 AverageOutwardFluxImageFilter( const AverageOutwardFluxImageFilter& ); //purposely not implemented
150 void operator = ( const AverageOutwardFluxImageFilter& ); //purposely not implemented
151};
152
153#include "itkAverageOutwardFluxImageFilter.txx"
154
155} // end namespace itk
156#endif // _itkAverageOutwardFluxImageFilter_h
virtual void SetGradientImage(InputVectorConstPointerType gradient)
itk::Image< TInputVectorPixelType, TInputImage::ImageDimension > TInputVectorImage
ImageToImageFilter< TInputImage, TOutputImage > Superclass
itk::Image< TOutputPixelType, TInputImage::ImageDimension > TOutputImage
itk::ImageRegionConstIterator< TInputImage > InputConstIteratorType
itk::ConstNeighborhoodIterator< TInputVectorImage > InputVectorConstNeighborhoodIteratorType
TInputVectorImage::ConstPointer InputVectorConstPointerType
itkTypeMacro(AverageOutwardFluxImageFilter, ImageToImageFilter)
virtual InputVectorConstPointerType GetGradientImage()
itk::ImageRegionIterator< TOutputImage > OutputIteratorType