DGtalTools  1.5.beta
Public Types | Public Member Functions | Data Fields
ImageShape< ImageType > Struct Template Reference

#include <estimators/volSurfaceRegularization-details/shape.h>

Public Types

typedef ImageType::Point Point
 
typedef Eigen::Vector3d Vector
 
typedef Eigen::Matrix3d Matrix
 

Public Member Functions

 ImageShape (const ImageType *image_, const Point &shift_)
 
bool operator() (const Point &point_) const
 

Data Fields

const ImageType * image
 
Point shift
 

Detailed Description

template<typename ImageType>
struct ImageShape< ImageType >

Definition at line 104 of file shape.h.

Member Typedef Documentation

◆ Matrix

template<typename ImageType >
typedef Eigen::Matrix3d ImageShape< ImageType >::Matrix

Definition at line 108 of file shape.h.

◆ Point

template<typename ImageType >
typedef ImageType::Point ImageShape< ImageType >::Point

Definition at line 106 of file shape.h.

◆ Vector

template<typename ImageType >
typedef Eigen::Vector3d ImageShape< ImageType >::Vector

Definition at line 107 of file shape.h.

Constructor & Destructor Documentation

◆ ImageShape()

template<typename ImageType >
ImageShape< ImageType >::ImageShape ( const ImageType *  image_,
const Point shift_ 
)
inline

Definition at line 110 of file shape.h.

110  : image(image_), shift(shift_)
111  {
112  ASSERT( image );
113  }
const ImageType * image
Definition: shape.h:122
Point shift
Definition: shape.h:123

References ImageShape< ImageType >::image.

Member Function Documentation

◆ operator()()

template<typename ImageType >
bool ImageShape< ImageType >::operator() ( const Point point_) const
inline

Definition at line 115 of file shape.h.

116  {
117  const Point point = point_+shift;
118  if (!image->domain().isInside(point)) return false;
119  return (*image)(point) > 0;
120  }
typename Self::Point Point

References ImageShape< ImageType >::image, and ImageShape< ImageType >::shift.

Field Documentation

◆ image

template<typename ImageType >
const ImageType* ImageShape< ImageType >::image

◆ shift

template<typename ImageType >
Point ImageShape< ImageType >::shift

Definition at line 123 of file shape.h.

Referenced by ImageShape< ImageType >::operator()().


The documentation for this struct was generated from the following file: