Volume Cartographer 2.27.0
Modules | Classes | Typedefs | Functions
Local Reslice Particle Simulation

Local Reslice Particle Simulation (LRPS) segmentation. More...

Collaboration diagram for Local Reslice Particle Simulation:

Modules

 Derivative Library
 A small derivative library that handles calculating derivatives up to the second order.
 

Classes

class  volcart::segmentation::LocalResliceSegmentation
 Local Reslice Particle Simulation (LRPS) segmentation. More...
 
class  volcart::segmentation::EnergyMetrics
 A collection of energy metrics for evaluating a FittedCurve. More...
 
class  volcart::segmentation::FittedCurve
 Fits a curve to a set of points for resampling. More...
 
class  volcart::segmentation::IntensityMap
 A class representing the intensity map generated from a row of a matrix, normalized to the range [0, 1]. More...
 
class  volcart::segmentation::Spline< Scalar, Degree >
 Simple spline wrapper around Eigen::Spline. More...
 

Typedefs

template<typename Scalar >
using volcart::segmentation::CubicSpline = Spline< Scalar, 3 >
 

Functions

template<typename T1 , typename T2 >
std::ostream & operator<< (std::ostream &s, std::pair< T1, T2 > p)
 Write std::pair to std::ostream. More...
 
template<typename T >
std::ostream & operator<< (std::ostream &s, std::vector< T > v)
 Write std::vector to std::ostream. More...
 
template<typename T1 , typename T2 >
std::vector< std::pair< T1, T2 > > volcart::segmentation::Zip (const std::vector< T1 > &v1, const std::vector< T2 > &v2)
 Combine two equal-sized vectors into a single vector of paired elements. More...
 
template<typename T , int Length>
std::pair< std::vector< T >, std::vector< T > > volcart::segmentation::Unzip (const std::vector< cv::Vec< T, Length > > &vs)
 Separate single vector of paired elements into two vectors of single elements. More...
 
template<typename T >
std::vector< double > volcart::segmentation::NormalizeVector (const std::vector< T > &v, double newMin=0, double newMax=1)
 Normalize vector elements to within the range [newMin, newMax]. More...
 
template<typename T , int Len>
std::vector< cv::Vec< double, Len > > volcart::segmentation::NormalizeVector (const std::vector< cv::Vec< T, Len > > vs)
 Normalize vector of cv::Vec using cv::norm. More...
 

VectorMath

std::vector< double > volcart::segmentation::SquareDiff (const std::vector< Voxel > &v1, const std::vector< Voxel > &v2)
 Computes the difference of Squares on two vectors. More...
 
double volcart::segmentation::SumSquareDiff (const std::vector< double > &v1, const std::vector< double > &v2)
 Sums the square differences between two vectors. More...
 

Detailed Description

Local Reslice Particle Simulation (LRPS) segmentation.

Typedef Documentation

◆ CubicSpline

template<typename Scalar >
using volcart::segmentation::CubicSpline = typedef Spline<Scalar, 3>

A spline of degree three

Definition at line 78 of file Spline.hpp.

Function Documentation

◆ NormalizeVector() [1/2]

template<typename T , int Len>
std::vector< cv::Vec< double, Len > > volcart::segmentation::NormalizeVector ( const std::vector< cv::Vec< T, Len > >  vs)

Normalize vector of cv::Vec using cv::norm.

Parameters
vsVector to be normalized

Definition at line 168 of file Common.hpp.

◆ NormalizeVector() [2/2]

template<typename T >
std::vector< double > volcart::segmentation::NormalizeVector ( const std::vector< T > &  v,
double  newMin = 0,
double  newMax = 1 
)

Normalize vector elements to within the range [newMin, newMax].

Parameters
vVector to be normalized
newMinMinimum value
newMaxMaximum value

Definition at line 128 of file Common.hpp.

◆ operator<<() [1/2]

template<typename T1 , typename T2 >
std::ostream & operator<< ( std::ostream &  s,
std::pair< T1, T2 >  p 
)

Write std::pair to std::ostream.

Pair is formatted as round-bracketed, comma-separated elements. e.g. "(T1, T2)"

Parameters
sOutput stream
pInput pair

Definition at line 34 of file Common.hpp.

◆ operator<<() [2/2]

template<typename T >
std::ostream & operator<< ( std::ostream &  s,
std::vector< T >  v 
)

Write std::vector to std::ostream.

Vectors are formatted as square-bracketed, comma-separated elements. e.g. "[a, b, c, d]"

Parameters
sOutput stream
vInput vector

Definition at line 51 of file Common.hpp.

◆ SquareDiff()

std::vector< double > volcart::segmentation::SquareDiff ( const std::vector< Voxel > &  v1,
const std::vector< Voxel > &  v2 
)

Computes the difference of Squares on two vectors.

Parameters
v1First vector to square
v2Second vector to square

◆ SumSquareDiff()

double volcart::segmentation::SumSquareDiff ( const std::vector< double > &  v1,
const std::vector< double > &  v2 
)

Sums the square differences between two vectors.

Parameters
v1First vector to square
v2Second vector to square

◆ Unzip()

template<typename T , int Length>
std::pair< std::vector< T >, std::vector< T > > volcart::segmentation::Unzip ( const std::vector< cv::Vec< T, Length > > &  vs)

Separate single vector of paired elements into two vectors of single elements.

Parameters
vsInput vector

Definition at line 105 of file Common.hpp.

◆ Zip()

template<typename T1 , typename T2 >
std::vector< std::pair< T1, T2 > > volcart::segmentation::Zip ( const std::vector< T1 > &  v1,
const std::vector< T2 > &  v2 
)

Combine two equal-sized vectors into a single vector of paired elements.

Elements from v1 and v2 are combined into std::pair<T1, T2>.

e.g.
v1 = [a, b, c, d]
v2 = [1, 2, 3, 4]
res = [<a, 1>, <b, 2>, <c, 3>, <d, 4>]

Parameters
v1First vector to be combined
v2Second vector to be combined

Definition at line 84 of file Common.hpp.