ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
00001 /*========================================================================= 00002 * 00003 * Copyright Insight Software Consortium 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0.txt 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 *=========================================================================*/ 00018 #ifndef __itkNeighborhoodSampler_h 00019 #define __itkNeighborhoodSampler_h 00020 00021 #include "itkSampleToSubsampleFilter.h" 00022 #include "itkSimpleDataObjectDecorator.h" 00023 00024 namespace itk 00025 { 00026 namespace Statistics 00027 { 00043 template< class TSample > 00044 class ITK_EXPORT NeighborhoodSampler:public SampleToSubsampleFilter< TSample > 00045 { 00046 public: 00048 typedef NeighborhoodSampler Self; 00049 typedef SampleToSubsampleFilter< TSample > Superclass; 00050 typedef SmartPointer< Self > Pointer; 00051 typedef SmartPointer< const Self > ConstPointer; 00052 00054 itkTypeMacro(NeighborhoodSampler, SampleToSubsampleFilter); 00055 itkNewMacro(Self); 00057 00060 typedef typename Superclass::SampleType SampleType; 00061 typedef typename Superclass::MeasurementVectorType MeasurementVectorType; 00062 typedef typename Superclass::MeasurementType MeasurementType; 00063 typedef typename Superclass::InstanceIdentifier InstanceIdentifier; 00064 typedef typename Superclass::SubsampleType SubsampleType; 00065 typedef typename Superclass::OutputType OutputType; 00066 00068 typedef double RadiusType; 00069 00071 typedef SimpleDataObjectDecorator< RadiusType > InputRadiusObjectType; 00072 00074 itkSetGetDecoratedInputMacro(Radius, RadiusType); 00075 00076 protected: 00077 NeighborhoodSampler(); 00078 virtual ~NeighborhoodSampler(); 00079 void PrintSelf(std::ostream & os, Indent indent) const; 00080 00081 void GenerateData(); 00082 00083 private: 00084 NeighborhoodSampler(const Self &); //purposely not implemented 00085 void operator=(const Self &); //purposely not implemented 00086 }; // end of class 00087 } // end of namespace Statistics 00088 } // end of namespace itk 00089 00090 #ifndef ITK_MANUAL_INSTANTIATION 00091 #include "itkNeighborhoodSampler.hxx" 00092 #endif 00093 00094 #endif 00095