Volume Cartographer 2.27.0
|
Local Reslice Particle Simulation (LRPS) segmentation. More...
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... | |
Local Reslice Particle Simulation (LRPS) segmentation.
using volcart::segmentation::CubicSpline = typedef Spline<Scalar, 3> |
A spline of degree three
Definition at line 78 of file Spline.hpp.
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.
vs | Vector to be normalized |
Definition at line 168 of file Common.hpp.
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].
v | Vector to be normalized |
newMin | Minimum value |
newMax | Maximum value |
Definition at line 128 of file Common.hpp.
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)"
s | Output stream |
p | Input pair |
Definition at line 34 of file Common.hpp.
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]"
s | Output stream |
v | Input vector |
Definition at line 51 of file Common.hpp.
std::vector< double > volcart::segmentation::SquareDiff | ( | const std::vector< Voxel > & | v1, |
const std::vector< Voxel > & | v2 | ||
) |
Computes the difference of Squares on two vectors.
v1 | First vector to square |
v2 | Second vector to square |
double volcart::segmentation::SumSquareDiff | ( | const std::vector< double > & | v1, |
const std::vector< double > & | v2 | ||
) |
Sums the square differences between two vectors.
v1 | First vector to square |
v2 | Second vector to square |
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.
vs | Input vector |
Definition at line 105 of file Common.hpp.
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>]
v1 | First vector to be combined |
v2 | Second vector to be combined |
Definition at line 84 of file Common.hpp.