31 #if defined(ImageFactoryFromImage_RECURSES)
32 #error Recursive header files inclusion detected in ImageFactoryFromImage.h
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>
157 for (; it != it_end; ++it)
174 for (; it != it_end; ++it)
215 template <
typename TImageContainer>
224 #include "DGtal/images/ImageFactoryFromImage.ih"
231 #undef ImageFactoryFromImage_RECURSES
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Iterator for HyperRectDomain.
const Domain & domain() const
void setValue(const Point &aPoint, const Value &aValue)
Aim: implements a factory to produce images from a "bigger/original" one according to a given domain.
ImageFactoryFromImage & operator=(const ImageFactoryFromImage &other)
TImageContainer ImageContainer
Types copied from the container.
ImageFactoryFromImage(const ImageFactoryFromImage &other)
OutputImage * requestImage(const Domain &aDomain)
void selfDisplay(std::ostream &out) const
ImageContainer::Domain Domain
void detachImage(OutputImage *outputImage)
ImageContainer * myImagePtr
Alias on the image container.
ImageFactoryFromImage(Alias< ImageContainer > anImage)
ImageContainer OutputImage
New types.
BOOST_CONCEPT_ASSERT((concepts::CImage< TImageContainer >))
Checking concepts.
const Domain & domain() const
ImageFactoryFromImage< TImageContainer > Self
void flushImage(OutputImage *outputImage)
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)
Aim: Defines the concept describing a read/write image, having an output iterator.
ImageContainerBySTLVector< HyperRectDomain< Z2i::Space >, std::unordered_set< Z2i::Point > > TImageContainer