STIRA  0.1
Public Member Functions | List of all members
stira::histogram::Spatiogram Class Reference

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...
 

Constructor & Destructor Documentation

stira::histogram::Spatiogram::Spatiogram ( ArrayGrid< double > *  pGrid,
int  binsize,
ArrayGrid< bool > *  pMaskGrid = 0 
)

Constructor

Parameters
pGridinput grid
binsizesize of bin
pMaskGridboolean 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().

Member Function Documentation

common::Point< double > stira::histogram::Spatiogram::GetAveragePoint ( int  binNr)

Gets center of gravety of points that contributed to given bin.

Parameters
thenumber of the bin
ArrayGrid< double > * stira::histogram::Spatiogram::GetCovarianceMatrix ( int  binNr)

Gets covariance matrix of pixels of points that contributed to given bin.

Parameters
thenumber of the bin *
void stira::histogram::Spatiogram::Write ( std::string  fileName,
int  threshold = 100 
)

Writes spatiogram to file.

Parameters
fileNamename of file to write to
thresholdno bins with less than "threshold" counts are written to file

References stira::imagedata::ArrayGrid< T >::GetValue().


The documentation for this class was generated from the following files: