aimsalgo  5.1.2
Neuroimaging image processing
aims::CoordinatesFieldMeshInterpoler Class Reference

#include <aims/mesh/meshinterpoler.h>

Inheritance diagram for aims::CoordinatesFieldMeshInterpoler:
Collaboration diagram for aims::CoordinatesFieldMeshInterpoler:

Public Member Functions

 CoordinatesFieldMeshInterpoler (const AimsSurfaceTriangle &source, const AimsSurfaceTriangle &dest, const TimeTexture< float > &srccoord1, const TimeTexture< float > &srccoord2, const TimeTexture< float > &dstcoord1, const TimeTexture< float > &dstcoord2)
 
virtual ~CoordinatesFieldMeshInterpoler ()
 
- Public Member Functions inherited from aims::MeshInterpoler
 MeshInterpoler (const AimsSurfaceTriangle &source, const AimsSurfaceTriangle &dest)
 
 MeshInterpoler (const Point3df *sourceVert, const AimsVector< uint, 3 > *sourcePoly, uint nSourcePolygon, const Point3df *destVertex, const AimsVector< uint, 3 > *destPolygon, uint nDestVertex, uint nDestPolygon)
 This constructor is used when meshes are low-level raw arrays. More...
 
virtual ~MeshInterpoler ()
 
void setDiscontinuityThresholds (float xthresh, float ythresh, float zthresh)
 Discontinuities may occur in some meshes, on their vertices coordinates (especially when built from coordinates fields). More...
 
void project ()
 Main projection function. More...
 
AimsSurfaceTriangleresampleMesh (const AimsSurfaceTriangle &sourceshape) const
 Resample the sourceshape mesh onto the topology of the interpoler destination mesh, but staying in the native space of sourceshape. More...
 
template<typename T >
TimeTexture< T > * resampleTexture (const TimeTexture< T > &, InterpolationType=Linear) const
 
template<typename T >
void resampleTexture (const Texture< T > &source, Texture< T > &dest, int timestep=0, InterpolationType=Linear) const
 
template<typename T >
void resampleTexture (const T *source, T *dest, int timestep=0, InterpolationType=Linear) const
 low level texture resampling, working on preallocated buffers More...
 
const TimeTexture< uint > & projectedTriangles () const
 
const TimeTexture< float > & projectedTriCoord1 () const
 
const TimeTexture< float > & projectedTriCoord2 () const
 
const TimeTexture< float > & projectedTriCoord3 () const
 
void reloadProjectionParams (const TimeTexture< uint > &projTriangles, const TimeTexture< float > &projTriCoord1, const TimeTexture< float > &projTriCoord2, const TimeTexture< float > &projTriCoord3)
 set interpoler internal state (for instance to reload it after saving) More...
 
void setMeshes (const AimsSurfaceTriangle &source, const AimsSurfaceTriangle &dest)
 

Additional Inherited Members

- Public Types inherited from aims::MeshInterpoler
enum  InterpolationType { Linear , NearestNeighbour }
 
- Protected Member Functions inherited from aims::MeshInterpoler
 MeshInterpoler ()
 
void findNeighbours ()
 sub-step 1 of project(): calculates projectedTriangles More...
 
void processCoordinates ()
 sub-step 2 of project(): calculates projectedTriCoord* More...
 
void findNeighbours_timestep (const Point3df *sourceVert, const AimsVector< uint, 3 > *sourcePoly, uint nSourcePolygon, const Point3df *destVertex, uint nDestVertex, int timestep)
 
void processCoordinates_timestep (const Point3df *sourceVert, const AimsVector< uint, 3 > *sourcePoly, const Point3df *destVertex, uint nDestVertex, int timestep)
 

Detailed Description

Definition at line 145 of file meshinterpoler.h.

Constructor & Destructor Documentation

◆ CoordinatesFieldMeshInterpoler()

aims::CoordinatesFieldMeshInterpoler::CoordinatesFieldMeshInterpoler ( const AimsSurfaceTriangle source,
const AimsSurfaceTriangle dest,
const TimeTexture< float > &  srccoord1,
const TimeTexture< float > &  srccoord2,
const TimeTexture< float > &  dstcoord1,
const TimeTexture< float > &  dstcoord2 
)

◆ ~CoordinatesFieldMeshInterpoler()

virtual aims::CoordinatesFieldMeshInterpoler::~CoordinatesFieldMeshInterpoler ( )
virtual

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