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

itkMRASlabIdentifier.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMRASlabIdentifier.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/03/26 13:40:42 $
00007   Version:   $Revision: 1.11 $
00008 
00009   Copyright (c) 2002 Insight 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 __itkMRASlabIdentifier_h
00018 #define __itkMRASlabIdentifier_h
00019 
00020 #include "itkObject.h"
00021 #include "itkImage.h"
00022 #include <vector>
00023 
00024 
00025 namespace itk
00026 {
00027 
00064 template <class TInputImage>            
00065 class ITK_EXPORT MRASlabIdentifier : public Object 
00066 {
00067 public:
00069   typedef MRASlabIdentifier      Self;
00070   typedef Object  Superclass;
00071   typedef SmartPointer<Self>   Pointer;
00072   typedef SmartPointer<const Self>  ConstPointer;
00073 
00075   itkNewMacro(Self);
00076 
00078   itkTypeMacro(Self, Object);
00079 
00081   typedef TInputImage  ImageType;
00082 
00084   typedef typename TInputImage::Pointer  ImagePointer;
00085   
00087   typedef typename TInputImage::ConstPointer ImageConstPointer;
00088 
00090   typedef typename TInputImage::PixelType ImagePixelType;
00091   typedef typename TInputImage::IndexType ImageIndexType;
00092   typedef typename TInputImage::SizeType ImageSizeType;
00093   typedef typename TInputImage::RegionType ImageRegionType ;
00094   typedef std::vector<ImageRegionType> SlabRegionVectorType ; 
00095 
00097   itkSetConstObjectMacro( Image, ImageType );
00098 
00100   itkSetMacro(NumberOfMinimumsPerSlice,int);
00101 
00103   itkGetMacro(NumberOfMinimumsPerSlice,int);
00104 
00107   itkSetMacro(SlicingDirection,int);
00108   itkGetMacro(SlicingDirection,int);
00109 
00112   void GenerateSlabRegions(void);
00113 
00115   SlabRegionVectorType GetSlabRegionVector(void) ;
00116 
00117 protected:
00118   MRASlabIdentifier() ;
00119   virtual ~MRASlabIdentifier() {} 
00120   void PrintSelf(std::ostream& os, Indent indent) const;
00121   
00122 private:
00123   MRASlabIdentifier(const Self&); //purposely not implemented
00124   void operator=(const Self&); //purposely not implemented
00125   
00127   ImageConstPointer m_Image ;
00128 
00131   int m_NumberOfMinimumsPerSlice ;
00132   
00133   int m_SlicingDirection ;
00134 
00135   SlabRegionVectorType m_Slabs ;
00136 };
00137 
00138 } // end namespace itk
00139 
00140 
00141 #ifndef ITK_MANUAL_INSTANTIATION
00142 #include "itkMRASlabIdentifier.txx"
00143 #endif
00144 
00145 #endif /* __itkMRASlabIdentifier_h */

Generated at Fri May 21 01:15:04 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000