Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkMidsagittalPlaneExtractionImageFilter.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkMidsagittalPlaneExtractionImageFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:28:51 $ 00007 Version: $Revision: 1.4 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 #ifndef __itkMidsagittalPlaneExtractionImageFilter_h 00018 #define __itkMidsagittalPlaneExtractionImageFilter_h 00019 00020 #include "itkImageToImageFilter.h" 00021 #include "itkPoint.h" 00022 00023 namespace itk 00024 { 00025 00034 typedef struct 00035 { 00036 double shiftX; 00037 double *shiftsY; 00038 double stepY; 00039 double n; 00040 double center; 00041 double angleEstimate; 00042 // itk::Point<double, InputImageType::ImageDimension> flippedCenterOfMass; 00043 // itk::Point<double, 3> flippedCenterOfMass; 00044 // itk::Point flippedCenterOfMass; 00045 double *flippedCenterOfMass; 00046 } estimateType; 00047 00048 template <class TInputImage, class TOutputImage> 00049 class ITK_EXPORT MidsagittalPlaneExtractionImageFilter : public ImageToImageFilter<TInputImage,TOutputImage> 00050 { 00051 public: 00053 typedef MidsagittalPlaneExtractionImageFilter Self; 00054 typedef ImageToImageFilter<TInputImage,TOutputImage> Superclass; 00055 typedef SmartPointer<Self> Pointer; 00056 typedef SmartPointer<const Self> ConstPointer; 00057 00059 itkNewMacro(Self); 00060 00062 itkTypeMacro(MidsagittalPlaneExtractionImageFilter, ImageToImageFilter); 00063 00065 typedef TInputImage InputImageType; 00066 typedef typename InputImageType::Pointer InputImagePointer; 00067 typedef typename InputImageType::RegionType InputImageRegionType; 00068 typedef typename InputImageType::PixelType InputImagePixelType; 00069 typedef TOutputImage OutputImageType; 00070 typedef typename OutputImageType::Pointer OutputImagePointer; 00071 typedef typename OutputImageType::RegionType OutputImageRegionType; 00072 typedef typename OutputImageType::PixelType OutputImagePixelType; 00073 00074 00076 itkGetMacro( Direction, unsigned int ); 00077 itkSetMacro( Direction, unsigned int ); 00078 00079 00080 protected: 00081 MidsagittalPlaneExtractionImageFilter(); 00082 virtual ~MidsagittalPlaneExtractionImageFilter() {}; 00083 void PrintSelf(std::ostream& os, Indent indent) const; 00084 double FindAngle(typename Superclass::InputImageConstPointer, int angleChoice, int numberOfPoints, double step, estimateType* anEstimate); 00085 double FindShift(typename Superclass::InputImageConstPointer, double numberOfPoints, double step, double shiftEstimate); 00086 double findHighestPoint(typename Superclass::InputImageConstPointer, int dimensionChoice, double startingHeight); 00087 // itk::Point<double, 3> *findCentroid(typename Superclass::InputImageConstPointer); 00088 // itk::Point<double, TInputImage::ImageDimension> *findCentroid(typename Superclass::InputImageConstPointer); 00089 00090 // itk::Point<double, 3> *findCentroid(typename Superclass::InputImageConstPointer volume, TInputImage::RegionType::IndexType dimensionMask); 00091 // itk::Point<double, 3> *findCentroid(typename Superclass::InputImageConstPointer volume); 00092 double *findCentroid(typename Superclass::InputImageConstPointer volume, double* dimensionMask); 00093 00094 // itk::Point *findCentroid(typename Superclass::InputImageConstPointer, TInputImage::RegionType::IndexType dimensionMask); 00095 estimateType* estimateAngle(typename Superclass::InputImageConstPointer); 00096 double estimateShift(typename Superclass::InputImageConstPointer); 00101 void GenerateData(void); 00102 00103 private: 00104 MidsagittalPlaneExtractionImageFilter(const Self&); //purposely not implemented 00105 void operator=(const Self&); //purposely not implemented 00106 00107 unsigned int m_Direction; 00108 00109 }; 00110 00111 } // end namespace itk 00112 00113 #ifndef ITK_MANUAL_INSTANTIATION 00114 #include "itkMidsagittalPlaneExtractionImageFilter.txx" 00115 #endif 00116 00117 #endif

Generated at Sat Mar 31 02:24:33 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000