STIRA
0.1
|
conditional or joint histogram class WARNING: currently only works for default case when bin size is 1 More...
#include <JointHistogram.h>
Public Member Functions | |
JointHistogram (double horizontalBinSize, double verticalBinSize, double horizontalMin, double horizontalMax, double verticalMin, double verticalMax, int nrBands=1) | |
constructor More... | |
JointHistogram (Image *pImage1, Image *pImage2, bool useAbsoluteValues=false) | |
constructor Initializes and builds conditional histogram based on the two input images More... | |
JointHistogram (ArrayGrid< double > *pGrid1, int xTop1, int yTop1, int xBottom1, int yBottom1, ArrayGrid< double > *pGrid2, int xTop2, int yTop2, int xBottom2, int yBottom2, bool useAbsoluteValues=false) | |
constructor Initializes and builds conditional histogram based on the two input grids More... | |
JointHistogram (ArrayGrid< double > *pGrid1, ArrayGrid< double > *pGrid2, bool useAbsoluteValues=false) | |
constructor Initializes and builds conditional histogram based on the two input grids More... | |
~JointHistogram () | |
destructor | |
bool | Write (std::string fileName) |
writes current histogram to text file | |
int | GetNrOfHorizontalBins () |
Gets nr of bins on the horizontal axis in the histogram. | |
int | GetNrOfVerticalBins () |
Gets nr of bins on the vertical axis in the histogram. | |
int | GetBinValue (int bandNr, int binX, int binY) |
double | GetNormalizedBinValue (int bandNr, int binX, int binY) |
FloatHistogram * | GetMarginalPDF1 () |
FloatHistogram * | GetMarginalPDF2 () |
Image * | VisualizeAsImage () |
visualizes the current conditional histogram as an image | |
void | ExportText (std::string fileName) |
conditional or joint histogram class WARNING: currently only works for default case when bin size is 1
stira::histogram::JointHistogram::JointHistogram | ( | double | horizontalBinSize, |
double | verticalBinSize, | ||
double | horizontalMin, | ||
double | horizontalMax, | ||
double | verticalMin, | ||
double | verticalMax, | ||
int | nrBands = 1 |
||
) |
constructor
horizontalBinSize | size of a bin on the horizontal axis |
verticalBinSize | size of a bin on the vertical axis |
horizontalMin | minimum value on the horizontal axis |
horizontalMax | maximum value on the horizontal axis |
verticalMin | minimum value on the vertical axis |
verticalMax | minimum value on the vertical axis All histogram values are initialized to 0 |
stira::histogram::JointHistogram::JointHistogram | ( | Image * | pImage1, |
Image * | pImage2, | ||
bool | useAbsoluteValues = false |
||
) |
constructor Initializes and builds conditional histogram based on the two input images
pImage1 | first input image |
pImage2 | second input image |
useAbsoluteValues | flag to use absolute values instead of normal values |
References stira::imagedata::Image::GetBands(), stira::imagedata::Image::GetHeight(), stira::imagedata::Image::GetNumberOfBands(), and stira::imagedata::Image::GetWidth().
stira::histogram::JointHistogram::JointHistogram | ( | ArrayGrid< double > * | pGrid1, |
int | xTop1, | ||
int | yTop1, | ||
int | xBottom1, | ||
int | yBottom1, | ||
ArrayGrid< double > * | pGrid2, | ||
int | xTop2, | ||
int | yTop2, | ||
int | xBottom2, | ||
int | yBottom2, | ||
bool | useAbsoluteValues = false |
||
) |
constructor Initializes and builds conditional histogram based on the two input grids
pGrid1 | first input grid |
pGrid2 | second input grid |
useAbsoluteValues | flag to use absolute values instead of normal values |
References stira::imagedata::ArrayGrid< T >::GetHeight(), and stira::imagedata::ArrayGrid< T >::GetWidth().
stira::histogram::JointHistogram::JointHistogram | ( | ArrayGrid< double > * | pGrid1, |
ArrayGrid< double > * | pGrid2, | ||
bool | useAbsoluteValues = false |
||
) |
constructor Initializes and builds conditional histogram based on the two input grids
pGrid1 | first input grid |
pGrid2 | second input grid |
useAbsoluteValues | flag to use absolute values instead of normal values |
References stira::imagedata::ArrayGrid< T >::GetHeight(), and stira::imagedata::ArrayGrid< T >::GetWidth().