18 #ifndef __itkImageToListSampleAdaptor_h
19 #define __itkImageToListSampleAdaptor_h
52 template<
class TImage >
54 public ListSample< typename MeasurementVectorPixelTraits< typename TImage::PixelType >::MeasurementVectorType >
103 void SetImage(
const TImage *image);
106 const TImage * GetImage()
const;
119 if( m_Image.IsNull() )
121 return Superclass::GetMeasurementVectorSize();
125 return m_Image->GetNumberOfComponentsPerPixel();
130 AbsoluteFrequencyType GetFrequency(InstanceIdentifier
id)
const;
133 TotalAbsoluteFrequencyType GetTotalFrequency()
const;
146 *
this = adaptor->
Begin();
170 return this->m_MeasurementVectorCache;
175 return m_InstanceIdentifier;
181 ++m_InstanceIdentifier;
187 return ( m_Iter != it.
m_Iter );
192 return ( m_Iter == it.
m_Iter );
202 m_InstanceIdentifier = iid;
230 this->ConstIterator::operator=(iter);
253 ImageIteratorType imageIterator( nonConstImage, nonConstImage->GetLargestPossibleRegion() );
264 ImageIteratorType imageIterator( nonConstImage, nonConstImage->GetLargestPossibleRegion() );
266 Iterator iter( imageIterator, m_Image->GetPixelContainer()->Size() );
288 ConstIterator iter( imageConstIterator, m_Image->GetPixelContainer()->Size() );
297 void PrintSelf(std::ostream & os,
Indent indent)
const;
301 void operator=(
const Self &);
310 #ifndef ITK_MANUAL_INSTANTIATION
311 #include "itkImageToListSampleAdaptor.hxx"