1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
6 #ifndef __fpa__Image__MinimumSpanningTreeToImageFilter__h__
7 #define __fpa__Image__MinimumSpanningTreeToImageFilter__h__
9 #include <itkRGBAPixel.h>
10 #include <itkImageToImageFilter.h>
19 template< class _TMST, class _TOutputPixelValue >
20 class MinimumSpanningTreeToImageFilter
21 : public itk::ImageToImageFilter< _TMST, itk::Image< itk::RGBAPixel< _TOutputPixelValue >, _TMST::ImageDimension > >
25 typedef _TOutputPixelValue TOutputPixelValue;
26 typedef itk::RGBAPixel< TOutputPixelValue > TOutputPixel;
27 typedef itk::Image< TOutputPixel, TMST::ImageDimension > TOutputImage;
29 typedef MinimumSpanningTreeToImageFilter Self;
30 typedef itk::SmartPointer< Self > Pointer;
31 typedef itk::SmartPointer< const Self > ConstPointer;
32 typedef itk::ImageToImageFilter< TMST, TOutputImage > Superclass;
34 typedef typename TMST::IndexType TIndex;
39 TOutputPixelValue Red;
40 TOutputPixelValue Green;
41 TOutputPixelValue Blue;
43 typedef std::vector< TPathData > TPaths;
48 fpa::Image::MinimumSpanningTreeToImageFilter,
49 itk::ImageToImageFilter
54 const TIndex& start, const TIndex& end,
55 const TOutputPixelValue& r = TOutputPixelValue( 1 ),
56 const TOutputPixelValue& g = TOutputPixelValue( 0 ),
57 const TOutputPixelValue& b = TOutputPixelValue( 0 )
61 MinimumSpanningTreeToImageFilter( );
62 virtual ~MinimumSpanningTreeToImageFilter( );
64 virtual void GenerateData( ) override;
67 MinimumSpanningTreeToImageFilter( const Self& other );
68 Self& operator=( const Self& other );
78 #ifndef ITK_MANUAL_INSTANTIATION
79 # include <fpa/Image/MinimumSpanningTreeToImageFilter.hxx>
80 #endif // ITK_MANUAL_INSTANTIATION
82 #endif // __fpa__Image__MinimumSpanningTreeToImageFilter__h__