00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkCompletelyConnectedWeightSet.h,v $ 00005 Language: C++ 00006 Date: $Date: 2005/08/02 19:17:37 $ 00007 Version: $Revision: 1.1 $ 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 00018 #ifndef __itkCompletelyConnectedWeightSet_h 00019 #define __itkCompletelyConnectedWeightSet_h 00020 00021 #include "itkWeightSetBase.h" 00022 00023 namespace itk 00024 { 00025 namespace Statistics 00026 { 00027 template<class TVector, class TOutput> 00028 class CompletelyConnectedWeightSet : public WeightSetBase<TVector, TOutput> 00029 { 00030 public: 00031 00032 #define MAX_SIZE 1000 00033 00034 typedef CompletelyConnectedWeightSet Self; 00035 typedef WeightSetBase<TVector, TOutput> Superclass; 00036 typedef SmartPointer<Self> Pointer; 00037 typedef SmartPointer<const Self> ConstPointer; 00038 00039 itkTypeMacro(CompletelyConnectedWeightSet, WeightSetBase); 00040 itkNewMacro(Self); 00041 00042 void SetCompleteConnectivity(); 00043 00044 void SetRandomConnectivity(int[][MAX_SIZE]); 00045 00046 protected: 00047 00048 CompletelyConnectedWeightSet(); 00049 ~CompletelyConnectedWeightSet(){}; 00050 00052 virtual void PrintSelf( std::ostream& os, Indent indent ) const; 00053 00054 }; 00055 00056 } // end namespace Statistics 00057 } // end namespace itk 00058 00059 #ifndef ITK_MANUAL_INSTANTIATION 00060 #include "itkCompletelyConnectedWeightSet.txx" 00061 #endif 00062 00063 #endif 00064