Isis 3.0 Object Programmers' Reference |
Home |
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. | |
ControlNetStatistics (ControlNet *pCNet, Progress *pProgress=0) | |
Constructor. | |
~ControlNetStatistics () | |
Destructor. | |
void | GenerateImageStats () |
Generate stats like Total, Ignored, Fixed Points in an Image. | |
void | PrintImageStats (const QString &psImageFile) |
Print the Image Stats into specified output file. | |
std::vector< double > | GetImageStatsBySerialNum (QString psSerialNum) const |
Returns the Image Stats by Serial Number. | |
void | GeneratePointStats (const QString &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 () const |
Returns the Number of Valid (Not Ignored) Points in the Control Net. | |
int | NumFixedPoints () const |
Returns the Number of Fixed Points in the Control Net. | |
int | NumConstrainedPoints () const |
Returns the number of Constrained Points in Control Net. | |
int | NumFreePoints () const |
Returns the number of Constrained Points in Control Net. | |
int | NumIgnoredPoints () const |
Returns the number of ignored points. | |
int | NumEditLockedPoints () const |
Returns total number of edit locked points. | |
int | NumMeasures () const |
Returns the total Number of Measures in the Control Net. | |
int | NumValidMeasures () const |
Returns the total Number of valid Measures in the Control Net. | |
int | NumIgnoredMeasures () const |
Returns the total Number of Ignored Measures in the Control Net. | |
int | NumEditLockedMeasures () const |
Returns total number of edit locked measures in the network. | |
double | GetAverageResidual () const |
Determine the average error of all points in the network. | |
double | GetMinimumResidual () const |
Determine the minimum error of all points in the network. | |
double | GetMaximumResidual () const |
Determine the maximum error of all points in the network. | |
double | GetMinLineResidual () const |
Determine the minimum line error of all points in the network. | |
double | GetMinSampleResidual () const |
Determine the minimum sample error of all points in the network. | |
double | GetMaxLineResidual () const |
Determine the maximum line error of all points in the network. | |
double | GetMaxSampleResidual () const |
Determine the maximum sample error of all points in the network. | |
double | GetMinLineShift () const |
Get Min and Max LineShift. | |
double | GetMaxLineShift () const |
Get network Max LineShift. | |
double | GetMinSampleShift () const |
Get network Min SampleShift. | |
double | GetMaxSampleShift () const |
Get network Max SampleShift. | |
double | GetMinPixelShift () const |
Get network Min PixelShift. | |
double | GetMaxPixelShift () const |
Get network Max PixelShift. | |
double | GetAvgPixelShift () const |
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 |
Private Member Functions | |
void | GetPointIntStats () |
Get point count stats. | |
void | GetPointDoubleStats () |
Get Point stats for Residuals and Shifts. | |
void | UpdateMinMaxStats (const Statistics &stats, ePointDoubleStats min, ePointDoubleStats max) |
void | InitPointDoubleStats () |
Init Pointstats std::vector. | |
void | InitSerialNumMap () |
Init SerialNum std::map. | |
Private Attributes | |
std::map< int, int > | mPointIntStats |
Contains std::map of different count stats. | |
std::map< int, double > | mPointDoubleStats |
Contains std::map of different computed stats. | |
std::map< QString, std::vector < double > > | mImageMap |
Contains stats by Image/Serial Num. | |
std::map< QString, bool > | mSerialNumMap |
Whether serial# is part of ControlNet. | |
int | numCNetImages |
Statistics | mConvexHullStats |
Statistics | mConvexHullRatioStats |
min, max, average convex hull stats | |
Control Network Stats.
This class is used to get statistics of Control Network by Image or by Point
2010-08-24 Sharmila Prasad Original version
2010-09-16 Sharmila Prasad Added individual image std::maps for each Point stats to correct segmentation faults.
2010-10-26 Tracie Sucharski Added missing includes to cpp after removing includes from ControlNet.h.
2011-05-03 Debbie A. Cook Added type "Constrained" to sPointType values
2011-06-07 Debbie A. Cook and Tracie Sucharski - Modified point types Ground ---—> Fixed Tie-------—> Free
2011-07-19 Sharmila Prasad - Modified for new keywords in binary control net
2011-11-03 Sharmila Prasad - Used ControlNet's CubeGraphNodes to get Image stats including Convex Hull Ratio
2011-12-21 Sharmila Prasad Fixed #634 to include stats of images not in the ControlNet
2011-12-29 Sharmila Prasad Fixed #652 to include stats of ControlMeasure Log data
2012-04-26 Jai Rideout, Steven Lambright and Stuart Sides - Fixed results of min, max, average computations. Verified results of convex hull computation. Minor refactoring but needs a lot more. References #619 because fixing the order of the cnet caused us to fix some cnet graph node bugs which caused the convex hull tests to fail.
Definition at line 74 of file ControlNetStatistics.h.
Enumeration for Point Statistics.
Definition at line 86 of file ControlNetStatistics.h.
Enumeration for Point stats like Tolerances, PixelShifts which have double data.
Definition at line 95 of file ControlNetStatistics.h.
Enumeration for Point int stats for counts such as valid points, measures etc.
Definition at line 90 of file ControlNetStatistics.h.
Enumeration for image stats.
Definition at line 101 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 48 of file ControlNetStatistics.cpp.
Isis::ControlNetStatistics::ControlNetStatistics | ( | ControlNet * | pCNet, |
Progress * | pProgress = 0 |
||
) |
Constructor.
Constructor with ControlNet.
pCNet | |
pProgress |
Definition at line 71 of file ControlNetStatistics.cpp.
Isis::ControlNetStatistics::~ControlNetStatistics | ( | ) |
Destructor.
Definition at line 84 of file ControlNetStatistics.cpp.
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 112 of file ControlNetStatistics.cpp.
References Isis::Null, 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 216 of file ControlNetStatistics.cpp.
References Isis::ControlPoint::GetType(), Isis::ControlMeasure::IsEditLocked(), Isis::Cube::lineCount(), Isis::CubeManager::OpenCube(), Isis::Cube::sampleCount(), and Isis::CubeManager::SetNumOpenCubes().
Referenced by 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 380 of file ControlNetStatistics.cpp.
References Isis::ControlPoint::GetId(), Isis::ControlPoint::GetNumLockedMeasures(), Isis::ControlPoint::GetNumValidMeasures(), Isis::ControlPoint::GetType(), Isis::sBoolean, and Isis::sPointType.
|
inline |
Determine the average error of all points in the network.
Definition at line 171 of file ControlNetStatistics.h.
References mPointDoubleStats.
|
inline |
Get network Avg PixelShift.
Definition at line 236 of file ControlNetStatistics.h.
References mPointDoubleStats.
vector< double > Isis::ControlNetStatistics::GetImageStatsBySerialNum | ( | QString | psSerialNum | ) | const |
Returns the Image Stats by Serial Number.
psSerialNum | - Image serialNum |
Definition at line 366 of file ControlNetStatistics.cpp.
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 181 of file ControlNetStatistics.h.
References mPointDoubleStats.
|
inline |
Determine the maximum line error of all points in the network.
Definition at line 196 of file ControlNetStatistics.h.
References mPointDoubleStats.
|
inline |
Get network Max LineShift.
Definition at line 211 of file ControlNetStatistics.h.
References mPointDoubleStats.
|
inline |
Get network Max PixelShift.
Definition at line 231 of file ControlNetStatistics.h.
References mPointDoubleStats.
|
inline |
Determine the maximum sample error of all points in the network.
Definition at line 201 of file ControlNetStatistics.h.
References mPointDoubleStats.
|
inline |
Get network Max SampleShift.
Definition at line 221 of file ControlNetStatistics.h.
References mPointDoubleStats.
|
inline |
Determine the minimum error of all points in the network.
Definition at line 176 of file ControlNetStatistics.h.
References mPointDoubleStats.
|
inline |
Determine the minimum line error of all points in the network.
Definition at line 186 of file ControlNetStatistics.h.
References mPointDoubleStats.
|
inline |
Get Min and Max LineShift.
Definition at line 206 of file ControlNetStatistics.h.
References mPointDoubleStats.
|
inline |
Get network Min PixelShift.
Definition at line 226 of file ControlNetStatistics.h.
References mPointDoubleStats.
|
inline |
Determine the minimum sample error of all points in the network.
Definition at line 191 of file ControlNetStatistics.h.
References mPointDoubleStats.
|
inline |
Get network Min SampleShift.
Definition at line 216 of file ControlNetStatistics.h.
References mPointDoubleStats.
|
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 493 of file ControlNetStatistics.cpp.
References Isis::Statistics::AddData(), Isis::Statistics::Average(), Isis::ControlPoint::GetMeasure(), Isis::ControlMeasure::GetResidualMagnitude(), Isis::ControlPoint::GetStatistic(), Isis::IsSpecial(), Isis::Statistics::Maximum(), Isis::Statistics::Minimum(), and Isis::Statistics::ValidPixels().
|
private |
Get point count stats.
Get network statistics for total, valid, ignored, locked points and measures.
Definition at line 421 of file ControlNetStatistics.cpp.
|
private |
Init Pointstats std::vector.
Initialize Point double stats vector.
Definition at line 480 of file ControlNetStatistics.cpp.
References Isis::Null.
|
private |
Init SerialNum std::map.
Init SerialNum map.
Definition at line 93 of file ControlNetStatistics.cpp.
|
inline |
Returns the number of Constrained Points in Control Net.
Definition at line 131 of file ControlNetStatistics.h.
References mPointIntStats.
|
inline |
Returns total number of edit locked measures in the network.
Definition at line 166 of file ControlNetStatistics.h.
References mPointIntStats.
|
inline |
Returns total number of edit locked points.
Definition at line 146 of file ControlNetStatistics.h.
References mPointIntStats.
|
inline |
Returns the Number of Fixed Points in the Control Net.
Definition at line 126 of file ControlNetStatistics.h.
References mPointIntStats.
|
inline |
Returns the number of Constrained Points in Control Net.
Definition at line 136 of file ControlNetStatistics.h.
References mPointIntStats.
|
inline |
Returns the total Number of Ignored Measures in the Control Net.
Definition at line 161 of file ControlNetStatistics.h.
References mPointIntStats.
|
inline |
Returns the number of ignored points.
Definition at line 141 of file ControlNetStatistics.h.
References mPointIntStats.
|
inline |
Returns the total Number of Measures in the Control Net.
Definition at line 151 of file ControlNetStatistics.h.
References mPointIntStats.
|
inline |
Returns the total Number of valid Measures in the Control Net.
Definition at line 156 of file ControlNetStatistics.h.
References mPointIntStats.
|
inline |
Returns the Number of Valid (Not Ignored) Points in the Control Net.
Definition at line 121 of file ControlNetStatistics.h.
References mPointIntStats.
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 320 of file ControlNetStatistics.cpp.
References _FILEINFO_.
|
protected |
Control Network.
Definition at line 242 of file ControlNetStatistics.h.
Referenced by Isis::ControlNetFilter::CubeDistanceFilter(), Isis::ControlNetFilter::FilterOutMeasuresBySerialNum(), Isis::ControlNetFilter::FilterOutPoint(), 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().
|
private |
min, max, average convex hull stats
Definition at line 270 of file ControlNetStatistics.h.
|
private |
Contains stats by Image/Serial Num.
Definition at line 249 of file ControlNetStatistics.h.
|
private |
Contains std::map of different computed stats.
Definition at line 248 of file ControlNetStatistics.h.
Referenced by GetAverageResidual(), GetAvgPixelShift(), GetMaximumResidual(), GetMaxLineResidual(), GetMaxLineShift(), GetMaxPixelShift(), GetMaxSampleResidual(), GetMaxSampleShift(), GetMinimumResidual(), GetMinLineResidual(), GetMinLineShift(), GetMinPixelShift(), GetMinSampleResidual(), and GetMinSampleShift().
|
private |
Contains std::map of different count stats.
Definition at line 247 of file ControlNetStatistics.h.
Referenced by NumConstrainedPoints(), NumEditLockedMeasures(), NumEditLockedPoints(), NumFixedPoints(), NumFreePoints(), NumIgnoredMeasures(), NumIgnoredPoints(), NumMeasures(), NumValidMeasures(), and NumValidPoints().
|
protected |
Progress state.
Definition at line 243 of file ControlNetStatistics.h.
|
protected |
Serial Number List.
Definition at line 241 of file ControlNetStatistics.h.
Referenced by Isis::ControlNetFilter::CubeDistanceFilter(), Isis::ControlNetFilter::PointCubeNamesFilter(), Isis::ControlNetFilter::PointDistanceFilter(), Isis::ControlNetFilter::PointLatLonFilter(), Isis::ControlNetFilter::PointMeasurePropertiesFilter(), and Isis::ControlNetFilter::PrintCubeFileSerialNum().
|
private |
Whether serial# is part of ControlNet.
Definition at line 250 of file ControlNetStatistics.h.