![]() |
NumCpp
2.16.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
|
Holds the information for a cluster of pixels. More...
#include <Cluster.hpp>
Public Types | |
| using | accumulator_t = typename std::conditional< std::is_integral< dtype >::value, int64, double >::type |
| using | const_iterator = typename std::vector< Pixel< dtype > >::const_iterator |
Public Member Functions | |
| Cluster ()=default | |
| Cluster (uint32 inClusterId) noexcept | |
| void | addPixel (const Pixel< dtype > &inPixel) |
| const Pixel< dtype > & | at (uint32 inIndex) const |
| const_iterator | begin () const noexcept |
| uint32 | clusterId () const noexcept |
| uint32 | colMax () const noexcept |
| uint32 | colMin () const noexcept |
| const_iterator | end () const noexcept |
| double | eod () const noexcept |
| uint32 | height () const noexcept |
| accumulator_t | intensity () const noexcept |
| bool | operator!= (const Cluster< dtype > &rhs) const noexcept |
| bool | operator== (const Cluster< dtype > &rhs) const noexcept |
| const Pixel< dtype > & | operator[] (uint32 inIndex) const noexcept |
| dtype | peakPixelIntensity () const noexcept |
| void | print () const |
| uint32 | rowMax () const noexcept |
| uint32 | rowMin () const noexcept |
| uint32 | size () const noexcept |
| std::string | str () const |
| uint32 | width () const noexcept |
Friends | |
| std::ostream & | operator<< (std::ostream &inStream, const Cluster< dtype > &inCluster) |
Holds the information for a cluster of pixels.
| using nc::imageProcessing::Cluster< dtype >::accumulator_t = typename std::conditional<std::is_integral<dtype>::value, int64, double>::type |
| using nc::imageProcessing::Cluster< dtype >::const_iterator = typename std::vector<Pixel<dtype> >::const_iterator |
|
default |
default constructor needed by containers
|
inlineexplicitnoexcept |
constructor
| inClusterId |
adds a pixel to the cluster
| inPixel |
|
inlinenoexcept |
returns in iterator to the beginning pixel of the cluster
|
inlinenoexcept |
returns the minimum row number of the cluster
|
inlinenoexcept |
returns the maximum column number of the cluster
|
inlinenoexcept |
returns the minimum column number of the cluster
|
inlinenoexcept |
returns in iterator to the 1 past the end pixel of the cluster
|
inlinenoexcept |
returns the cluster estimated energy on detector (EOD)
|
inlinenoexcept |
returns the number of rows the cluster spans
|
inlinenoexcept |
returns the summed intensity of the cluster
|
inlinenoexcept |
not equality operator
| rhs |
|
inlinenoexcept |
equality operator
| rhs |
|
inlinenoexcept |
|
inlinenoexcept |
returns the intensity of the peak pixel in the cluster
|
inline |
Method Description: prints the Cluster object to the console
|
inlinenoexcept |
returns the maximum row number of the cluster
|
inlinenoexcept |
returns the minimum row number of the cluster
|
inlinenoexcept |
returns the number of pixels in the cluster
|
inline |
returns a string representation of the cluster
|
inlinenoexcept |
returns the number of columns the cluster spans
osstream operator
| inStream | |
| inCluster |