00001 //============================================================================= 00002 // This file is part of VTKEdge. See vtkedge.org for more information. 00003 // 00004 // Copyright (c) 2010 Kitware, Inc. 00005 // 00006 // VTKEdge may be used under the terms of the BSD License 00007 // Please see the file Copyright.txt in the root directory of 00008 // VTKEdge for further information. 00009 // 00010 // Alternatively, you may see: 00011 // 00012 // http://www.vtkedge.org/vtkedge/project/license.html 00013 // 00014 // 00015 // For custom extensions, consulting services, or training for 00016 // this or any other Kitware supported open source project, please 00017 // contact Kitware at sales@kitware.com. 00018 // 00019 // 00020 //============================================================================= 00021 #ifndef _vtkKWEITKConfidenceConnectedFilterModule_h 00022 #define _vtkKWEITKConfidenceConnectedFilterModule_h 00023 00024 #include "itkConfidenceConnectedMiniPipelineFilter.h" 00025 #include "vtkKWEITKImageToStencilFilter.h" 00026 #include <vector> 00027 00028 namespace vtkitk 00029 { 00030 00031 template <class InputPixelType> 00032 class vtkKWEITKConfidenceConnectedImageFilter : public vtkKWEITKImageToStencilFilter 00033 { 00034 public: 00035 typedef vtkKWEITKConfidenceConnectedImageFilter Self; 00036 typedef vtkKWEITKImageToStencilFilter Superclass; 00037 typedef itk::SmartPointer< Self > Pointer; 00038 typedef itk::SmartPointer< const Self > ConstPointer; 00039 itkTypeMacro(vtkKWEITKConfidenceConnectedImageFilter, vtkKWEITKImageToStencilFilter); 00040 itkNewMacro(Self); 00041 00042 typedef itk::Image< InputPixelType, Dimension > InputImageType; 00043 typedef typename InputImageType::IndexType IndexType; 00044 typedef itk::ConfidenceConnectedMiniPipelineFilter< 00045 InputImageType, OutputImageType > FilterType; 00046 00047 virtual void AddSeed( int seed[3] ); 00048 00049 // No MTime checks etc.. will update every time.. 00050 virtual void Update(); 00051 00052 protected: 00053 vtkKWEITKConfidenceConnectedImageFilter(); 00054 ~vtkKWEITKConfidenceConnectedImageFilter(); 00055 }; 00056 00057 } // end namespace vtkitk 00058 00059 #ifndef ITK_MANUAL_INSTANTIATION 00060 #include "vtkKWEITKConfidenceConnectedImageFilter.txx" 00061 #endif 00062 00063 #endif 00064
1.7.1