19 #include "itkImageRegionConstIterator.h"
21 #include "itkComposeImageFilter.h"
23 template<
typename TDataType,
int ImageDimension>
27 m_Collection(collection)
29 for(std::vector<std::string>::iterator featureNameIterator = featureNames.begin();
30 featureNameIterator != featureNames.end();
31 ++featureNameIterator)
34 m_FeatureIterators.push_back(featureIterator);
38 template<
typename TDataType,
int ImageDimension>
42 for(
typename DataCollectionSingleImageIterators::iterator it = m_FeatureIterators.begin();
43 it != m_FeatureIterators.end();
50 template<
typename TDataType,
int ImageDimension>
54 return m_FeatureIterators.at(0).IsAtEnd();
57 template<
typename TDataType,
int ImageDimension>
61 for(
typename DataCollectionSingleImageIterators::iterator it = m_FeatureIterators.begin();
62 it != m_FeatureIterators.end();
70 template<
typename TDataType,
int ImageDimension>
81 template<
typename TDataType,
int ImageDimension>
85 typedef typename itk::Image<TDataType, ImageDimension>
ImageType;
91 for (
unsigned i = 0; i < m_FeatureIterators.size(); i++)
93 composeImageFilter->SetInput(i, m_FeatureIterators.at(i).GetImage());
96 composeImageFilter->Update();
98 composeImageFilter->GetOutput()->SetRequestedRegionToLargestPossibleRegion();
100 return composeImageFilter->GetOutput();
103 template<
typename TDataType,
int ImageDimension>
108 m_FeatureIterators.at(m_FeatureIterators.size()-1).AddImage(image, name);
itk::SmartPointer< Self > Pointer
void AddImage(typename itk::Image< TDataType, ImageDimension >::Pointer image, std::string name)
DataCollectionVectorImageIterator & operator++()
map::core::discrete::Elements< 3 >::InternalImageType ImageType
VectorImagePointerType GetVectorImage()
DataCollectionVectorImageIterator(DataCollection::Pointer collection, std::vector< std::string > featureNames)
VectorImageType::Pointer VectorImagePointerType
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.