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;
147 *
this = adaptor->
Begin();
171 return this->m_MeasurementVectorCache;
176 return m_InstanceIdentifier;
182 ++m_InstanceIdentifier;
188 return ( m_Iter != it.
m_Iter );
193 return ( m_Iter == it.
m_Iter );
203 m_InstanceIdentifier = iid;
233 this->ConstIterator::operator=(iter);
256 ImageIteratorType imageIterator( nonConstImage, nonConstImage->GetLargestPossibleRegion() );
267 ImageIteratorType imageIterator( nonConstImage, nonConstImage->GetLargestPossibleRegion() );
269 Iterator iter( imageIterator, m_Image->GetPixelContainer()->Size() );
291 ConstIterator iter( imageConstIterator, m_Image->GetPixelContainer()->Size() );
300 void PrintSelf(std::ostream & os,
Indent indent)
const;
304 void operator=(
const Self &);
313 #ifndef ITK_MANUAL_INSTANTIATION
314 #include "itkImageToListSampleAdaptor.hxx"