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

itkDefaultImageTraits.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkDefaultImageTraits.h,v $
00005   Language:  C++
00006   Date:      $Date: 2003/09/10 14:29:05 $
00007   Version:   $Revision: 1.8 $
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 __itkDefaultImageTraits_h
00018 #define __itkDefaultImageTraits_h
00019 
00020 #include "itkImageRegion.h"
00021 #include "itkValarrayImageContainer.h"
00022 
00023 namespace itk
00024 {
00025 
00026 
00033 template <typename TPixelType,
00034           unsigned int VImageDimension,
00035           typename TPixelContainer = ValarrayImageContainer<unsigned long, TPixelType> >
00036 class DefaultImageTraits
00037 {
00038 public:
00039 
00041   typedef TPixelType PixelType;
00042 
00044   itkStaticConstMacro(ImageDimension, unsigned int, VImageDimension);
00045 
00047   typedef TPixelContainer PixelContainer;
00048 
00050   typedef Index<VImageDimension>  IndexType;
00051 
00053   typedef Offset<VImageDimension>  OffsetType;
00054 
00056   typedef Size<VImageDimension>  SizeType;
00057 
00059   typedef ImageRegion<VImageDimension>  RegionType;
00060 };
00061 
00062 
00063 } // namespace itk
00064 
00065 #endif
00066 

Generated at Sun Sep 23 12:20:47 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000