Fraxinus  22.04-rc3
An IGT application
Intersection< T > Class Template Reference

#include <intersection.hpp>

Public Member Functions

 Intersection ()
 
const Spline3D< T > * getSpline () const
 
void setSpline (const Spline3D< T > *spline)
 
getParameterPosition () const
 
void setParameterPosition (T t)
 
getCosTheta () const
 
void setCosTheta (T t)
 
void setPoints (const vector< T > &points)
 
void setPoints (vector< T > &&points)
 
vector< T > & getPoints ()
 
getAverage ()
 
void setValid (bool valid)
 
bool isValid () const
 
const MetaImage< inData_t > * getMetaImage () const
 
void setMetaImage (const MetaImage< inData_t > *img)
 
void evaluate (T p[3]) const
 
getOrigAvgValue ()
 
void correctAliasing (T direction, T Vnyq)
 
sampleWeight (const T A, const T a, const T b) const
 
estimateVelocitySimple ()
 
void regionGrow ()
 

Detailed Description

template<typename T>
class Intersection< T >

Class to represent an intersection between an image and a spline curve

Definition at line 17 of file intersection.hpp.

Constructor & Destructor Documentation

template<typename T>
Intersection< T >::Intersection ( )
inline

Initialize everything to 0, false or NULL

Definition at line 24 of file intersection.hpp.

Member Function Documentation

template<typename T>
void Intersection< T >::correctAliasing ( direction,
Vnyq 
)
inline

Perform aliasing correction on the image data of this intersection

Parameters
directionDirection (relative to parameter of spline) the blood is assumed to flow
Vnyqthe nyquist velocity

Definition at line 209 of file intersection.hpp.

template<typename T>
T Intersection< T >::estimateVelocitySimple ( )
inline

Return the simple velocity estimation for this image

Returns
velocity estimate

Definition at line 267 of file intersection.hpp.

template<typename T>
void Intersection< T >::evaluate ( p[3]) const
inline

Convenience method to evaluate the spline

See also
Spline3D::evaluateSingle

Definition at line 185 of file intersection.hpp.

template<typename T>
T Intersection< T >::getAverage ( )
inline

Get the (cached) average of the region growed points

Definition at line 132 of file intersection.hpp.

template<typename T>
T Intersection< T >::getCosTheta ( ) const
inline

Get the cosTheta value of the intersection (cos(theta) where theta is the angle between the acquisition direction and the derivative of the curve

Returns
cos(theta)

Definition at line 81 of file intersection.hpp.

template<typename T>
const MetaImage<inData_t>* Intersection< T >::getMetaImage ( ) const
inline

Get pointer to the meta image the spline intersects

Returns
pointer to meta image

Definition at line 164 of file intersection.hpp.

template<typename T>
T Intersection< T >::getOrigAvgValue ( )
inline

Get original average value (pre aliasing correction)

Returns
average value before the aliasing correction

Definition at line 198 of file intersection.hpp.

template<typename T>
T Intersection< T >::getParameterPosition ( ) const
inline

Get the spline curve parameter position of the intersection

Returns
the parameter position

Definition at line 60 of file intersection.hpp.

template<typename T>
vector<T>& Intersection< T >::getPoints ( )
inline

Set the points associated with this intersection (i.e. the region-grown points)

Returns
the points

Definition at line 123 of file intersection.hpp.

template<typename T>
const Spline3D<T>* Intersection< T >::getSpline ( ) const
inline

Retrieve the intersecting spline curve

Returns
pointer to the spline curve

Definition at line 40 of file intersection.hpp.

template<typename T>
bool Intersection< T >::isValid ( ) const
inline

Check if this intersection is valid

Returns
true if valid, false otherwise

Definition at line 154 of file intersection.hpp.

template<typename T>
void Intersection< T >::regionGrow ( )
inline

Region grow the meta image

Definition at line 281 of file intersection.hpp.

template<typename T>
T Intersection< T >::sampleWeight ( const T  A,
const T  a,
const T  b 
) const
inline

Compute the sample weight for the image in this intersection

Parameters
AThe factor with which to multiply the sample weighting function
alower abs(cosTheta) cutoff
bupper abs(cosTheta) cutoff
Returns
the sample weight

Definition at line 242 of file intersection.hpp.

template<typename T>
void Intersection< T >::setCosTheta ( t)
inline

Set the cosTheta value of the intersection

Parameters
tthe cosTheta value

Definition at line 91 of file intersection.hpp.

template<typename T>
void Intersection< T >::setMetaImage ( const MetaImage< inData_t > *  img)
inline

Set the meta image of this intersection

Parameters
imgimage

Definition at line 174 of file intersection.hpp.

template<typename T>
void Intersection< T >::setParameterPosition ( t)
inline

Set the parameter position of the intersection

Returns
the paramters position

Definition at line 70 of file intersection.hpp.

template<typename T>
void Intersection< T >::setPoints ( const vector< T > &  points)
inline

Set the points associated with this intersection (i.e. the region-grown points)

Parameters
pointsthe points

Definition at line 101 of file intersection.hpp.

template<typename T>
void Intersection< T >::setPoints ( vector< T > &&  points)
inline

Set the points associated with this intersection (i.e. the region-grown points)

Parameters
pointsthe points

Definition at line 112 of file intersection.hpp.

template<typename T>
void Intersection< T >::setSpline ( const Spline3D< T > *  spline)
inline

Set the intersecting spline curve

Parameters
splinePointer to the intersecting spline curve

Definition at line 50 of file intersection.hpp.

template<typename T>
void Intersection< T >::setValid ( bool  valid)
inline

Set whether this intersection is valid

Parameters
valid

Definition at line 144 of file intersection.hpp.


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