33 #if defined(ImageContainerByITKImage_RECURSES)
34 #error Recursive header files inclusion detected in ImageContainerByITKImage.h
35 #else // defined(ImageContainerByITKImage_RECURSES)
37 #define ImageContainerByITKImage_RECURSES
39 #if !defined ImageContainerByITKImage_h
41 #define ImageContainerByITKImage_h
45 #include "DGtal/base/Common.h"
46 #include "DGtal/base/CLabel.h"
47 #include "DGtal/kernel/domains/CDomain.h"
48 #include "DGtal/kernel/domains/CDomain.h"
49 #include "DGtal/kernel/PointVector.h"
50 #include "DGtal/images/DefaultConstImageRange.h"
51 #include "DGtal/images/DefaultImageRange.h"
54 #pragma GCC diagnostic push
55 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
56 #pragma GCC diagnostic ignored "-Wpedantic"
58 #if defined(__clang__)
59 #pragma clang diagnostic push
60 #pragma clang diagnostic ignored "-Wdocumentation"
63 #include <itkImageRegionConstIterator.h>
64 #include <itkImageRegionIterator.h>
66 #if defined(__clang__)
67 #pragma clang diagnostic pop
70 #pragma GCC diagnostic pop
92 template <
typename TDomain,
typename TValue>
117 typedef typename itk::Image< TValue, dimension>
ITKImage;
123 typedef typename itk::ImageRegionIterator< ITKImage >
Iterator;
451 template <
typename T,
typename TV>
458 #include "DGtal/images/ImageContainerByITKImage.ih"
463 #endif // !defined ImageContainerByITKImage_h
465 #undef ImageContainerByITKImage_RECURSES
466 #endif // else defined(ImageContainerByITKImage_RECURSES)
ImageContainerByITKImage< TDomain, TValue > Self
void selfDisplay(std::ostream &out) const
MyDigitalSurface::ConstIterator ConstIterator
Space::Dimension Dimension
PhysicalPoint getUpperBoundAsPhysicalPoint() const
const Point & getDomainShift() const
Point getDomainPointFromIndex(const Point &indexPoint) const
void updateDomain(const Point &inputDomainShift=Point())
Point getDomainPointFromItkIndex(const typename ITKImage::IndexType &itkIndexPoint) const
Aim: implements a model of CImageContainer using a ITK Image.
ITKImage::PixelContainer Container
ITKImagePointer myITKImagePointer
ITKImagePointer getITKImagePointer() const
ImageContainerByITKImage & operator=(const ImageContainerByITKImage &other)
ITKImage::Pointer ITKImagePointer
void setImageSpacing(const ImageSpacing &s) const
ConstRange constRange() const
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)
Aim: model of CConstBidirectionalRangeFromPoint that adapts the domain of an image in order to iterat...
Aim: model of CConstBidirectionalRangeFromPoint and CBidirectionalRangeWithWritableIteratorFromPoint ...
void setValue(const Point &domainPoint, const Value &aValue)
Aim: This concept represents a digital domain, i.e. a non mutable subset of points of the given digit...
ConstIterator begin() const
DGtal is the top-level namespace which contains all DGtal functions and types.
PointVector< dimension, double > RealPoint
DefaultImageRange< Self > Range
ImageSpacing getImageSpacing() const
ImageContainerByITKImage()
const Container & container() const
~ImageContainerByITKImage()
BOOST_CONCEPT_ASSERT((concepts::CLabel< TValue >))
static const Domain::Dimension dimension
itk::ImageRegionConstIterator< ITKImage > ConstIterator
Point getDomainPointFromPhysicalPoint(const PhysicalPoint &physicalPoint) const
Aim: Define the concept of DGtal labels. Models of CLabel can be default-constructible,...
DefaultConstImageRange< Self > ConstRange
itk::Image< TValue, dimension > ITKImage
Value operator()(const Point &domainPoint) const
ITKImage::IndexType getItkIndexFromDomainPoint(const Point &domainPoint) const
const ConstIterator end() const
itk::ImageRegionIterator< ITKImage > Iterator
Domain::Dimension Dimension
PhysicalPoint getLowerBoundAsPhysicalPoint() const
const Domain & domain() const
itk::ImageBase< dimension >::SpacingValueType ITKSpacingValueType
Point getIndexFromDomainPoint(const Point &domainPoint) const
PhysicalPoint getPhysicalPointFromDomainPoint(const Point &domainPoint) const