te::qt::widgets::RasterStatisticsWizardPage Class Reference

#include <RasterStatisticsWizardPage.h>

Inheritance diagram for te::qt::widgets::RasterStatisticsWizardPage:

Public Member Functions

bool isComplete () const
 
 RasterStatisticsWizardPage (QWidget *parent=0)
 
void setActionGroup (QActionGroup *actionGroup)
 
void setLayer (te::map::AbstractLayerPtr layer)
 This method is used to set the selected layer for vectorization operation. More...
 
void setMapDisplay (te::qt::widgets::MapDisplay *mapDisplay)
 
 ~RasterStatisticsWizardPage ()
 

Protected Slots

void coStatisticsPushButtonClicked (bool checked)
 
void histogramPushButtonClicked (bool checked)
 
void onROIManagerClosed (te::cl::ROISet *rs)
 
void samplesPushButtonClicked (bool checked)
 
void scatterPushButtonClicked (bool checked)
 
void statisticsPushButtonClicked (bool checked)
 

Protected Member Functions

void getBandIndexes (std::vector< unsigned int > &bandsIndexes) const
 Return the current selected band indexes. More...
 
bool getCorrelationMatrix (const std::string &roiID, const std::map< std::tuple< std::string, unsigned int, unsigned int >, std::map< std::pair< double, double >, unsigned int > > &jointHistograms, const std::map< std::pair< std::string, unsigned int >, std::map< double, unsigned int > > &histograms, te::rp::Matrix< double > &matrix)
 Return the correlation matrix. More...
 
bool getCovarianceMatrix (const std::string &roiID, const std::map< std::tuple< std::string, unsigned int, unsigned int >, std::map< std::pair< double, double >, unsigned int > > &jointHistograms, const std::map< std::pair< std::string, unsigned int >, std::map< double, unsigned int > > &histograms, te::rp::Matrix< double > &matrix)
 Return the covariance matrix. More...
 
bool getHistograms (std::map< std::pair< std::string, unsigned int >, std::map< double, unsigned int > > &realHistograms, std::map< std::pair< std::string, unsigned int >, std::map< double, unsigned int > > &imagHistograms) const
 Return the current histograms. More...
 
bool getJoinHistograms (const std::map< std::pair< std::string, unsigned int >, std::map< double, unsigned int > > &realHistograms, const std::map< std::pair< std::string, unsigned int >, std::map< double, unsigned int > > &imagHistograms, std::map< std::tuple< std::string, unsigned int, unsigned int >, std::map< std::pair< double, double >, unsigned int > > &realJointHistograms, std::map< std::tuple< std::string, unsigned int, unsigned int >, std::map< std::pair< double, double >, unsigned int > > &imagJointHistograms) const
 Return the current joint histograms. More...
 
bool getKurtosisMatrix (const std::string &roiID, const std::map< std::tuple< std::string, unsigned int, unsigned int >, std::map< std::pair< double, double >, unsigned int > > &jointHistograms, const std::map< std::pair< std::string, unsigned int >, std::map< double, unsigned int > > &histograms, te::rp::Matrix< double > &matrix)
 Return the kurtosis matrix. More...
 
std::vector< std::string > getROIsIDs () const
 Return the current loaded ROIs IDs. More...
 
bool printMatrix (te::rp::Matrix< double > &matrix)
 

Static Protected Member Functions

static bool getCorrelation (const std::string &roiID, const unsigned int &bandIdx1, const unsigned int &bandIdx2, const std::map< std::tuple< std::string, unsigned int, unsigned int >, std::map< std::pair< double, double >, unsigned int > > &jointHistograms, const std::map< std::pair< std::string, unsigned int >, std::map< double, unsigned int > > &histograms, double &correlation)
 Return the correlation value. More...
 
static bool getCovariance (const std::string &roiID, const unsigned int &bandIdx1, const unsigned int &bandIdx2, const std::map< std::tuple< std::string, unsigned int, unsigned int >, std::map< std::pair< double, double >, unsigned int > > &jointHistograms, const std::map< std::pair< std::string, unsigned int >, std::map< double, unsigned int > > &histograms, double &covariance)
 Return the covariance value. More...
 
static bool getKurtosis (const std::string &roiID, const unsigned int &bandIdx1, const std::map< std::tuple< std::string, unsigned int, unsigned int >, std::map< std::pair< double, double >, unsigned int > > &jointHistograms, const std::map< std::pair< std::string, unsigned int >, std::map< double, unsigned int > > &histograms, double &kurtosis)
 Return the Kurtosis value. More...
 

Protected Attributes

te::map::AbstractLayerPtr m_layer
 
std::unique_ptr< te::qt::widgets::RasterStatisticsWizardLogm_logDialogPtr
 
std::unique_ptr< te::qt::widgets::ROIManagerDialogm_roiManagerPtr
 
std::unique_ptr< Ui::RasterStatisticsWizardPageForm > m_uiStatPageForm
 

Detailed Description

Definition at line 56 of file RasterStatisticsWizardPage.h.

Constructor & Destructor Documentation

◆ RasterStatisticsWizardPage()

te::qt::widgets::RasterStatisticsWizardPage::RasterStatisticsWizardPage ( QWidget *  parent = 0)

◆ ~RasterStatisticsWizardPage()

te::qt::widgets::RasterStatisticsWizardPage::~RasterStatisticsWizardPage ( )

Member Function Documentation

◆ coStatisticsPushButtonClicked

void te::qt::widgets::RasterStatisticsWizardPage::coStatisticsPushButtonClicked ( bool  checked)
protectedslot

◆ getBandIndexes()

void te::qt::widgets::RasterStatisticsWizardPage::getBandIndexes ( std::vector< unsigned int > &  bandsIndexes) const
protected

Return the current selected band indexes.

Parameters
bandsIndexesCurrent selected band indexes.

◆ getCorrelation()

static bool te::qt::widgets::RasterStatisticsWizardPage::getCorrelation ( const std::string &  roiID,
const unsigned int &  bandIdx1,
const unsigned int &  bandIdx2,
const std::map< std::tuple< std::string, unsigned int, unsigned int >, std::map< std::pair< double, double >, unsigned int > > &  jointHistograms,
const std::map< std::pair< std::string, unsigned int >, std::map< double, unsigned int > > &  histograms,
double &  correlation 
)
staticprotected

Return the correlation value.

Parameters
roiIDTarget ROI id.
bandIdx1Target band 1 index.
bandIdx2Target band 2 index.
jointHistogramsJoint histograms.
histogramsSingle band histograms.
correlationCorrelation value.
Returns
true if ok, false on erros.

◆ getCorrelationMatrix()

bool te::qt::widgets::RasterStatisticsWizardPage::getCorrelationMatrix ( const std::string &  roiID,
const std::map< std::tuple< std::string, unsigned int, unsigned int >, std::map< std::pair< double, double >, unsigned int > > &  jointHistograms,
const std::map< std::pair< std::string, unsigned int >, std::map< double, unsigned int > > &  histograms,
te::rp::Matrix< double > &  matrix 
)
protected

Return the correlation matrix.

Parameters
roiIDTarget ROI id.
jointHistogramsJoint histograms.
histogramsSingle band histograms.
matrixOutput matrix.
Returns
true if ok, false on erros.

◆ getCovariance()

static bool te::qt::widgets::RasterStatisticsWizardPage::getCovariance ( const std::string &  roiID,
const unsigned int &  bandIdx1,
const unsigned int &  bandIdx2,
const std::map< std::tuple< std::string, unsigned int, unsigned int >, std::map< std::pair< double, double >, unsigned int > > &  jointHistograms,
const std::map< std::pair< std::string, unsigned int >, std::map< double, unsigned int > > &  histograms,
double &  covariance 
)
staticprotected

Return the covariance value.

Parameters
roiIDTarget ROI id.
bandIdx1Target band 1 index.
bandIdx2Target band 2 index.
jointHistogramsJoint histograms.
histogramsSingle band histograms.
covarianceCovariance value.
Returns
true if ok, false on erros.

◆ getCovarianceMatrix()

bool te::qt::widgets::RasterStatisticsWizardPage::getCovarianceMatrix ( const std::string &  roiID,
const std::map< std::tuple< std::string, unsigned int, unsigned int >, std::map< std::pair< double, double >, unsigned int > > &  jointHistograms,
const std::map< std::pair< std::string, unsigned int >, std::map< double, unsigned int > > &  histograms,
te::rp::Matrix< double > &  matrix 
)
protected

Return the covariance matrix.

Parameters
roiIDTarget ROI id.
jointHistogramsJoint histograms.
histogramsSingle band histograms.
matrixOutput matrix.
Returns
true if ok, false on erros.

◆ getHistograms()

bool te::qt::widgets::RasterStatisticsWizardPage::getHistograms ( std::map< std::pair< std::string, unsigned int >, std::map< double, unsigned int > > &  realHistograms,
std::map< std::pair< std::string, unsigned int >, std::map< double, unsigned int > > &  imagHistograms 
) const
protected

Return the current histograms.

Parameters
realHistogramsReal histograms.
imagHistogramsReal histograms.
Note
Histograms map: map key.first=ROI Ids, map_key.second=band_index.
Histograms map: map key.first="ALL_IMAGE" for the case where no ROIs are avaliable.
Returns
true if ok, false on erros.

◆ getJoinHistograms()

bool te::qt::widgets::RasterStatisticsWizardPage::getJoinHistograms ( const std::map< std::pair< std::string, unsigned int >, std::map< double, unsigned int > > &  realHistograms,
const std::map< std::pair< std::string, unsigned int >, std::map< double, unsigned int > > &  imagHistograms,
std::map< std::tuple< std::string, unsigned int, unsigned int >, std::map< std::pair< double, double >, unsigned int > > &  realJointHistograms,
std::map< std::tuple< std::string, unsigned int, unsigned int >, std::map< std::pair< double, double >, unsigned int > > &  imagJointHistograms 
) const
protected

Return the current joint histograms.

Parameters
realHistogramsReal histograms.
imagHistogramsReal histograms.
Note
Joint Histograms map key: std::tuple( 0 )=roi_id, std::tuple( 1 )=band_index_1, std::tuple( 2 )=band_index_2
Joint Histograms map key: std::tuple( 0 )="ALL_IMAGE" for the case where no ROIs are avaliable.
Returns
true if ok, false on erros.

◆ getKurtosis()

static bool te::qt::widgets::RasterStatisticsWizardPage::getKurtosis ( const std::string &  roiID,
const unsigned int &  bandIdx1,
const std::map< std::tuple< std::string, unsigned int, unsigned int >, std::map< std::pair< double, double >, unsigned int > > &  jointHistograms,
const std::map< std::pair< std::string, unsigned int >, std::map< double, unsigned int > > &  histograms,
double &  kurtosis 
)
staticprotected

Return the Kurtosis value.

Parameters
roiIDTarget ROI id.
bandIdx1Target band 1 index.
jointHistogramsJoint histograms.
histogramsSingle band histograms.
kurtosisCorrelation value.
Returns
true if ok, false on erros.

◆ getKurtosisMatrix()

bool te::qt::widgets::RasterStatisticsWizardPage::getKurtosisMatrix ( const std::string &  roiID,
const std::map< std::tuple< std::string, unsigned int, unsigned int >, std::map< std::pair< double, double >, unsigned int > > &  jointHistograms,
const std::map< std::pair< std::string, unsigned int >, std::map< double, unsigned int > > &  histograms,
te::rp::Matrix< double > &  matrix 
)
protected

Return the kurtosis matrix.

Parameters
roiIDTarget ROI id.
jointHistogramsJoint histograms.
histogramsSingle band histograms.
matrixOutput matrix.
Returns
true if ok, false on erros.

◆ getROIsIDs()

std::vector< std::string > te::qt::widgets::RasterStatisticsWizardPage::getROIsIDs ( ) const
protected

Return the current loaded ROIs IDs.

Returns
Return the current loaded ROIs IDs.

◆ histogramPushButtonClicked

void te::qt::widgets::RasterStatisticsWizardPage::histogramPushButtonClicked ( bool  checked)
protectedslot

◆ isComplete()

bool te::qt::widgets::RasterStatisticsWizardPage::isComplete ( ) const

◆ onROIManagerClosed

void te::qt::widgets::RasterStatisticsWizardPage::onROIManagerClosed ( te::cl::ROISet rs)
protectedslot

◆ printMatrix()

bool te::qt::widgets::RasterStatisticsWizardPage::printMatrix ( te::rp::Matrix< double > &  matrix)
protected

◆ samplesPushButtonClicked

void te::qt::widgets::RasterStatisticsWizardPage::samplesPushButtonClicked ( bool  checked)
protectedslot

◆ scatterPushButtonClicked

void te::qt::widgets::RasterStatisticsWizardPage::scatterPushButtonClicked ( bool  checked)
protectedslot

◆ setActionGroup()

void te::qt::widgets::RasterStatisticsWizardPage::setActionGroup ( QActionGroup *  actionGroup)

◆ setLayer()

void te::qt::widgets::RasterStatisticsWizardPage::setLayer ( te::map::AbstractLayerPtr  layer)

This method is used to set the selected layer for vectorization operation.

Parameters
layerThe layer ptr
Note
This layer MUST HAVE a valid raster object.

◆ setMapDisplay()

void te::qt::widgets::RasterStatisticsWizardPage::setMapDisplay ( te::qt::widgets::MapDisplay mapDisplay)

◆ statisticsPushButtonClicked

void te::qt::widgets::RasterStatisticsWizardPage::statisticsPushButtonClicked ( bool  checked)
protectedslot

Member Data Documentation

◆ m_layer

te::map::AbstractLayerPtr te::qt::widgets::RasterStatisticsWizardPage::m_layer
protected

Definition at line 86 of file RasterStatisticsWizardPage.h.

◆ m_logDialogPtr

std::unique_ptr<te::qt::widgets::RasterStatisticsWizardLog> te::qt::widgets::RasterStatisticsWizardPage::m_logDialogPtr
protected

Definition at line 85 of file RasterStatisticsWizardPage.h.

◆ m_roiManagerPtr

std::unique_ptr<te::qt::widgets::ROIManagerDialog> te::qt::widgets::RasterStatisticsWizardPage::m_roiManagerPtr
protected

Definition at line 84 of file RasterStatisticsWizardPage.h.

◆ m_uiStatPageForm

std::unique_ptr<Ui::RasterStatisticsWizardPageForm> te::qt::widgets::RasterStatisticsWizardPage::m_uiStatPageForm
protected

Definition at line 83 of file RasterStatisticsWizardPage.h.


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