Public Member Functions | Protected Member Functions | List of all members
mirtk::LinearFixedBoundarySurfaceMapper Class Referenceabstract

#include <LinearFixedBoundarySurfaceMapper.h>

Inheritance diagram for mirtk::LinearFixedBoundarySurfaceMapper:
Inheritance graph
Collaboration diagram for mirtk::LinearFixedBoundarySurfaceMapper:
Collaboration graph

Public Member Functions

virtual void ComputeMap ()=0
 Compute map values at interior points.
 
virtual void Finalize ()
 Assemble output surface map.
 
int FixedPointId (int i) const
 
int FixedPointIndex (int i) const
 
int FreePointId (int i) const
 
int FreePointIndex (int i) const
 
double GetFixedValue (int i, int j=0) const
 
double GetFreeValue (int i, int j=0) const
 
double GetValue (int i, int j=0) const
 
virtual void Initialize ()
 Initialize filter after input and parameters are set.
 
bool IsFixedPoint (int i) const
 Whether the map value of the specified surface point is fixed.
 
bool IsFreePoint (int i) const
 Whether the map value of the specified surface point is free.
 
int NumberOfFixedPoints () const
 Number of surface points with fixed map value.
 
int NumberOfFreePoints () const
 Number of surface points with free map value.
 
virtual ~LinearFixedBoundarySurfaceMapper ()
 Destructor.
 
- Public Member Functions inherited from mirtk::FixedBoundarySurfaceMapper
virtual ~FixedBoundarySurfaceMapper ()
 Destructor.
 
- Public Member Functions inherited from mirtk::SurfaceMapper
void Run ()
 Compute surface map.
 
virtual ~SurfaceMapper ()
 Destructor.
 
- Public Member Functions inherited from mirtk::Object
virtual const char * NameOfClass () const =0
 Get name of class, which this object is an instance of.
 
virtual ParameterList Parameter () const
 Get parameter name/value pairs.
 
bool Parameter (const ParameterList &)
 Set parameters from name/value pairs.
 
virtual bool Set (const char *name, const char *value)
 
virtual ~Object ()
 Destructor.
 

Protected Member Functions

 LinearFixedBoundarySurfaceMapper ()
 Default constructor.
 
 LinearFixedBoundarySurfaceMapper (const LinearFixedBoundarySurfaceMapper &)
 Copy constructor.
 
LinearFixedBoundarySurfaceMapperoperator= (const LinearFixedBoundarySurfaceMapper &)
 Assignment operator.
 
void SetFreeValue (int i, double v)
 
void SetFreeValue (int i, int j, double v)
 
void SetValue (int i, double v)
 
void SetValue (int i, int j, double v)
 
- Protected Member Functions inherited from mirtk::FixedBoundarySurfaceMapper
 FixedBoundarySurfaceMapper ()
 Default constructor.
 
 FixedBoundarySurfaceMapper (const FixedBoundarySurfaceMapper &)
 Copy constructor.
 
int NumberOfComponents () const
 Number of boundary/surface map components.
 
FixedBoundarySurfaceMapperoperator= (const FixedBoundarySurfaceMapper &)
 Assignment operator.
 
- Protected Member Functions inherited from mirtk::SurfaceMapper
int GetEdgeNeighborPoints (int i, int j, int &k, int &l) const
 
void GetPoint (int ptId, double p[3]) const
 
int NumberOfInteriorPoints () const
 Number of surface points minus the number of boundary points.
 
int NumberOfPoints () const
 Number of surface points.
 
SurfaceMapperoperator= (const SurfaceMapper &)
 Assignment operator.
 
class Point Point (int ptId) const
 
 SurfaceMapper ()
 Default constructor.
 
 SurfaceMapper (const SurfaceMapper &)
 Copy constructor.
 
- Protected Member Functions inherited from mirtk::Object
template<typename... Args>
void Throw (ErrorType err, const char *func, Args... args) const
 

Additional Inherited Members

- Static Public Member Functions inherited from mirtk::Object
static const char * NameOfType ()
 Get name of this class type.
 
- Static Protected Member Functions inherited from mirtk::Object
template<typename... Args>
static void ThrowStatic (ErrorType err, const char *cls, const char *func, Args... args)
 

Detailed Description

Base class of discrete piecewise linear fixed boundary surface mapping methods

For a given choice of edge weights, a sparse system of linear equations is solved iteratively to obtain a surface parameterization (Marchandise et al., 2014). Many published surface parameterization/texture mapping methods can be seen as spring and mass model, where the mesh vertices are the masses and the mesh edges are linear springs. The only difference between the different methods are the spring constants used, which result from a discretization/modeling of different map energies/properties.

Todo:
Implement interactive boundary map update as proposed in Desbrun et al. (2002). Intrinsic parameterizations of surface meshes.
Todo:
Implement boundary map optimization as proposed in Desbrun et al. (2002). Intrinsic parameterizations of surface meshes.

Definition at line 51 of file LinearFixedBoundarySurfaceMapper.h.

Member Function Documentation

§ FixedPointId()

int mirtk::LinearFixedBoundarySurfaceMapper::FixedPointId ( int  i) const
inline

Get surface point ID of i-th point with fixed map value

Parameters
[in]iIndex of point in set of points with fixed map value.
Returns
Surface point index.

Definition at line 257 of file LinearFixedBoundarySurfaceMapper.h.

§ FixedPointIndex()

int mirtk::LinearFixedBoundarySurfaceMapper::FixedPointIndex ( int  i) const
inline

Get index of i-th point with fixed map value or -1 if map value of point is free

Parameters
[in]iSurface point index.
Returns
Index of point in set of points with fixed map value.

Definition at line 250 of file LinearFixedBoundarySurfaceMapper.h.

§ FreePointId()

int mirtk::LinearFixedBoundarySurfaceMapper::FreePointId ( int  i) const
inline

Get surface point ID of i-th point with free map value

Parameters
[in]iIndex of point in set of points with free map value.
Returns
Surface point index.

Definition at line 238 of file LinearFixedBoundarySurfaceMapper.h.

§ FreePointIndex()

int mirtk::LinearFixedBoundarySurfaceMapper::FreePointIndex ( int  i) const
inline

Get index of i-th point with free map value or -1 if map value of point is fixed

Parameters
[in]iSurface point index.
Returns
Index of point in set of points with free map value.

Definition at line 231 of file LinearFixedBoundarySurfaceMapper.h.

§ GetFixedValue()

double mirtk::LinearFixedBoundarySurfaceMapper::GetFixedValue ( int  i,
int  j = 0 
) const
inline

Get component of map value at i-th fixed point

Parameters
[in]iIndex of point in set of points with fixed map value.
[in]jMap value component index.
Returns
The j-th component of the map value evaluated at the i-th fixed point.

Definition at line 281 of file LinearFixedBoundarySurfaceMapper.h.

§ GetFreeValue()

double mirtk::LinearFixedBoundarySurfaceMapper::GetFreeValue ( int  i,
int  j = 0 
) const
inline

Get component of map value at i-th free point

Parameters
[in]iIndex of point in set of points with free map value.
[in]jMap value component index.
Returns
The j-th component of the map value evaluated at the i-th free point.

Definition at line 275 of file LinearFixedBoundarySurfaceMapper.h.

§ GetValue()

double mirtk::LinearFixedBoundarySurfaceMapper::GetValue ( int  i,
int  j = 0 
) const
inline

Get component of map value at surface vertex

Parameters
[in]iSurface point index.
[in]jMap value component index.
Returns
The j-th component of the map value evaluated at the i-th surface point.

Definition at line 269 of file LinearFixedBoundarySurfaceMapper.h.

§ SetFreeValue() [1/2]

void mirtk::LinearFixedBoundarySurfaceMapper::SetFreeValue ( int  i,
double  v 
)
inlineprotected

Set scalar map value at i-th free point

Parameters
[in]iIndex of point in set of points with free map value.
[in]vMap value.

Definition at line 299 of file LinearFixedBoundarySurfaceMapper.h.

§ SetFreeValue() [2/2]

void mirtk::LinearFixedBoundarySurfaceMapper::SetFreeValue ( int  i,
int  j,
double  v 
)
inlineprotected

Set component of map value at i-th free point

Parameters
[in]iIndex of point in set of points with free map value.
[in]jMap component index.
[in]vMap component value.

Definition at line 305 of file LinearFixedBoundarySurfaceMapper.h.

§ SetValue() [1/2]

void mirtk::LinearFixedBoundarySurfaceMapper::SetValue ( int  i,
double  v 
)
inlineprotected

Set scalar map value at surface vertex

Parameters
[in]iSurface point index.
[in]vMap value.

Definition at line 287 of file LinearFixedBoundarySurfaceMapper.h.

§ SetValue() [2/2]

void mirtk::LinearFixedBoundarySurfaceMapper::SetValue ( int  i,
int  j,
double  v 
)
inlineprotected

Set component of map value at surface vertex

Parameters
[in]iSurface point index.
[in]jMap component index.
[in]vMap component value.

Definition at line 293 of file LinearFixedBoundarySurfaceMapper.h.


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