Inheritance diagram for w2img::Correlogram:
The correlogram is describes the correlation between samples as a function of the distance between those samples.
Public Member Functions | |
bool | write (const std::string &filename) const |
Write the correlogram values in a format fit to be easily plotted. | |
const Sample & | operator[] (size_t dist) const |
get the correlation between two samples separated by dist pixels in an euclidean framework. | |
size_t | size () const |
Distance to which we have samples available. | |
virtual | ~Correlogram () |
virtual size_t | getAverageDistance () const =0 |
What is the average distance between samples? | |
Protected Member Functions | |
Sample & | operator[] (size_t dist) |
Correlogram (size_t num_samples=0) | |
Protected Attributes | |
std::vector< Sample > | func |
Classes | |
class | GaussianFit |
Fit a gaussian to a correlogram. More... | |
class | Sample |
Describes correlation of samples separated by a distance h Typical usage is to keep calling update() with new sample pairs and then call rho() whenever the correlation is needed. More... |
virtual w2img::Correlogram::~Correlogram | ( | ) | [inline, virtual] |
w2img::Correlogram::Correlogram | ( | size_t | num_samples = 0 |
) | [protected] |
virtual size_t w2img::Correlogram::getAverageDistance | ( | ) | const [pure virtual] |
What is the average distance between samples?
Implemented in w2img::PixelValueCorrelogram, and w2img::DataTableCorrelogram.
Sample& w2img::Correlogram::operator[] | ( | size_t | dist | ) | [inline, protected] |
const Sample& w2img::Correlogram::operator[] | ( | size_t | dist | ) | const [inline] |
get the correlation between two samples separated by dist pixels in an euclidean framework.
dist has to be less than getMaxDistanceInPixels()
size_t w2img::Correlogram::size | ( | ) | const [inline] |
Distance to which we have samples available.
bool w2img::Correlogram::write | ( | const std::string & | filename | ) | const |
Write the correlogram values in a format fit to be easily plotted.
std::vector< Sample > w2img::Correlogram::func [protected] |