STIRA
0.1
|
Public Member Functions | |
Spatiogram (ArrayGrid< double > *pGrid, int binsize, ArrayGrid< bool > *pMaskGrid=0) | |
~Spatiogram () | |
destructor | |
int | GetBinValue (int binNr) |
Gets value of given bin. | |
common::Point< double > | GetAveragePoint (int binNr) |
Gets center of gravety of points that contributed to given bin. More... | |
ArrayGrid< double > * | GetCovarianceMatrix (int binNr) |
Gets covariance matrix of pixels of points that contributed to given bin. More... | |
void | Write (std::string fileName, int threshold=100) |
Writes spatiogram to file. More... | |
stira::histogram::Spatiogram::Spatiogram | ( | ArrayGrid< double > * | pGrid, |
int | binsize, | ||
ArrayGrid< bool > * | pMaskGrid = 0 |
||
) |
Constructor
pGrid | input grid |
binsize | size of bin |
pMaskGrid | boolean grid which pixels to count (at position with true) and which to ignore (at position with false) |
References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), and stira::imagedata::ArrayGrid< T >::GetWidth().
common::Point< double > stira::histogram::Spatiogram::GetAveragePoint | ( | int | binNr | ) |
Gets center of gravety of points that contributed to given bin.
the | number of the bin |
ArrayGrid< double > * stira::histogram::Spatiogram::GetCovarianceMatrix | ( | int | binNr | ) |
Gets covariance matrix of pixels of points that contributed to given bin.
the | number of the bin * |
void stira::histogram::Spatiogram::Write | ( | std::string | fileName, |
int | threshold = 100 |
||
) |
Writes spatiogram to file.
fileName | name of file to write to |
threshold | no bins with less than "threshold" counts are written to file |
References stira::imagedata::ArrayGrid< T >::GetValue().