NumCpp
2.12.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
|
holds the information for a centroid More...
#include <Centroid.hpp>
Public Types | |
using | accumulator_t = typename std::conditional< std::is_integral< dtype >::value, int64, double >::type |
Public Member Functions | |
Centroid ()=default | |
Centroid (const Cluster< dtype > &inCluster) | |
double | a () const noexcept |
double | b () const noexcept |
double | col () const noexcept |
double | eccentricity () const noexcept |
double | eod () const noexcept |
accumulator_t | intensity () const noexcept |
bool | operator!= (const Centroid< dtype > &rhs) const noexcept |
bool | operator< (const Centroid< dtype > &rhs) const noexcept |
bool | operator== (const Centroid< dtype > &rhs) const noexcept |
double | orientation () const noexcept |
void | print () const |
double | row () const noexcept |
std::string | str () const |
Friends | |
std::ostream & | operator<< (std::ostream &inStream, const Centroid< dtype > &inCentriod) |
holds the information for a centroid
using nc::imageProcessing::Centroid< dtype >::accumulator_t = typename std::conditional<std::is_integral<dtype>::value, int64, double>::type |
|
default |
defualt constructor needed by containers
|
inlineexplicit |
constructor
inCluster |
|
inlinenoexcept |
returns the ellipse semi-major axis a
|
inlinenoexcept |
returns the ellipse semi-minor axis b
|
inlinenoexcept |
gets the centroid col
|
inlinenoexcept |
returns the ellipse eccentricity
|
inlinenoexcept |
returns the estimated eod of the centroid
|
inlinenoexcept |
gets the centroid intensity
|
inlinenoexcept |
not equality operator
rhs |
|
inlinenoexcept |
less than operator for std::sort algorithm; NOTE: std::sort sorts in ascending order. Since I want to sort the centroids in descensing order, I am purposefully defining this operator backwards!
rhs |
|
inlinenoexcept |
equality operator
rhs |
|
inlinenoexcept |
returns the ellipse semi-minor axis orientation
|
inline |
Method Description: prints the Centroid object to the console
|
inlinenoexcept |
gets the centroid row
|
inline |
returns the centroid as a string representation
|
friend |
ostream operator
inStream | |
inCentriod |