ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkHessian3DToVesselnessMeasureImageFilter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkHessian3DToVesselnessMeasureImageFilter_h
00019 #define __itkHessian3DToVesselnessMeasureImageFilter_h
00020 
00021 #include "itkSymmetricSecondRankTensor.h"
00022 #include "itkSymmetricEigenAnalysisImageFilter.h"
00023 
00024 namespace itk
00025 {
00075 template< typename  TPixel >
00076 class ITK_EXPORT Hessian3DToVesselnessMeasureImageFilter:public
00077   ImageToImageFilter< Image< SymmetricSecondRankTensor< double, 3 >, 3 >,
00078                       Image< TPixel, 3 > >
00079 {
00080 public:
00082   typedef Hessian3DToVesselnessMeasureImageFilter Self;
00083   typedef ImageToImageFilter<
00084     Image< SymmetricSecondRankTensor< double, 3 >, 3 >,
00085     Image< TPixel, 3 > >                    Superclass;
00086 
00087   typedef SmartPointer< Self >       Pointer;
00088   typedef SmartPointer< const Self > ConstPointer;
00089 
00090   typedef typename Superclass::InputImageType  InputImageType;
00091   typedef typename Superclass::OutputImageType OutputImageType;
00092   typedef typename InputImageType::PixelType   InputPixelType;
00093   typedef TPixel                               OutputPixelType;
00094 
00096   itkStaticConstMacro(ImageDimension, unsigned int,
00097                       ::itk::GetImageDimension< InputImageType >::ImageDimension);
00098   itkStaticConstMacro(InputPixelDimension, unsigned int,
00099                       InputPixelType::Dimension);
00101 
00102   typedef  FixedArray< double, itkGetStaticConstMacro(InputPixelDimension) >
00103   EigenValueArrayType;
00104   typedef  Image< EigenValueArrayType, itkGetStaticConstMacro(ImageDimension) >
00105   EigenValueImageType;
00106   typedef   SymmetricEigenAnalysisImageFilter<
00107     InputImageType, EigenValueImageType >     EigenAnalysisFilterType;
00108 
00110   itkTypeMacro(Hessian3DToVesselnessMeasureImageFilter, ImageToImageFilter);
00111 
00113   itkNewMacro(Self);
00114 
00117   itkSetMacro(Alpha1, double);
00118   itkGetConstMacro(Alpha1, double);
00120 
00123   itkSetMacro(Alpha2, double);
00124   itkGetConstMacro(Alpha2, double);
00126 
00127 #ifdef ITK_USE_CONCEPT_CHECKING
00128 
00129   itkConceptMacro( DoubleConvertibleToOutputCheck,
00130                    ( Concept::Convertible< double, OutputPixelType > ) );
00131 
00133 #endif
00134 protected:
00135   Hessian3DToVesselnessMeasureImageFilter();
00136   ~Hessian3DToVesselnessMeasureImageFilter() {}
00137   void PrintSelf(std::ostream & os, Indent indent) const;
00139 
00141   void GenerateData(void);
00142 
00143 private:
00144   Hessian3DToVesselnessMeasureImageFilter(const Self &); //purposely not
00145                                                          // implemented
00146   void operator=(const Self &);                          //purposely not
00147 
00148   // implemented
00149 
00150   typename EigenAnalysisFilterType::Pointer m_SymmetricEigenValueFilter;
00151 
00152   double m_Alpha1;
00153   double m_Alpha2;
00154 };
00155 } // end namespace itk
00156 
00157 #ifndef ITK_MANUAL_INSTANTIATION
00158 #include "itkHessian3DToVesselnessMeasureImageFilter.hxx"
00159 #endif
00160 
00161 #endif
00162