Isis 3.0 Developer's Reference (API) |
Home |
Control Network Stats. More...
#include <ControlNetStatistics.h>
Inherited by Isis::ControlNetFilter.
Public Types | |
enum | ePointDetails { total, ignore, locked, fixed, constrained, freed } |
Enumeration for Point Statistics. More... | |
enum | ePointIntStats { totalPoints, validPoints, ignoredPoints, fixedPoints, constrainedPoints, freePoints, editLockedPoints, totalMeasures, validMeasures, ignoredMeasures, editLockedMeasures } |
Enumeration for Point int stats for counts such as valid points, measures etc. More... | |
enum | ePointDoubleStats { avgResidual, minResidual, maxResidual, minLineResidual, maxLineResidual, minSampleResidual, maxSampleResidual, avgPixelShift, minPixelShift, maxPixelShift, minLineShift, maxLineShift, minSampleShift, maxSampleShift, minGFit, maxGFit, minEccentricity, maxEccentricity, minPixelZScore, maxPixelZScore } |
Enumeration for Point stats like Tolerances, PixelShifts which have double data. More... | |
enum | ImageStats { imgSamples, imgLines, imgTotalPoints, imgIgnoredPoints, imgFixedPoints, imgLockedPoints, imgLocked, imgConstrainedPoints, imgFreePoints, imgConvexHullArea, imgConvexHullRatio } |
Enumeration for image stats. More... | |
Public Member Functions | |
ControlNetStatistics (ControlNet *pCNet, const string &psSerialNumFile, Progress *pProgress=0) | |
Constructor. | |
ControlNetStatistics (ControlNet *pCNet, Progress *pProgress=0) | |
Constructor. | |
~ControlNetStatistics () | |
Destructor. | |
void | GenerateImageStats (void) |
Generate stats like Total, Ignored, Fixed Points in an Image. | |
void | PrintImageStats (const string &psImageFile) |
Print the Image Stats into specified output file. | |
const vector< double > | GetImageStatsBySerialNum (string psSerialNum) |
Returns the Image Stats by Serial Number. | |
void | GeneratePointStats (const string &psPointFile) |
Generate stats like Ignored, Fixed, Total Measures, Ignored by Control Point. | |
void | GenerateControlNetStats (PvlGroup &pStatsGrp) |
Generate the Control Net Stats into the PvlGroup. | |
int | NumValidPoints () |
Returns the Number of Valid (Not Ignored) Points in the Control Net. | |
int | NumFixedPoints () |
Returns the Number of Fixed Points in the Control Net. | |
int | NumConstrainedPoints () |
Returns the number of Constrained Points in Control Net. | |
int | NumFreePoints () |
Returns the number of Constrained Points in Control Net. | |
int | NumIgnoredPoints () |
Returns the number of ignored points. | |
int | NumEditLockedPoints () |
Returns total number of edit locked points. | |
int | NumMeasures () |
Returns the total Number of Measures in the Control Net. | |
int | NumValidMeasures () |
Returns the total Number of valid Measures in the Control Net. | |
int | NumIgnoredMeasures () |
Returns the total Number of Ignored Measures in the Control Net. | |
int | NumEditLockedMeasures () |
Returns total number of edit locked measures in the network. | |
double | GetAverageResidual () |
Determine the average error of all points in the network. | |
double | GetMinimumResidual () |
Determine the minimum error of all points in the network. | |
double | GetMaximumResidual () |
Determine the maximum error of all points in the network. | |
double | GetMinLineResidual () |
Determine the minimum line error of all points in the network. | |
double | GetMinSampleResidual () |
Determine the minimum sample error of all points in the network. | |
double | GetMaxLineResidual () |
Determine the maximum line error of all points in the network. | |
double | GetMaxSampleResidual () |
Determine the maximum sample error of all points in the network. | |
double | GetMinLineShift (void) |
Get Min and Max LineShift. | |
double | GetMaxLineShift (void) |
Get network Max LineShift. | |
double | GetMinSampleShift () |
Get network Min SampleShift. | |
double | GetMaxSampleShift () |
Get network Max SampleShift. | |
double | GetMinPixelShift () |
Get network Min PixelShift. | |
double | GetMaxPixelShift () |
Get network Max PixelShift. | |
double | GetAvgPixelShift () |
Get network Avg PixelShift. | |
Static Public Attributes | |
static const int | numPointDetails = 6 |
static const int | numPointIntStats = 11 |
static const int | numPointDblStats = 20 |
static const int | numImageStats = 11 |
Protected Attributes | |
SerialNumberList | mSerialNumList |
Serial Number List. | |
ControlNet * | mCNet |
Control Network. | |
Progress * | mProgress |
Progress state. | |
QList< ControlCubeGraphNode * > | mCubeGraphNodes |
Control Network Stats.
This class is used to get statistics of Control Network by Image or by Point
Enumeration for Point Statistics.
Enumeration for Point stats like Tolerances, PixelShifts which have double data.
Isis::ControlNetStatistics::ControlNetStatistics | ( | ControlNet * | pCNet, | |
const string & | psSerialNumFile, | |||
Progress * | pProgress = 0 | |||
) |
Constructor.
ControlNetStatistics Constructor has ctor to it's base Control Network.
pCNet | - Input Control network | |
psSerialNumFile | - Serial Number List file | |
pProgress | - Check Progress if not Null |
References GenerateImageStats(), mCNet, mProgress, and mSerialNumList.
Isis::ControlNetStatistics::ControlNetStatistics | ( | ControlNet * | pCNet, | |
Progress * | pProgress = 0 | |||
) |
Isis::ControlNetStatistics::~ControlNetStatistics | ( | ) |
Destructor.
void Isis::ControlNetStatistics::GenerateControlNetStats | ( | PvlGroup & | pStatsGrp | ) |
Generate the Control Net Stats into the PvlGroup.
Generates the summary stats for the entire control network.
Stats include Total images, Total, Valid, Ignored, Fixed Points, Total, Valid, Ignored Measures and also Average, Min, Max Error, Min, Max Line and Sample Errors
pStatsGrp | - Output Control Net Stats in Pvl format |
References Isis::Statistics::Average(), GetAverageResidual(), GetAvgPixelShift(), GetMaximumResidual(), GetMaxLineResidual(), GetMaxLineShift(), GetMaxPixelShift(), GetMaxSampleResidual(), GetMaxSampleShift(), GetMinimumResidual(), GetMinLineResidual(), GetMinLineShift(), GetMinPixelShift(), GetMinSampleResidual(), GetMinSampleShift(), Isis::ControlNet::GetNumEditLockMeasures(), Isis::ControlNet::GetNumEditLockPoints(), Isis::ControlNet::GetNumPoints(), maxEccentricity, maxGFit, Isis::Statistics::Maximum(), maxPixelZScore, mCNet, minEccentricity, minGFit, Isis::Statistics::Minimum(), minPixelZScore, mSerialNumList, Isis::NULL8, NumConstrainedPoints(), NumFixedPoints(), NumFreePoints(), NumIgnoredMeasures(), NumMeasures(), NumValidMeasures(), NumValidPoints(), and Isis::SerialNumberList::Size().
void Isis::ControlNetStatistics::GenerateImageStats | ( | void | ) |
Generate stats like Total, Ignored, Fixed Points in an Image.
Generate the Image stats - imgSamples, imgLines, imgTotalPoints, imgIgnoredPoints, imgFixedPoints, imgLockedPoints, imgLocked, imgConstrainedPoints, imgFreePoints, imgConvexHullArea, imgConvexHullRatio.
References Isis::Statistics::AddData(), Isis::Progress::CheckStatus(), Isis::ControlPoint::Constrained, cube, Isis::SerialNumberList::Filename(), Isis::ControlPoint::Fixed, Isis::ControlPoint::Free, Isis::ControlNet::GetCubeGraphNodes(), Isis::ControlMeasure::GetLine(), Isis::Cube::getLineCount(), Isis::ControlCubeGraphNode::getMeasures(), Isis::ControlMeasure::GetSample(), Isis::Cube::getSampleCount(), Isis::ControlCubeGraphNode::getSerialNumber(), Isis::ControlPoint::GetType(), imgConstrainedPoints, imgConvexHullArea, imgConvexHullRatio, imgFixedPoints, imgFreePoints, imgIgnoredPoints, imgLines, imgLocked, imgLockedPoints, imgSamples, imgTotalPoints, Isis::ControlMeasure::IsEditLocked(), Isis::ControlPoint::IsEditLocked(), Isis::ControlPoint::IsIgnored(), mCNet, mCubeGraphNodes, mProgress, mSerialNumList, numImageStats, Isis::CubeManager::OpenCube(), Isis::ControlMeasure::Parent(), Isis::Progress::SetMaximumSteps(), Isis::CubeManager::SetNumOpenCubes(), and Isis::Progress::SetText().
Referenced by ControlNetStatistics(), Isis::ControlNetFilter::CubeConvexHullFilter(), Isis::ControlNetFilter::CubeDistanceFilter(), Isis::ControlNetFilter::CubeNameExpressionFilter(), Isis::ControlNetFilter::CubeNumPointsFilter(), Isis::ControlNetFilter::PointCubeNamesFilter(), Isis::ControlNetFilter::PointDistanceFilter(), Isis::ControlNetFilter::PointEditLockFilter(), Isis::ControlNetFilter::PointGoodnessOfFitFilter(), Isis::ControlNetFilter::PointIDFilter(), Isis::ControlNetFilter::PointLatLonFilter(), Isis::ControlNetFilter::PointMeasurePropertiesFilter(), Isis::ControlNetFilter::PointMeasuresFilter(), Isis::ControlNetFilter::PointNumMeasuresEditLockFilter(), Isis::ControlNetFilter::PointPixelShiftFilter(), Isis::ControlNetFilter::PointPropertiesFilter(), and Isis::ControlNetFilter::PointResMagnitudeFilter().
void Isis::ControlNetStatistics::GeneratePointStats | ( | const string & | psPointFile | ) |
Generate stats like Ignored, Fixed, Total Measures, Ignored by Control Point.
Generate the statistics of a Control Network by Point Stats include ID, Type of each Control Point and Total, Ignored measures in each Control Point.
psPointFile | - Output Point Statisitics File |
References Isis::Progress::CheckStatus(), Isis::Filename::Expanded(), Isis::ControlPoint::GetId(), Isis::ControlPoint::GetNumLockedMeasures(), Isis::ControlPoint::GetNumMeasures(), Isis::ControlNet::GetNumPoints(), Isis::ControlPoint::GetNumValidMeasures(), Isis::ControlNet::GetPoint(), Isis::ControlPoint::GetType(), Isis::ControlPoint::IsEditLocked(), Isis::ControlPoint::IsIgnored(), mCNet, mProgress, outFile, Isis::sBoolean, Isis::Progress::SetMaximumSteps(), Isis::Progress::SetText(), and Isis::sPointType.
double Isis::ControlNetStatistics::GetAverageResidual | ( | ) | [inline] |
Determine the average error of all points in the network.
References avgResidual.
Referenced by GenerateControlNetStats().
double Isis::ControlNetStatistics::GetAvgPixelShift | ( | ) | [inline] |
Returns the Image Stats by Serial Number.
psSerialNum | - Image serialNum |
Referenced by Isis::ControlNetFilter::CubeConvexHullFilter(), Isis::ControlNetFilter::CubeDistanceFilter(), Isis::ControlNetFilter::CubeNameExpressionFilter(), Isis::ControlNetFilter::CubeNumPointsFilter(), and Isis::ControlNetFilter::PointCubeNamesFilter().
double Isis::ControlNetStatistics::GetMaximumResidual | ( | ) | [inline] |
Determine the maximum error of all points in the network.
References maxResidual.
Referenced by GenerateControlNetStats().
double Isis::ControlNetStatistics::GetMaxLineResidual | ( | ) | [inline] |
Determine the maximum line error of all points in the network.
References maxLineResidual.
Referenced by GenerateControlNetStats().
double Isis::ControlNetStatistics::GetMaxLineShift | ( | void | ) | [inline] |
double Isis::ControlNetStatistics::GetMaxPixelShift | ( | ) | [inline] |
double Isis::ControlNetStatistics::GetMaxSampleResidual | ( | ) | [inline] |
Determine the maximum sample error of all points in the network.
References maxSampleResidual.
Referenced by GenerateControlNetStats().
double Isis::ControlNetStatistics::GetMaxSampleShift | ( | ) | [inline] |
double Isis::ControlNetStatistics::GetMinimumResidual | ( | ) | [inline] |
Determine the minimum error of all points in the network.
References minResidual.
Referenced by GenerateControlNetStats().
double Isis::ControlNetStatistics::GetMinLineResidual | ( | ) | [inline] |
Determine the minimum line error of all points in the network.
References minLineResidual.
Referenced by GenerateControlNetStats().
double Isis::ControlNetStatistics::GetMinLineShift | ( | void | ) | [inline] |
double Isis::ControlNetStatistics::GetMinPixelShift | ( | ) | [inline] |
double Isis::ControlNetStatistics::GetMinSampleResidual | ( | ) | [inline] |
Determine the minimum sample error of all points in the network.
References minSampleResidual.
Referenced by GenerateControlNetStats().
double Isis::ControlNetStatistics::GetMinSampleShift | ( | ) | [inline] |
int Isis::ControlNetStatistics::NumConstrainedPoints | ( | ) | [inline] |
Returns the number of Constrained Points in Control Net.
References constrainedPoints.
Referenced by GenerateControlNetStats().
int Isis::ControlNetStatistics::NumEditLockedMeasures | ( | ) | [inline] |
Returns total number of edit locked measures in the network.
References editLockedMeasures.
int Isis::ControlNetStatistics::NumEditLockedPoints | ( | ) | [inline] |
Returns total number of edit locked points.
References editLockedPoints.
int Isis::ControlNetStatistics::NumFixedPoints | ( | ) | [inline] |
Returns the Number of Fixed Points in the Control Net.
References fixedPoints.
Referenced by GenerateControlNetStats().
int Isis::ControlNetStatistics::NumFreePoints | ( | ) | [inline] |
Returns the number of Constrained Points in Control Net.
References freePoints.
Referenced by GenerateControlNetStats().
int Isis::ControlNetStatistics::NumIgnoredMeasures | ( | ) | [inline] |
Returns the total Number of Ignored Measures in the Control Net.
References ignoredMeasures.
Referenced by GenerateControlNetStats().
int Isis::ControlNetStatistics::NumIgnoredPoints | ( | ) | [inline] |
Returns the number of ignored points.
References ignoredPoints.
int Isis::ControlNetStatistics::NumMeasures | ( | ) | [inline] |
Returns the total Number of Measures in the Control Net.
References totalMeasures.
Referenced by GenerateControlNetStats().
int Isis::ControlNetStatistics::NumValidMeasures | ( | ) | [inline] |
Returns the total Number of valid Measures in the Control Net.
References validMeasures.
Referenced by GenerateControlNetStats().
int Isis::ControlNetStatistics::NumValidPoints | ( | ) | [inline] |
Returns the Number of Valid (Not Ignored) Points in the Control Net.
References validPoints.
Referenced by GenerateControlNetStats().
void Isis::ControlNetStatistics::PrintImageStats | ( | const string & | psImageFile | ) |
Print the Image Stats into specified output file.
Header: Filename, SerialNumber, TotalPoints, PointsIgnored, PointsLocked, Fixed, Constrained, Free
psImageFile | - Output Image Stats File |
References _FILEINFO_, Isis::Filename::Expanded(), Isis::SerialNumberList::Filename(), imgConstrainedPoints, imgConvexHullRatio, imgFixedPoints, imgFreePoints, imgIgnoredPoints, imgLockedPoints, imgTotalPoints, Isis::iException::Message(), mSerialNumList, outFile, Isis::SerialNumberList::Size(), and Isis::iException::User.
ControlNet* Isis::ControlNetStatistics::mCNet [protected] |
Control Network.
Referenced by ControlNetStatistics(), Isis::ControlNetFilter::CubeDistanceFilter(), GenerateControlNetStats(), GenerateImageStats(), GeneratePointStats(), Isis::ControlNetFilter::PointCubeNamesFilter(), Isis::ControlNetFilter::PointDistanceFilter(), Isis::ControlNetFilter::PointEditLockFilter(), Isis::ControlNetFilter::PointGoodnessOfFitFilter(), Isis::ControlNetFilter::PointIDFilter(), Isis::ControlNetFilter::PointLatLonFilter(), Isis::ControlNetFilter::PointMeasurePropertiesFilter(), Isis::ControlNetFilter::PointMeasuresFilter(), Isis::ControlNetFilter::PointNumMeasuresEditLockFilter(), Isis::ControlNetFilter::PointPixelShiftFilter(), Isis::ControlNetFilter::PointPropertiesFilter(), and Isis::ControlNetFilter::PointResMagnitudeFilter().
QList< ControlCubeGraphNode * > Isis::ControlNetStatistics::mCubeGraphNodes [protected] |
Referenced by GenerateImageStats().
Progress* Isis::ControlNetStatistics::mProgress [protected] |
Progress state.
Referenced by ControlNetStatistics(), GenerateImageStats(), and GeneratePointStats().
Serial Number List.
Referenced by ControlNetStatistics(), Isis::ControlNetFilter::CubeDistanceFilter(), GenerateControlNetStats(), GenerateImageStats(), Isis::ControlNetFilter::PointCubeNamesFilter(), Isis::ControlNetFilter::PointDistanceFilter(), Isis::ControlNetFilter::PointLatLonFilter(), Isis::ControlNetFilter::PointMeasurePropertiesFilter(), Isis::ControlNetFilter::PrintCubeFileSerialNum(), and PrintImageStats().
const int Isis::ControlNetStatistics::numImageStats = 11 [static] |
Referenced by GenerateImageStats().
const int Isis::ControlNetStatistics::numPointDblStats = 20 [static] |
const int Isis::ControlNetStatistics::numPointDetails = 6 [static] |
const int Isis::ControlNetStatistics::numPointIntStats = 11 [static] |