uLib-0.2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
uLib::VoxImage< T > Class Template Reference

#include <Math/VoxImage.h>

Inheritance diagram for uLib::VoxImage< T >:
uLib::Abstract::VoxImage uLib::StructuredGrid uLib::ContainerBox uLib::StructuredData uLib::AffineTransform

Public Types

typedef Abstract::VoxImage BaseClass
 
- Public Types inherited from uLib::Abstract::VoxImage
typedef uLib::StructuredGrid BaseClass
 
- Public Types inherited from uLib::StructuredData
enum  _Order {
  CustomOrder = 0, XYZ = 0 | 1 << 2 | 2 << 4, XZY = 0 | 2 << 2 | 1 << 4, YXZ = 1 | 0 << 2 | 2 << 4,
  YZX = 2 | 0 << 2 | 1 << 4, ZXY = 1 | 2 << 2 | 0 << 4, ZYX = 2 | 1 << 2 | 0 << 4
}
 
typedef enum _Order Order
 

Public Member Functions

 VoxImage ()
 
 VoxImage (const Vector3i &size)
 
 VoxImage (const VoxImage< T > &copy)
 
std::vector< T > & Data ()
 
const std::vector< T > & ConstData () const
 
const T & At (int i) const
 
const T & At (const Vector3i &id) const
 
T & operator[] (unsigned int i)
 
T & operator[] (const Vector3i &id)
 
Scalarf GetValue (const Vector3i &id) const
 
Scalarf GetValue (const int id) const
 
void SetValue (const Vector3i &id, Scalarf value)
 
void SetValue (const int id, float value)
 
void SetDims (const Vector3i &size)
 
VoxImage< T > clipImage (const Vector3i begin, const Vector3i end) const
 
VoxImage< T > clipImage (const HPoint3f begin, const HPoint3f end) const
 
VoxImage< T > clipImage (const float density) const
 
VoxImage< T > clipImage (const float densityMin, const float densityMax) const
 
VoxImage< T > maskImage (const HPoint3f begin, const HPoint3f end, float value) const
 
VoxImage< T > maskImage (const float threshold, float belowValue=0, float aboveValue=0) const
 
VoxImage< T > fixVoxels (const float threshold, float tolerance) const
 
VoxImage< T > fixVoxels (const float threshold, float tolerance, const HPoint3f begin, const HPoint3f end) const
 
VoxImage< T > fixVoxelsAroundPlane (const float threshold, float tolerance, const HPoint3f begin, const HPoint3f end, bool aboveAir) const
 
VoxImage< T > fixVoxels (const HPoint3f begin, const HPoint3f end) const
 
VoxImage< T > Abs () const
 
void SelectScalarfComponent (T &element, Scalarf *scalar)
 
void InitVoxels (T t)
 
void operator*= (Scalarf scalar)
 
void operator+= (Scalarf scalar)
 
void operator/= (Scalarf scalar)
 
void operator-= (Scalarf scalar)
 
template<typename S >
void operator+= (VoxImage< S > &sibling)
 
template<typename S >
void operator-= (VoxImage< S > &sibling)
 
template<typename S >
void operator*= (VoxImage< S > &sibling)
 
template<typename S >
void operator/= (VoxImage< S > &sibling)
 
- Public Member Functions inherited from uLib::Abstract::VoxImage
void ExportToVtk (const char *file, bool density_type=0)
 
void ExportToVtkXml (const char *file, bool density_type=0)
 
int ImportFromVtk (const char *file)
 
- Public Member Functions inherited from uLib::StructuredGrid
 StructuredGrid (const Vector3i &size)
 
void SetSpacing (const Vector3f &spacing)
 
Vector3f GetSpacing () const
 
bool IsInsideBounds (const Vector4f &pt) const
 
Vector3i Find (const HPoint3f &pt) const
 
void PrintSelf (std::ostream &o)
 
- Public Member Functions inherited from uLib::ContainerBox
 ContainerBox ()
 
 ContainerBox (const ContainerBox &copy)
 
void SetOrigin (const Vector3f &v)
 
Vector3f GetOrigin () const
 
void SetSize (const Vector3f &v)
 
Vector3f GetSize () const
 
void FlipLocalAxes (int first, int second)
 
Matrix4f GetWorldMatrix () const
 
Vector4f GetWorldPoint (const Vector4f &v) const
 
Vector4f GetWorldPoint (const float x, const float y, const float z)
 
Vector4f GetLocalPoint (const Vector4f &v) const
 
Vector4f GetLocalPoint (const float x, const float y, const float z)
 
- Public Member Functions inherited from uLib::AffineTransform
 AffineTransform ()
 
 AffineTransform (AffineTransform *parent)
 
 AffineTransform (const AffineTransform &copy)
 
Eigen::Affine3f & GetTransform ()
 
AffineTransformGetParent () const
 
void SetParent (AffineTransform *name)
 
void SetMatrix (Matrix4f &mat)
 
Matrix4fGetMatrix ()
 
Matrix4f GetWorldMatrix () const
 
void SetPosition (const Vector3f &v)
 
Vector3f GetPosition () const
 
void SetRotation (const Matrix3f &m)
 
Matrix3f GetRotation () const
 
void Translate (const Vector3f &v)
 
void Scale (const Vector3f &v)
 
Vector3f GetScale () const
 
void Rotate (const Matrix3f &m)
 
void PreRotate (const Matrix3f &m)
 
void QuaternionRotate (const Vector4f &q)
 
void EulerYZYRotate (const Vector3f &e)
 
void FlipAxes (int first, int second)
 
- Public Member Functions inherited from uLib::StructuredData
 StructuredData (const Vector3i &size)
 
 StructuredData (const StructuredData &copy)
 
Vector3i GetDims () const
 
void SetDims (const Vector3i &size)
 
Vector3i GetIncrements () const
 
void SetIncrements (Vector3i name)
 
void SetDataOrder (Order order=YXZ)
 
Order GetDataOrder () const
 
bool IsInsideGrid (const Vector3i &v) const
 
int Map (Vector3i index) const
 
Vector3i UnMap (int index) const
 

Additional Inherited Members

- Protected Member Functions inherited from uLib::Abstract::VoxImage
virtual ~VoxImage ()
 
 VoxImage (const Vector3i &size)
 
- Protected Attributes inherited from uLib::AffineTransform
Eigen::Affine3f m_T
 
AffineTransformm_Parent
 

Member Typedef Documentation

template<typename T>
typedef Abstract::VoxImage uLib::VoxImage< T >::BaseClass

Constructor & Destructor Documentation

template<typename T >
uLib::VoxImage< T >::VoxImage ( )
template<typename T >
uLib::VoxImage< T >::VoxImage ( const Vector3i size)
template<typename T>
uLib::VoxImage< T >::VoxImage ( const VoxImage< T > &  copy)
inline

Member Function Documentation

template<typename T>
const T& uLib::VoxImage< T >::At ( int  i) const
inline
template<typename T>
const T& uLib::VoxImage< T >::At ( const Vector3i id) const
inline
template<typename T >
VoxImage< T > uLib::VoxImage< T >::clipImage ( const Vector3i  begin,
const Vector3i  end 
) const
inline
template<typename T >
VoxImage< T > uLib::VoxImage< T >::clipImage ( const HPoint3f  begin,
const HPoint3f  end 
) const
inline
template<typename T >
VoxImage< T > uLib::VoxImage< T >::clipImage ( const float  density) const
inline
template<typename T >
VoxImage< T > uLib::VoxImage< T >::clipImage ( const float  densityMin,
const float  densityMax 
) const
inline
template<typename T>
const std::vector<T>& uLib::VoxImage< T >::ConstData ( ) const
inline
template<typename T>
std::vector<T>& uLib::VoxImage< T >::Data ( )
inline
template<typename T >
VoxImage< T > uLib::VoxImage< T >::fixVoxels ( const float  threshold,
float  tolerance 
) const
inline
template<typename T >
VoxImage< T > uLib::VoxImage< T >::fixVoxels ( const float  threshold,
float  tolerance,
const HPoint3f  begin,
const HPoint3f  end 
) const
inline
template<typename T >
VoxImage< T > uLib::VoxImage< T >::fixVoxels ( const HPoint3f  begin,
const HPoint3f  end 
) const
inline
template<typename T >
VoxImage< T > uLib::VoxImage< T >::fixVoxelsAroundPlane ( const float  threshold,
float  tolerance,
const HPoint3f  begin,
const HPoint3f  end,
bool  aboveAir 
) const
inline
template<typename T>
Scalarf uLib::VoxImage< T >::GetValue ( const Vector3i id) const
inlinevirtual
template<typename T>
Scalarf uLib::VoxImage< T >::GetValue ( const int  id) const
inlinevirtual
template<typename T>
void uLib::VoxImage< T >::InitVoxels ( t)
inline
template<typename T >
VoxImage< T > uLib::VoxImage< T >::maskImage ( const HPoint3f  begin,
const HPoint3f  end,
float  value 
) const
inline
template<typename T >
VoxImage< T > uLib::VoxImage< T >::maskImage ( const float  threshold,
float  belowValue = 0,
float  aboveValue = 0 
) const
inline
template<typename T>
void uLib::VoxImage< T >::operator*= ( Scalarf  scalar)
inline
template<typename T>
template<typename S >
void uLib::VoxImage< T >::operator*= ( VoxImage< S > &  sibling)
inline
template<typename T>
void uLib::VoxImage< T >::operator+= ( Scalarf  scalar)
inline
template<typename T>
template<typename S >
void uLib::VoxImage< T >::operator+= ( VoxImage< S > &  sibling)
inline
template<typename T>
void uLib::VoxImage< T >::operator-= ( Scalarf  scalar)
inline
template<typename T>
template<typename S >
void uLib::VoxImage< T >::operator-= ( VoxImage< S > &  sibling)
inline
template<typename T>
void uLib::VoxImage< T >::operator/= ( Scalarf  scalar)
inline
template<typename T>
template<typename S >
void uLib::VoxImage< T >::operator/= ( VoxImage< S > &  sibling)
inline
template<typename T>
T& uLib::VoxImage< T >::operator[] ( unsigned int  i)
inline
template<typename T>
T& uLib::VoxImage< T >::operator[] ( const Vector3i id)
inline
template<typename T>
void uLib::VoxImage< T >::SelectScalarfComponent ( T &  element,
Scalarf scalar 
)
inline
template<typename T>
void uLib::VoxImage< T >::SetValue ( const Vector3i id,
Scalarf  value 
)
inlinevirtual
template<typename T>
void uLib::VoxImage< T >::SetValue ( const int  id,
float  value 
)
inlinevirtual

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