18 #ifndef __itkImageToNeighborhoodSampleAdaptor_h
19 #define __itkImageToNeighborhoodSampleAdaptor_h
34 namespace Statistics {
51 template <
class TImage,
class TBoundaryCondition >
53 public ListSample< std::vector< ConstNeighborhoodIterator< TImage, TBoundaryCondition > > >
95 typedef typename std::vector< ConstNeighborhoodIterator< TImage, TBoundaryCondition > >
97 typedef typename MeasurementVectorType::value_type
ValueType;
106 void SetImage(
const TImage* image);
109 const TImage* GetImage()
const;
123 void SetUseImageRegion(
const bool& flag);
126 itkGetConstMacro( UseImageRegion,
bool );
129 itkBooleanMacro( UseImageRegion );
155 *
this = adaptor->
Begin();
178 return this->m_MeasurementVectorCache;
183 return m_InstanceIdentifier;
188 ++(m_MeasurementVectorCache[0]);
189 ++m_InstanceIdentifier;
209 this->m_MeasurementVectorCache.clear();
210 this->m_MeasurementVectorCache.push_back(iter);
211 m_InstanceIdentifier = iid;
243 this->ConstIterator::operator=( iter );
247 #if !(defined(_MSC_VER) && (_MSC_VER <= 1200))
278 Iterator iter(nIterator, m_Region.GetNumberOfPixels());
307 void PrintSelf(std::ostream& os,
Indent indent)
const;
311 void operator=(
const Self&);
326 template <
typename TImage,
typename TBoundaryCondition>
332 #ifndef ITK_MANUAL_INSTANTIATION
333 #include "itkImageToNeighborhoodSampleAdaptor.hxx"