![]() |
Isis 3 Programmer Reference
|
Control Network Stats. More...
#include <ControlNetStatistics.h>
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 QString &psSerialNumFile, Progress *pProgress=0) | |
Constructor. More... | |
ControlNetStatistics (ControlNet *pCNet, Progress *pProgress=0) | |
Constructor. More... | |
~ControlNetStatistics () | |
Destructor. More... | |
void | GenerateImageStats () |
Generate stats like Total, Ignored, Fixed Points in an Image. More... | |
void | PrintImageStats (const QString &psImageFile) |
Print the Image Stats into specified output file. More... | |
QVector< double > | GetImageStatsBySerialNum (QString psSerialNum) const |
Returns the Image Stats by Serial Number. More... | |
void | GeneratePointStats (const QString &psPointFile) |
Generate stats like Ignored, Fixed, Total Measures, Ignored by Control Point. More... | |
void | GenerateControlNetStats (PvlGroup &pStatsGrp) |
Generate the Control Net Stats into the PvlGroup. More... | |
int | NumValidPoints () const |
Returns the Number of Valid (Not Ignored) Points in the Control Net. More... | |
int | NumFixedPoints () const |
Returns the Number of Fixed Points in the Control Net. More... | |
int | NumConstrainedPoints () const |
Returns the number of Constrained Points in Control Net. More... | |
int | NumFreePoints () const |
Returns the number of Constrained Points in Control Net. More... | |
int | NumIgnoredPoints () const |
Returns the number of ignored points. More... | |
int | NumEditLockedPoints () const |
Returns total number of edit locked points. More... | |
int | NumMeasures () const |
Returns the total Number of Measures in the Control Net. More... | |
int | NumValidMeasures () const |
Returns the total Number of valid Measures in the Control Net. More... | |
int | NumIgnoredMeasures () const |
Returns the total Number of Ignored Measures in the Control Net. More... | |
int | NumEditLockedMeasures () const |
Returns total number of edit locked measures in the network. More... | |
double | GetAverageResidual () const |
Determine the average error of all points in the network. More... | |
double | GetMinimumResidual () const |
Determine the minimum error of all points in the network. More... | |
double | GetMaximumResidual () const |
Determine the maximum error of all points in the network. More... | |
double | GetMinLineResidual () const |
Determine the minimum line error of all points in the network. More... | |
double | GetMinSampleResidual () const |
Determine the minimum sample error of all points in the network. More... | |
double | GetMaxLineResidual () const |
Determine the maximum line error of all points in the network. More... | |
double | GetMaxSampleResidual () const |
Determine the maximum sample error of all points in the network. More... | |
double | GetMinLineShift () const |
Get Min and Max LineShift. More... | |
double | GetMaxLineShift () const |
Get network Max LineShift. More... | |
double | GetMinSampleShift () const |
Get network Min SampleShift. More... | |
double | GetMaxSampleShift () const |
Get network Max SampleShift. More... | |
double | GetMinPixelShift () const |
Get network Min PixelShift. More... | |
double | GetMaxPixelShift () const |
Get network Max PixelShift. More... | |
double | GetAvgPixelShift () const |
Get network Avg PixelShift. More... | |
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. More... | |
ControlNet * | mCNet |
Control Network. More... | |
Progress * | mProgress |
Progress state. More... | |
Private Member Functions | |
void | GetPointIntStats () |
Get point count stats. More... | |
void | GetPointDoubleStats () |
Get Point stats for Residuals and Shifts. More... | |
void | UpdateMinMaxStats (const Statistics &stats, ePointDoubleStats min, ePointDoubleStats max) |
void | InitPointDoubleStats () |
Init Pointstats std::vector. More... | |
void | InitSerialNumMap () |
Init SerialNum std::map. More... | |
Private Attributes | |
QMap< int, int > | mPointIntStats |
Contains QMap of different count stats. More... | |
QMap< int, double > | mPointDoubleStats |
Contains QMap of different computed stats. More... | |
QMap< QString, QVector< double > > | mImageMap |
Contains stats by Image/Serial Num. More... | |
QMap< QString, bool > | mSerialNumMap |
Whether serial# is part of ControlNet. More... | |
int | numCNetImages |
Statistics | mConvexHullStats |
Statistics | mConvexHullRatioStats |
min, max, average convex hull stats More... | |
Control Network Stats.
This class is used to get statistics of Control Network by Image or by Point
Definition at line 63 of file ControlNetStatistics.h.
Enumeration for Point Statistics.
Definition at line 75 of file ControlNetStatistics.h.
Enumeration for Point stats like Tolerances, PixelShifts which have double data.
Definition at line 84 of file ControlNetStatistics.h.
Enumeration for Point int stats for counts such as valid points, measures etc.
Definition at line 79 of file ControlNetStatistics.h.
Enumeration for image stats.
Definition at line 90 of file ControlNetStatistics.h.
Isis::ControlNetStatistics::ControlNetStatistics | ( | ControlNet * | pCNet, |
const QString & | 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 |
Definition at line 52 of file ControlNetStatistics.cpp.
References GenerateImageStats(), GetPointDoubleStats(), GetPointIntStats(), InitSerialNumMap(), mCNet, mProgress, and mSerialNumList.
Isis::ControlNetStatistics::ControlNetStatistics | ( | ControlNet * | pCNet, |
Progress * | pProgress = 0 |
||
) |
Constructor.
Constructor with ControlNet.
pCNet | |
pProgress |
Definition at line 75 of file ControlNetStatistics.cpp.
References GetPointDoubleStats(), GetPointIntStats(), mCNet, and mProgress.
Isis::ControlNetStatistics::~ControlNetStatistics | ( | ) |
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
Definition at line 116 of file ControlNetStatistics.cpp.
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(), Isis::Statistics::Maximum(), mCNet, mConvexHullRatioStats, Isis::Statistics::Minimum(), mPointDoubleStats, mSerialNumList, Isis::Null, NumConstrainedPoints(), NumFixedPoints(), NumFreePoints(), NumIgnoredMeasures(), NumMeasures(), NumValidMeasures(), NumValidPoints(), Isis::SerialNumberList::size(), and Isis::toString().
void Isis::ControlNetStatistics::GenerateImageStats | ( | ) |
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.
Definition at line 220 of file ControlNetStatistics.cpp.
References Isis::Statistics::AddData(), Isis::Progress::CheckStatus(), Isis::ControlPoint::Constrained, Isis::SerialNumberList::fileName(), Isis::ControlPoint::Fixed, Isis::ControlPoint::Free, Isis::ControlNet::GetCubeSerials(), Isis::ControlNet::GetMeasuresInCube(), Isis::ControlPoint::GetType(), Isis::ControlMeasure::IsEditLocked(), Isis::Cube::lineCount(), mCNet, mConvexHullRatioStats, mImageMap, mProgress, mSerialNumList, mSerialNumMap, Isis::CubeManager::OpenCube(), Isis::Cube::sampleCount(), 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 QString & | 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 |
Definition at line 393 of file ControlNetStatistics.cpp.
References Isis::Progress::CheckStatus(), Isis::FileName::expanded(), Isis::ControlPoint::GetId(), Isis::ControlPoint::GetNumLockedMeasures(), Isis::ControlNet::GetNumPoints(), Isis::ControlPoint::GetNumValidMeasures(), Isis::ControlPoint::GetType(), Isis::IException::Io, mCNet, mProgress, Isis::sBoolean, Isis::Progress::SetMaximumSteps(), Isis::Progress::SetText(), and Isis::sPointType.
|
inline |
Determine the average error of all points in the network.
Definition at line 160 of file ControlNetStatistics.h.
References mPointDoubleStats.
Referenced by GenerateControlNetStats().
|
inline |
Get network Avg PixelShift.
Definition at line 225 of file ControlNetStatistics.h.
References mPointDoubleStats.
Referenced by GenerateControlNetStats().
QVector< double > Isis::ControlNetStatistics::GetImageStatsBySerialNum | ( | QString | psSerialNum | ) | const |
Returns the Image Stats by Serial Number.
psSerialNum | - Image serialNum |
Definition at line 379 of file ControlNetStatistics.cpp.
References mImageMap.
Referenced by Isis::ControlNetFilter::CubeConvexHullFilter(), Isis::ControlNetFilter::CubeDistanceFilter(), Isis::ControlNetFilter::CubeNameExpressionFilter(), Isis::ControlNetFilter::CubeNumPointsFilter(), and Isis::ControlNetFilter::PointCubeNamesFilter().
|
inline |
Determine the maximum error of all points in the network.
Definition at line 170 of file ControlNetStatistics.h.
References mPointDoubleStats.
Referenced by GenerateControlNetStats().
|
inline |
Determine the maximum line error of all points in the network.
Definition at line 185 of file ControlNetStatistics.h.
References mPointDoubleStats.
Referenced by GenerateControlNetStats().
|
inline |
Get network Max LineShift.
Definition at line 200 of file ControlNetStatistics.h.
References mPointDoubleStats.
Referenced by GenerateControlNetStats().
|
inline |
Get network Max PixelShift.
Definition at line 220 of file ControlNetStatistics.h.
References mPointDoubleStats.
Referenced by GenerateControlNetStats().
|
inline |
Determine the maximum sample error of all points in the network.
Definition at line 190 of file ControlNetStatistics.h.
References mPointDoubleStats.
Referenced by GenerateControlNetStats().
|
inline |
Get network Max SampleShift.
Definition at line 210 of file ControlNetStatistics.h.
References mPointDoubleStats.
Referenced by GenerateControlNetStats().
|
inline |
Determine the minimum error of all points in the network.
Definition at line 165 of file ControlNetStatistics.h.
References mPointDoubleStats.
Referenced by GenerateControlNetStats().
|
inline |
Determine the minimum line error of all points in the network.
Definition at line 175 of file ControlNetStatistics.h.
References mPointDoubleStats.
Referenced by GenerateControlNetStats().
|
inline |
Get Min and Max LineShift.
Definition at line 195 of file ControlNetStatistics.h.
References mPointDoubleStats.
Referenced by GenerateControlNetStats().
|
inline |
Get network Min PixelShift.
Definition at line 215 of file ControlNetStatistics.h.
References mPointDoubleStats.
Referenced by GenerateControlNetStats().
|
inline |
Determine the minimum sample error of all points in the network.
Definition at line 180 of file ControlNetStatistics.h.
References mPointDoubleStats.
Referenced by GenerateControlNetStats().
|
inline |
Get network Min SampleShift.
Definition at line 205 of file ControlNetStatistics.h.
References mPointDoubleStats.
Referenced by GenerateControlNetStats().
|
private |
Get Point stats for Residuals and Shifts.
Get the Network Statistics for Residuals (line, sample, magnitude) and Shifts (line, sample, pixel)
Definition at line 518 of file ControlNetStatistics.cpp.
References Isis::Statistics::AddData(), Isis::Statistics::Average(), Isis::ControlPoint::GetMeasure(), Isis::ControlNet::GetNumPoints(), Isis::ControlMeasure::GetResidualMagnitude(), Isis::ControlPoint::GetStatistic(), Isis::ControlMeasureLogData::GoodnessOfFit, InitPointDoubleStats(), Isis::IsSpecial(), Isis::Statistics::Maximum(), Isis::ControlMeasureLogData::MaximumPixelZScore, mCNet, Isis::Statistics::Minimum(), Isis::ControlMeasureLogData::MinimumPixelZScore, mPointDoubleStats, and Isis::Statistics::ValidPixels().
Referenced by ControlNetStatistics().
|
private |
Get point count stats.
Get network statistics for total, valid, ignored, locked points and measures.
Definition at line 446 of file ControlNetStatistics.cpp.
References Isis::ControlPoint::Constrained, Isis::ControlPoint::Fixed, Isis::ControlPoint::Free, Isis::ControlPoint::GetNumLockedMeasures(), Isis::ControlNet::GetNumPoints(), Isis::ControlPoint::GetNumValidMeasures(), Isis::ControlPoint::GetType(), mCNet, and mPointIntStats.
Referenced by ControlNetStatistics().
|
private |
Init Pointstats std::vector.
Initialize Point double stats vector.
Definition at line 505 of file ControlNetStatistics.cpp.
References mPointDoubleStats, and Isis::Null.
Referenced by GetPointDoubleStats().
|
private |
Init SerialNum std::map.
Init SerialNum map.
Definition at line 97 of file ControlNetStatistics.cpp.
References mSerialNumList, mSerialNumMap, Isis::SerialNumberList::serialNumber(), and Isis::SerialNumberList::size().
Referenced by ControlNetStatistics().
|
inline |
Returns the number of Constrained Points in Control Net.
Definition at line 120 of file ControlNetStatistics.h.
References mPointIntStats.
Referenced by GenerateControlNetStats().
|
inline |
Returns total number of edit locked measures in the network.
Definition at line 155 of file ControlNetStatistics.h.
References mPointIntStats.
|
inline |
Returns total number of edit locked points.
Definition at line 135 of file ControlNetStatistics.h.
References mPointIntStats.
|
inline |
Returns the Number of Fixed Points in the Control Net.
Definition at line 115 of file ControlNetStatistics.h.
References mPointIntStats.
Referenced by GenerateControlNetStats().
|
inline |
Returns the number of Constrained Points in Control Net.
Definition at line 125 of file ControlNetStatistics.h.
References mPointIntStats.
Referenced by GenerateControlNetStats().
|
inline |
Returns the total Number of Ignored Measures in the Control Net.
Definition at line 150 of file ControlNetStatistics.h.
References mPointIntStats.
Referenced by GenerateControlNetStats().
|
inline |
Returns the number of ignored points.
Definition at line 130 of file ControlNetStatistics.h.
References mPointIntStats.
|
inline |
Returns the total Number of Measures in the Control Net.
Definition at line 140 of file ControlNetStatistics.h.
References mPointIntStats.
Referenced by GenerateControlNetStats().
|
inline |
Returns the total Number of valid Measures in the Control Net.
Definition at line 145 of file ControlNetStatistics.h.
References mPointIntStats.
Referenced by GenerateControlNetStats().
|
inline |
Returns the Number of Valid (Not Ignored) Points in the Control Net.
Definition at line 110 of file ControlNetStatistics.h.
References mPointIntStats.
Referenced by GenerateControlNetStats().
void Isis::ControlNetStatistics::PrintImageStats | ( | const QString & | psImageFile | ) |
Print the Image Stats into specified output file.
Header: FileName, SerialNumber, TotalPoints, PointsIgnored, PointsLocked, Fixed, Constrained, Free
psImageFile | - Output Image Stats File |
Definition at line 323 of file ControlNetStatistics.cpp.
References Isis::FileName::expanded(), Isis::SerialNumberList::fileName(), Isis::IException::Io, mImageMap, mSerialNumList, mSerialNumMap, Isis::SerialNumberList::size(), and Isis::IException::User.
|
protected |
Control Network.
Definition at line 231 of file ControlNetStatistics.h.
Referenced by ControlNetStatistics(), Isis::ControlNetFilter::CubeDistanceFilter(), Isis::ControlNetFilter::FilterOutMeasuresBySerialNum(), Isis::ControlNetFilter::FilterOutPoint(), GenerateControlNetStats(), GenerateImageStats(), GeneratePointStats(), GetPointDoubleStats(), GetPointIntStats(), 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(), Isis::ControlNetFilter::PointResMagnitudeFilter(), and ~ControlNetStatistics().
|
private |
min, max, average convex hull stats
Definition at line 258 of file ControlNetStatistics.h.
Referenced by GenerateControlNetStats(), and GenerateImageStats().
Contains stats by Image/Serial Num.
Definition at line 237 of file ControlNetStatistics.h.
Referenced by GenerateImageStats(), GetImageStatsBySerialNum(), and PrintImageStats().
|
private |
Contains QMap of different computed stats.
Definition at line 236 of file ControlNetStatistics.h.
Referenced by GenerateControlNetStats(), GetAverageResidual(), GetAvgPixelShift(), GetMaximumResidual(), GetMaxLineResidual(), GetMaxLineShift(), GetMaxPixelShift(), GetMaxSampleResidual(), GetMaxSampleShift(), GetMinimumResidual(), GetMinLineResidual(), GetMinLineShift(), GetMinPixelShift(), GetMinSampleResidual(), GetMinSampleShift(), GetPointDoubleStats(), and InitPointDoubleStats().
|
private |
Contains QMap of different count stats.
Definition at line 235 of file ControlNetStatistics.h.
Referenced by GetPointIntStats(), NumConstrainedPoints(), NumEditLockedMeasures(), NumEditLockedPoints(), NumFixedPoints(), NumFreePoints(), NumIgnoredMeasures(), NumIgnoredPoints(), NumMeasures(), NumValidMeasures(), and NumValidPoints().
|
protected |
Progress state.
Definition at line 232 of file ControlNetStatistics.h.
Referenced by ControlNetStatistics(), GenerateImageStats(), and GeneratePointStats().
|
protected |
Serial Number List.
Definition at line 230 of file ControlNetStatistics.h.
Referenced by ControlNetStatistics(), Isis::ControlNetFilter::CubeDistanceFilter(), GenerateControlNetStats(), GenerateImageStats(), InitSerialNumMap(), Isis::ControlNetFilter::PointCubeNamesFilter(), Isis::ControlNetFilter::PointDistanceFilter(), Isis::ControlNetFilter::PointLatLonFilter(), Isis::ControlNetFilter::PointMeasurePropertiesFilter(), Isis::ControlNetFilter::PrintCubeFileSerialNum(), and PrintImageStats().
|
private |
Whether serial# is part of ControlNet.
Definition at line 238 of file ControlNetStatistics.h.
Referenced by GenerateImageStats(), InitSerialNumMap(), and PrintImageStats().
U.S. Department of the Interior | U.S. Geological Survey ISIS | Privacy & Disclaimers | Astrogeology Research Program To contact us, please post comments and questions on the USGS Astrogeology Discussion Board To report a bug, or suggest a feature go to: ISIS Github File Modified: 07/13/2023 15:18:33 |