|
DGtal
0.6.devel
|
#include <Image.h>

Public Types | |
| typedef TImageContainer | ImageContainer |
| typedef TImageContainer::Domain | Domain |
| typedef TImageContainer::Point | Point |
| typedef TImageContainer::Value | Value |
| typedef TImageContainer::ConstRange | ConstRange |
| typedef TImageContainer::Range | Range |
| typedef TImageContainer::OutputIterator | OutputIterator |
| typedef CowPtr< TImageContainer > | ImagePointer |
Public Member Functions | |
| BOOST_CONCEPT_ASSERT ((CImage< TImageContainer >)) | |
| BOOST_CONCEPT_ASSERT ((CVertexMap< TImageContainer >)) | |
| Image () | |
| Image (ImageContainer *anImageContainer) | |
| Image (const CowPtr< ImageContainer > &anImageContainerCowPointer) | |
| Image (const ImageContainer &other) | |
| Image (const Image &other) | |
| Image & | operator= (const Image &other) |
| ~Image () | |
| const Domain & | domain () const |
| ConstRange | constRange () const |
| Range | range () |
| Value | operator() (const Point &aPoint) const |
| void | setValue (const Point &aPoint, const Value &aValue) |
| void | selfDisplay (std::ostream &out) const |
| bool | isValid () const |
| const ImagePointer | getPointer () const |
Protected Attributes | |
| ImagePointer | myImagePointer |
Aim: implements association bewteen points lying in a digital domain and values.
Description of template class 'Image'
This class is a lightweight proxy on ImageContainers (models of CImage). Image class is also a model of CImage.
| TImageContainer | an image container type (model of CImage). |
| typedef TImageContainer::ConstRange DGtal::Image< TImageContainer >::ConstRange |
| typedef TImageContainer::Domain DGtal::Image< TImageContainer >::Domain |
| typedef TImageContainer DGtal::Image< TImageContainer >::ImageContainer |
| typedef CowPtr<TImageContainer> DGtal::Image< TImageContainer >::ImagePointer |
| typedef TImageContainer::OutputIterator DGtal::Image< TImageContainer >::OutputIterator |
| typedef TImageContainer::Point DGtal::Image< TImageContainer >::Point |
| typedef TImageContainer::Range DGtal::Image< TImageContainer >::Range |
| typedef TImageContainer::Value DGtal::Image< TImageContainer >::Value |
|
inline |
Default constructor.
Definition at line 99 of file Image.h.
References DGtal::trace, and DGtal::Trace::warning().
|
inline |
Constructor from a pointer on the underlying image container. (data pointer is acquired, ownership transfer)
Definition at line 110 of file Image.h.
References DGtal::trace, and DGtal::Trace::warning().
|
inline |
Constructor from Copy on write pointer. (data is not copied if read-only)
| anImageContainerCowPointer | a COW-pointer on the underlying container. |
Definition at line 123 of file Image.h.
References DGtal::trace, and DGtal::Trace::warning().
|
inline |
Constructor from ImageContainer const reference (data is duplicated).
| other | an object of same type to copy. |
Definition at line 136 of file Image.h.
References DGtal::trace, and DGtal::Trace::warning().
|
inline |
Copy Constructor (data is not copied here).
| other | an object of same type to copy. |
Definition at line 150 of file Image.h.
References DGtal::trace, and DGtal::Trace::warning().
|
inline |
| DGtal::Image< TImageContainer >::BOOST_CONCEPT_ASSERT | ( | (CImage< TImageContainer >) | ) |
Checking concepts.
| DGtal::Image< TImageContainer >::BOOST_CONCEPT_ASSERT | ( | (CVertexMap< TImageContainer >) | ) |
|
inline |
Returns the range of the underlying image to iterate over its values
Definition at line 203 of file Image.h.
References DGtal::Image< TImageContainer >::myImagePointer.
|
inline |
Returns a reference to the underlying image domain.
Definition at line 192 of file Image.h.
References DGtal::Image< TImageContainer >::myImagePointer.
Referenced by DGtal::SetFromImage< TSet >::append(), and DGtal::Display2DFactory::drawImage().
|
inline |
Returns the smart pointer on the Image container data.
Definition at line 279 of file Image.h.
References DGtal::Image< TImageContainer >::myImagePointer.
|
inline |
Checks the validity/consistency of the object.
Definition at line 269 of file Image.h.
References DGtal::CowPtr< T >::isValid(), and DGtal::Image< TImageContainer >::myImagePointer.
|
inline |
Get the value of an image at a given position given by a Point.
| aPoint | the point. |
Definition at line 231 of file Image.h.
References DGtal::Image< TImageContainer >::myImagePointer.
|
inline |
Assignment.
| other | the object to copy. |
Definition at line 163 of file Image.h.
References DGtal::Image< TImageContainer >::myImagePointer, DGtal::trace, and DGtal::Trace::warning().
|
inline |
Returns the range of the underlying image to iterate over its values
Definition at line 214 of file Image.h.
References DGtal::Image< TImageContainer >::myImagePointer.
|
inline |
Writes/Displays the object on an output stream.
| out | the output stream where the object is written. |
|
inline |
Set a value on an Image at a position specified by a Point.
it must be a point in the image domain.| aPoint | the point. |
| aValue | the value. |
Definition at line 247 of file Image.h.
References DGtal::Image< TImageContainer >::myImagePointer.
|
protected |
Owning smart pointer on the image container.
Definition at line 290 of file Image.h.
Referenced by DGtal::Image< TImageContainer >::constRange(), DGtal::Image< TImageContainer >::domain(), DGtal::Image< TImageContainer >::getPointer(), DGtal::Image< TImageContainer >::isValid(), DGtal::Image< TImageContainer >::operator()(), DGtal::Image< TImageContainer >::operator=(), DGtal::Image< TImageContainer >::range(), and DGtal::Image< TImageContainer >::setValue().
1.8.1.1