X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FImage%2FPathsToImageFilter.h;fp=lib%2Ffpa%2FImage%2FPathsToImageFilter.h;h=0000000000000000000000000000000000000000;hb=3c639e5da479c7216a0a302ffa156ac6762caeed;hp=dd467cd857466bc678411f354f704eb64cf6152d;hpb=5bf766068f54d061d3816f4950a076c3cf3a4d8b;p=FrontAlgorithms.git diff --git a/lib/fpa/Image/PathsToImageFilter.h b/lib/fpa/Image/PathsToImageFilter.h deleted file mode 100644 index dd467cd..0000000 --- a/lib/fpa/Image/PathsToImageFilter.h +++ /dev/null @@ -1,84 +0,0 @@ -// ========================================================================= -// @author Leonardo Florez Valencia -// @email florez-l@javeriana.edu.co -// ========================================================================= - -#ifndef __fpa__Image__PathsToImageFilter__h__ -#define __fpa__Image__PathsToImageFilter__h__ - -#include -#include -#include - -namespace fpa -{ - namespace Image - { - /** - */ - template< class _TMST, class _TOutputPixelValue > - class PathsToImageFilter - : public itk::ImageToImageFilter< _TMST, itk::Image< itk::RGBAPixel< _TOutputPixelValue >, _TMST::ImageDimension > > - { - public: - typedef _TMST TMST; - typedef _TOutputPixelValue TOutputPixelValue; - typedef itk::RGBAPixel< TOutputPixelValue > TOutputPixel; - typedef itk::Image< TOutputPixel, TMST::ImageDimension > TOutputImage; - - typedef PathsToImageFilter Self; - typedef itk::SmartPointer< Self > Pointer; - typedef itk::SmartPointer< const Self > ConstPointer; - typedef itk::ImageToImageFilter< TMST, TOutputImage > Superclass; - - typedef typename TMST::IndexType TIndex; - struct TPathData - { - TIndex Start; - TIndex End; - TOutputPixelValue Red; - TOutputPixelValue Green; - TOutputPixelValue Blue; - }; - typedef std::vector< TPathData > TPaths; - - public: - itkNewMacro( Self ); - itkTypeMacro( - fpa::Image::PathsToImageFilter, - itk::ImageToImageFilter - ); - - public: - void AddPath( - const TIndex& start, const TIndex& end, - const TOutputPixelValue& r = TOutputPixelValue( 1 ), - const TOutputPixelValue& g = TOutputPixelValue( 0 ), - const TOutputPixelValue& b = TOutputPixelValue( 0 ) - ); - - protected: - PathsToImageFilter( ); - virtual ~PathsToImageFilter( ); - - virtual void GenerateData( ) override; - - private: - PathsToImageFilter( const Self& other ); - Self& operator=( const Self& other ); - - protected: - TPaths m_Paths; - }; - - } // ecapseman - -} // ecapseman - -#ifndef ITK_MANUAL_INSTANTIATION -# include -#endif // ITK_MANUAL_INSTANTIATION - -#endif // __fpa__Image__PathsToImageFilter__h__ - -// eof - $RCSfile$