DGtal 1.3.0
|
Aim: implements a factory to produce images from a "bigger/original" one according to a given domain. More...
#include <DGtal/images/ImageFactoryFromImage.h>
Public Types | |
typedef ImageFactoryFromImage< TImageContainer > | Self |
typedef TImageContainer | ImageContainer |
Types copied from the container. More... | |
typedef ImageContainer::Domain | Domain |
typedef ImageContainer | OutputImage |
New types. More... | |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CImage< TImageContainer >)) | |
Checking concepts. More... | |
ImageFactoryFromImage (Alias< ImageContainer > anImage) | |
~ImageFactoryFromImage () | |
const Domain & | domain () const |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
OutputImage * | requestImage (const Domain &aDomain) |
void | flushImage (OutputImage *outputImage) |
void | detachImage (OutputImage *outputImage) |
Protected Attributes | |
ImageContainer * | myImagePtr |
Alias on the image container. More... | |
Private Member Functions | |
ImageFactoryFromImage (const ImageFactoryFromImage &other) | |
ImageFactoryFromImage & | operator= (const ImageFactoryFromImage &other) |
Aim: implements a factory to produce images from a "bigger/original" one according to a given domain.
Description of template class 'ImageFactoryFromImage'
TImageContainer | an image container type (model of CImage). |
The factory images production (images are copied, so it's a creation process) is done with the function 'requestImage' so the deletion must be done with the function 'detachImage'.
The update of the original image is done with the function 'flushImage'.
Definition at line 66 of file ImageFactoryFromImage.h.
typedef ImageContainer::Domain DGtal::ImageFactoryFromImage< TImageContainer >::Domain |
Definition at line 79 of file ImageFactoryFromImage.h.
typedef TImageContainer DGtal::ImageFactoryFromImage< TImageContainer >::ImageContainer |
Types copied from the container.
Definition at line 78 of file ImageFactoryFromImage.h.
typedef ImageContainer DGtal::ImageFactoryFromImage< TImageContainer >::OutputImage |
New types.
Definition at line 82 of file ImageFactoryFromImage.h.
typedef ImageFactoryFromImage<TImageContainer> DGtal::ImageFactoryFromImage< TImageContainer >::Self |
Definition at line 72 of file ImageFactoryFromImage.h.
|
inline |
Constructor.
anImage | alias on the underlying image container. |
Definition at line 92 of file ImageFactoryFromImage.h.
|
inline |
|
private |
DGtal::ImageFactoryFromImage< TImageContainer >::BOOST_CONCEPT_ASSERT | ( | (concepts::CImage< TImageContainer >) | ) |
Checking concepts.
|
inline |
Free (i.e. delete) an OutputImage.
outputImage | the OutputImage. |
Definition at line 185 of file ImageFactoryFromImage.h.
|
inline |
Returns a reference to the underlying image domain.
Definition at line 119 of file ImageFactoryFromImage.h.
References DGtal::ImageContainerBySTLVector< TDomain, TValue >::domain(), and DGtal::ImageFactoryFromImage< TImageContainer >::myImagePtr.
|
inline |
Flush (i.e. write/synchronize) an OutputImage.
outputImage | the OutputImage. |
Definition at line 170 of file ImageFactoryFromImage.h.
References DGtal::ImageContainerBySTLVector< TDomain, TValue >::domain(), DGtal::ImageFactoryFromImage< TImageContainer >::myImagePtr, and DGtal::ImageContainerBySTLVector< TDomain, TValue >::setValue().
|
inline |
Checks the validity/consistency of the object.
Definition at line 139 of file ImageFactoryFromImage.h.
References DGtal::ImageContainerBySTLVector< TDomain, TValue >::isValid(), and DGtal::ImageFactoryFromImage< TImageContainer >::myImagePtr.
|
private |
|
inline |
Returns a pointer of an OutputImage created with the Domain aDomain.
aDomain | the domain. |
Definition at line 151 of file ImageFactoryFromImage.h.
References DGtal::ImageContainerBySTLVector< TDomain, TValue >::domain(), DGtal::ImageFactoryFromImage< TImageContainer >::myImagePtr, and DGtal::ImageContainerBySTLVector< TDomain, TValue >::setValue().
void DGtal::ImageFactoryFromImage< TImageContainer >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
|
protected |
Alias on the image container.
Default constructor.
Definition at line 201 of file ImageFactoryFromImage.h.
Referenced by DGtal::ImageFactoryFromImage< TImageContainer >::domain(), DGtal::ImageFactoryFromImage< TImageContainer >::flushImage(), DGtal::ImageFactoryFromImage< TImageContainer >::isValid(), and DGtal::ImageFactoryFromImage< TImageContainer >::requestImage().