31 #if defined(ImageFactoryFromImage_RECURSES) 32 #error Recursive header files inclusion detected in ImageFactoryFromImage.h 33 #else // defined(ImageFactoryFromImage_RECURSES) 35 #define ImageFactoryFromImage_RECURSES 37 #if !defined ImageFactoryFromImage_h 39 #define ImageFactoryFromImage_h 44 #include "DGtal/base/Common.h" 45 #include "DGtal/base/ConceptUtils.h" 46 #include "DGtal/images/CImage.h" 47 #include "DGtal/base/Alias.h" 65 template <
typename TImageContainer>
153 OutputImage* outputImage =
new OutputImage(aDomain);
157 for (; it != it_end; ++it)
159 outputImage->setValue(*it, (*
myImagePtr)(*it));
174 for (; it != it_end; ++it)
176 myImagePtr->setValue(*it, (*outputImage)(*it));
215 template <
typename TImageContainer>
217 operator<< ( std::ostream & out, const ImageFactoryFromImage<TImageContainer> & object );
224 #include "DGtal/images/ImageFactoryFromImage.ih" 229 #endif // !defined ImageFactoryFromImage_h 231 #undef ImageFactoryFromImage_RECURSES 232 #endif // else defined(ImageFactoryFromImage_RECURSES) HyperRectDomain< Space > Domain
void flushImage(OutputImage *outputImage)
OutputImage * requestImage(const Domain &aDomain)
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
ImageContainer::Domain Domain
ImageFactoryFromImage & operator=(const ImageFactoryFromImage &other)
Aim: implements a factory to produce images from a "bigger/original" one according to a given domain...
ImageFactoryFromImage< TImageContainer > Self
DGtal is the top-level namespace which contains all DGtal functions and types.
ImageContainer OutputImage
New types.
void detachImage(OutputImage *outputImage)
TImageContainer ImageContainer
Types copied from the container.
ImageFactoryFromImage(Alias< ImageContainer > anImage)
Aim: Defines the concept describing a read/write image, having an output iterator.
BOOST_CONCEPT_ASSERT((concepts::CImage< TImageContainer >))
Checking concepts.
ImageContainer * myImagePtr
Alias on the image container.
void selfDisplay(std::ostream &out) const
const Domain & domain() const