GooseEYE 0.9.1
|
Compute ensemble averaged statistics, by repetitively calling the member-function of a certain statistical measure with different data. More...
#include <GooseEYE/GooseEYE.h>
Public Member Functions | |
Ensemble ()=default | |
Constructor. | |
Ensemble (const std::vector< size_t > &roi, bool periodic=true, bool variance=true) | |
Constructor. | |
array_type::array< double > | result () const |
Get ensemble average. | |
array_type::array< double > | variance () const |
Get ensemble variance. | |
array_type::array< double > | data_first () const |
Get raw-data: ensemble sum of the first moment: x_1 + x_2 + ... | |
array_type::array< double > | data_second () const |
Get raw-data: ensemble sum of the second moment: x_1^2 + x_2^2 + ... | |
array_type::array< double > | norm () const |
Get raw-data: normalisation (number of measurements per pixel). | |
array_type::array< double > | distance () const |
Get the relative distance of each pixel in the 'region-of-interest' to its center. | |
array_type::array< double > | distance (size_t axis) const |
Get the relative distance of each pixel in the 'region-of-interest' to its center, along a specific axis (distance can now be positive and negative). | |
array_type::array< double > | distance (const std::vector< double > &h) const |
Get the relative distance of each pixel in the 'region-of-interest' to its center. | |
array_type::array< double > | distance (const std::vector< double > &h, size_t axis) const |
Get the relative distance of each pixel in the 'region-of-interest' to its center, along a specific axis (distance can now be positive and negative). | |
template<class T > | |
void | mean (const T &f) |
Add realization to arithmetic mean. | |
template<class T , class M > | |
void | mean (const T &f, const M &fmask) |
Add realization to arithmetic mean. | |
template<class T > | |
void | S2 (const T &f, const T &g) |
Add realization to 2-point correlation: P(f(i) * g(i + di)). | |
template<class T , class M > | |
void | S2 (const T &f, const T &g, const M &fmask, const M &gmask) |
Add realization to 2-point correlation: P(f(i) * g(i + di)). | |
template<class T > | |
void | C2 (const T &f, const T &g) |
Add realization to 2-point cluster function: P(f(i) == g(i + di)). | |
template<class T , class M > | |
void | C2 (const T &f, const T &g, const M &fmask, const M &gmask) |
Add realization to 2-point cluster function: P(f(i) == g(i + di)). | |
template<class T > | |
void | W2 (const T &w, const T &f) |
Add realization to weighted 2-point correlation. | |
template<class T , class M > | |
void | W2 (const T &w, const T &f, const M &fmask) |
Add realization to weighted 2-point correlation. | |
template<class C , class T > | |
void | W2c (const C &clusters, const C ¢ers, const T &f, path_mode mode=path_mode::Bresenham) |
Add realization to collapsed weighted 2-point correlation. | |
template<class C , class T , class M > | |
void | W2c (const C &clusters, const C ¢ers, const T &f, const M &fmask, path_mode mode=path_mode::Bresenham) |
Add realization to collapsed weighted 2-point correlation. | |
template<class T > | |
void | heightheight (const T &f) |
Add realization to height-height correlation. | |
template<class T , class M > | |
void | heightheight (const T &f, const M &fmask) |
Add realization to height-height correlation. | |
template<class T > | |
void | L (const T &f, path_mode mode=path_mode::Bresenham) |
Add realization to lineal-path function. | |
Compute ensemble averaged statistics, by repetitively calling the member-function of a certain statistical measure with different data.
Note:
Definition at line 1402 of file GooseEYE.h.
|
inline |
Constructor.
roi | Shape of the 'region-of-interest' on which the statistics are computed. |
periodic | Switch to assume image periodic. |
variance | Switch to compute the variance together with the mean. |
Definition at line 14 of file Ensemble.hpp.
|
inline |
Add realization to 2-point cluster function: P(f(i) == g(i + di)).
f | The image. |
g | The comparison image. |
Definition at line 84 of file Ensemble_C2.hpp.
|
inline |
Add realization to 2-point cluster function: P(f(i) == g(i + di)).
f | The image. |
g | The comparison image. |
fmask | Mask certain pixels of f (binary, 1: masked, 0: not masked). |
gmask | Mask certain pixels of g (binary, 1: masked, 0: not masked). |
Definition at line 15 of file Ensemble_C2.hpp.
|
inline |
Get raw-data: ensemble sum of the first moment: x_1 + x_2 + ...
Definition at line 53 of file Ensemble.hpp.
|
inline |
Get raw-data: ensemble sum of the second moment: x_1^2 + x_2^2 + ...
Definition at line 59 of file Ensemble.hpp.
|
inline |
Get the relative distance of each pixel in the 'region-of-interest' to its center.
Definition at line 103 of file Ensemble.hpp.
|
inline |
Get the relative distance of each pixel in the 'region-of-interest' to its center.
Convert the distance to physical dimensions.
h | The physical dimensions of one pixel (in each direction). |
Definition at line 114 of file Ensemble.hpp.
|
inline |
Get the relative distance of each pixel in the 'region-of-interest' to its center, along a specific axis (distance can now be positive and negative).
Convert the distance to physical dimensions.
h | The physical dimensions of one pixel (in each direction). |
axis | Select axis. |
Definition at line 127 of file Ensemble.hpp.
|
inline |
Get the relative distance of each pixel in the 'region-of-interest' to its center, along a specific axis (distance can now be positive and negative).
axis | Select axis. |
Definition at line 71 of file Ensemble.hpp.
|
inline |
Add realization to height-height correlation.
The height-height correlation, at position \( \Delta i \), is defined as: \( \frac{1}{N} \left( \sum_{i=1}^{N} (f_i - f_{i + \Delta i})^2 \right)^{1/2} \)
f | The image. |
Definition at line 80 of file Ensemble_heightheight.hpp.
|
inline |
Add realization to height-height correlation.
The height-height correlation, at position \( \Delta i \), is defined as: \( \frac{1}{N} \left( \sum_{i=1}^{N} (f_i - f_{i + \Delta i})^2 \right)^{1/2} \)
f | The image. |
fmask | Mask certain pixels of f (binary, 1: masked, 0: not masked). |
Definition at line 15 of file Ensemble_heightheight.hpp.
|
inline |
Add realization to lineal-path function.
f | The image. |
mode | Method to use (see "path_mode"). |
Definition at line 15 of file Ensemble_L.hpp.
void GooseEYE::Ensemble::mean | ( | const T & | f | ) |
Add realization to arithmetic mean.
f | The image. |
Definition at line 15 of file Ensemble_mean.hpp.
void GooseEYE::Ensemble::mean | ( | const T & | f, |
const M & | fmask ) |
Add realization to arithmetic mean.
f | The image. |
fmask | Mask certain pixels (binary, 1: masked, 0: not masked). |
Definition at line 28 of file Ensemble_mean.hpp.
|
inline |
Get raw-data: normalisation (number of measurements per pixel).
Definition at line 65 of file Ensemble.hpp.
|
inline |
Get ensemble average.
Definition at line 26 of file Ensemble.hpp.
|
inline |
Add realization to 2-point correlation: P(f(i) * g(i + di)).
f | The image. |
g | The comparison image. |
Definition at line 84 of file Ensemble_S2.hpp.
|
inline |
Add realization to 2-point correlation: P(f(i) * g(i + di)).
f | The image. |
g | The comparison image. |
fmask | Mask certain pixels of f (binary, 1: masked, 0: not masked). |
gmask | Mask certain pixels of g (binary, 1: masked, 0: not masked). |
Definition at line 15 of file Ensemble_S2.hpp.
|
inline |
Get ensemble variance.
Definition at line 37 of file Ensemble.hpp.
|
inline |
Add realization to weighted 2-point correlation.
w | The weights. |
f | The image. |
Definition at line 76 of file Ensemble_W2.hpp.
|
inline |
Add realization to weighted 2-point correlation.
w | The weights. |
f | The image. |
fmask | Mask certain pixels of f (binary, 1: masked, 0: not masked). |
Definition at line 15 of file Ensemble_W2.hpp.
|
inline |
Add realization to collapsed weighted 2-point correlation.
clusters | The clusters. |
centers | The cluster-centers: label only at the center. |
f | The image. |
mode | Method to use (see "path_mode"). |
fmask | Mask certain pixels of f (binary, 1: masked, 0: not masked). |
Definition at line 16 of file Ensemble_W2c.hpp.
|
inline |
Add realization to collapsed weighted 2-point correlation.
clusters | The clusters. |
centers | The cluster-centers: label only at the center. |
f | The image. |
mode | Method to use (see "path_mode"). |
Definition at line 123 of file Ensemble_W2c.hpp.