DGtal
0.6.devel
|
#include <ImageContainerByITKImage.h>
Public Types | |
typedef TValue | Value |
typedef TDomain | Domain |
typedef Domain::Point | Point |
typedef Domain::Vector | Vector |
typedef Domain::Dimension | Dimension |
typedef Domain::Integer | Integer |
typedef Domain::Size | Size |
typedef Point | Vertex |
typedef itk::Image< TValue, dimension > | ITKImage |
typedef ITKImage::Pointer | ITKImagePointer |
typedef itk::ImageRegionConstIterator < ITKImage > | ConstIterator |
typedef itk::ImageRegionIterator < ITKImage > | Iterator |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((CLabel< TValue >)) | |
BOOST_CONCEPT_ASSERT ((CDomain< TDomain >)) | |
ImageContainerByITKImage (const Point &aPointA, const Point &aPointB) | |
ImageContainerByITKImage (const Point &aPointA, const Point &aPointB, ITKImagePointer &aRef) | |
~ImageContainerByITKImage () | |
Value | operator() (const Point &aPoint) const |
Value | operator() (const ConstIterator &it) const |
Value | operator() (const Iterator &it) const |
void | setValue (const Point &aPoint, const Value &aValue) |
void | setValue (Iterator &it, const Value &V) |
Domain | domain () const |
Point | extent () const |
ITKImagePointer | getImagePointer () const |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
ConstIterator | begin () const |
Iterator | begin () |
ConstIterator | begin (const Point &aPoint) const |
const ConstIterator | end () const |
Iterator | end () |
ConstIterator | end (const Point &aPoint) const |
Static Public Attributes | |
static const Domain::Dimension | dimension = Domain::dimension |
Protected Member Functions | |
ImageContainerByITKImage () |
Private Member Functions | |
ImageContainerByITKImage (const ImageContainerByITKImage &other) | |
ImageContainerByITKImage & | operator= (const ImageContainerByITKImage &other) |
Private Attributes | |
Point | myLowerBound |
Point | myUpperBound |
ITKImagePointer | myITKImagePointer |
ITKImage::RegionType | myRegion |
ConstIterator | myConstItBegin |
Iterator | myItBegin |
ConstIterator | myConstItEnd |
Iterator | myItEnd |
Aim: implements a model of CImageContainer using a ITK Image.
Description of template class 'ImageContainerByITKImage'
Using this container, you can switch from DGtal alogrithms to ITK processing pipeline.
Definition at line 71 of file ImageContainerByITKImage.h.
typedef itk::ImageRegionConstIterator< ITKImage > DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::ConstIterator |
Definition at line 94 of file ImageContainerByITKImage.h.
typedef Domain::Dimension DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::Dimension |
Definition at line 87 of file ImageContainerByITKImage.h.
typedef TDomain DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::Domain |
Definition at line 80 of file ImageContainerByITKImage.h.
typedef Domain::Integer DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::Integer |
Definition at line 88 of file ImageContainerByITKImage.h.
typedef itk::ImageRegionIterator< ITKImage > DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::Iterator |
Definition at line 95 of file ImageContainerByITKImage.h.
typedef itk::Image< TValue, dimension> DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::ITKImage |
Definition at line 92 of file ImageContainerByITKImage.h.
typedef ITKImage::Pointer DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::ITKImagePointer |
Definition at line 93 of file ImageContainerByITKImage.h.
typedef Domain::Point DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::Point |
Definition at line 85 of file ImageContainerByITKImage.h.
typedef Domain::Size DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::Size |
Definition at line 89 of file ImageContainerByITKImage.h.
typedef TValue DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::Value |
Definition at line 79 of file ImageContainerByITKImage.h.
typedef Domain::Vector DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::Vector |
Definition at line 86 of file ImageContainerByITKImage.h.
typedef Point DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::Vertex |
Definition at line 90 of file ImageContainerByITKImage.h.
|
inline |
Constructor.
aPointA | one of the image bound (lower or upper point). |
aPointB | one of the image bound (lower or upper point). |
Definition at line 57 of file ImageContainerByITKImage.ih.
References DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::dimension, DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myConstItBegin, DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myConstItEnd, DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myItBegin, DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myItEnd, DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myITKImagePointer, DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myLowerBound, DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myRegion, and DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myUpperBound.
|
inline |
Constructor.
aPointA | one of the image bound (lower or upper point). |
aPointB | one of the image bound (lower or upper point). |
aRef | a reference to an ITKImage |
Definition at line 104 of file ImageContainerByITKImage.ih.
References DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::dimension, DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myConstItBegin, DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myConstItEnd, DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myItBegin, DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myItEnd, DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myITKImagePointer, DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myLowerBound, DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myRegion, and DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myUpperBound.
|
inline |
|
protected |
Constructor. Forbidden by default (protected to avoid g++ warnings).
|
private |
Copy constructor.
other | the object to clone. Forbidden by default. |
|
inline |
begin() const iterator.
Definition at line 215 of file ImageContainerByITKImage.h.
References DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myConstItBegin.
|
inline |
begin() const iterator.
Definition at line 224 of file ImageContainerByITKImage.h.
References DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myItBegin.
ConstIterator DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::begin | ( | const Point & | aPoint | ) | const |
begin(aPoint) iterator. Returns an iterator starting at
aPoint |
DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::BOOST_CONCEPT_ASSERT | ( | (CLabel< TValue >) | ) |
DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::BOOST_CONCEPT_ASSERT | ( | (CDomain< TDomain >) | ) |
|
inline |
Definition at line 173 of file ImageContainerByITKImage.h.
References DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myLowerBound, and DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myUpperBound.
|
inline |
end() const iterator.
Definition at line 239 of file ImageContainerByITKImage.h.
References DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myConstItEnd.
|
inline |
end() iterator.
Definition at line 248 of file ImageContainerByITKImage.h.
References DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myItEnd.
ConstIterator DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::end | ( | const Point & | aPoint | ) | const |
|
inline |
Returns the extent of the image
Definition at line 182 of file ImageContainerByITKImage.h.
References DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myLowerBound, and DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myUpperBound.
|
inline |
Returns a copy of the itkImage smartPointer
Definition at line 191 of file ImageContainerByITKImage.h.
References DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::myITKImagePointer.
|
inline |
Checks the validity/consistency of the object.
Definition at line 238 of file ImageContainerByITKImage.ih.
|
inline |
Get the value of an image at a given position.
aPoint | position in the image. |
Definition at line 162 of file ImageContainerByITKImage.ih.
|
inline |
Get the value of an image at a given position.
it | position in the image. |
Get the value of an image at a given position.
aPoint | position in the image. |
Definition at line 179 of file ImageContainerByITKImage.ih.
|
inline |
Get the value of an image at a given position.
it | position in the image. |
Get the value of an image at a given position.
aPoint | position in the image. |
Definition at line 193 of file ImageContainerByITKImage.ih.
|
private |
Assignment.
other | the object to copy. |
|
inline |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
Definition at line 224 of file ImageContainerByITKImage.ih.
void DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::setValue | ( | const Point & | aPoint, |
const Value & | aValue | ||
) |
Set a value on an Image at aPoint.
aPoint | location of the point to associate with aValue. |
aValue | the value. |
void DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::setValue | ( | Iterator & | it, |
const Value & | V | ||
) |
Set a value on an Image at aPoint.
it | location of the point (Iterator) to associate with aValue. |
aValue | the value. |
|
static |
Definition at line 83 of file ImageContainerByITKImage.h.
Referenced by DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::ImageContainerByITKImage().
|
private |
Definition at line 296 of file ImageContainerByITKImage.h.
Referenced by DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::begin(), and DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::ImageContainerByITKImage().
|
private |
Definition at line 298 of file ImageContainerByITKImage.h.
Referenced by DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::end(), and DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::ImageContainerByITKImage().
|
private |
Definition at line 297 of file ImageContainerByITKImage.h.
Referenced by DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::begin(), and DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::ImageContainerByITKImage().
|
private |
Definition at line 299 of file ImageContainerByITKImage.h.
Referenced by DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::end(), and DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::ImageContainerByITKImage().
|
private |
Definition at line 294 of file ImageContainerByITKImage.h.
Referenced by DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::getImagePointer(), and DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::ImageContainerByITKImage().
|
private |
Definition at line 292 of file ImageContainerByITKImage.h.
Referenced by DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::domain(), DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::extent(), and DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::ImageContainerByITKImage().
|
private |
Definition at line 295 of file ImageContainerByITKImage.h.
Referenced by DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::ImageContainerByITKImage().
|
private |
Definition at line 293 of file ImageContainerByITKImage.h.
Referenced by DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::domain(), DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::extent(), and DGtal::experimental::ImageContainerByITKImage< TDomain, TValue >::ImageContainerByITKImage().