Isis 3 Programmer Reference
Isis::ControlNetValidMeasure Class Reference

ControlNetValidMeasure class. More...

#include <ControlNetValidMeasure.h>

Inheritance diagram for Isis::ControlNetValidMeasure:
Inheritance graph
Collaboration diagram for Isis::ControlNetValidMeasure:
Collaboration graph

Public Member Functions

 ControlNetValidMeasure (Pvl *pvl=0)
 Constructor - Initializes the data members and parses the input Pvl . More...
 
 ControlNetValidMeasure (Pvl &pvl)
 Constructor with a reference to Pvl Def file. More...
 
void InitStdOptions (void)
 Initialize the Standard Options. More...
 
void InitStdOptionsGroup (void)
 Initialize the Standard Options Pvl Group with no DefFile. More...
 
virtual ~ControlNetValidMeasure ()
 Destructor: clean up stuff relevant for this class. More...
 
void Parse (Pvl &pvlDef)
 Parse the DefFile for Standard Options. More...
 
virtual PvlGetLogPvl (void)
 Get the Pvl Log file. More...
 
virtual void FindCnetRef (ControlNet &pNewNet)
 Virtual Function to get better references for a Control Network based on Criteria. More...
 
bool ValidEmissionAngle (double pdEmissionAngle)
 Validate whether the Emission Angle is in the set Range. More...
 
bool ValidIncidenceAngle (double pdIncidenceAngle)
 Validate whether the Incidence Angle is in the set Range. More...
 
bool ValidDnValue (double pdDnValue)
 Validate whether the DN Value is in the set Range. More...
 
bool ValidResolution (double pdResolution)
 Validate whether the Resolution is in the set Range. More...
 
bool ValidResidualTolerances (double pdSampleResidual, double pdLineResidual, double pdResidualMagnitude, MeasureValidationResults &pResults)
 Validate whether the Residuals are within the set Tolerance. More...
 
bool ValidShiftTolerances (double sampleShift, double lineShift, double pixelShift, MeasureValidationResults &results)
 Validate whether the Sample and Line Shifts and Pixel Shift are within the set Tolerances. More...
 
bool ValidLatLon (Isis::Camera *pCamera, int piSample, int piLine)
 Validate the Lat/Lon. More...
 
PvlGroupGetStdOptions (void)
 Get the Standard Options Pvl Group. More...
 
PvlGroupGetStatistics (void)
 Get the Statistics Pvl Grp. More...
 
double GetMinDN (void)
 Get the option MinDN. More...
 
double GetMaxDN (void)
 Get the option MaxDN. More...
 
double GetMinEmissionAngle (void)
 Get the option MinEmissionAngle. More...
 
double GetMaxEmissionAngle (void)
 Get the option MaxEmissionAngle. More...
 
double GetMinIncidenceAngle (void)
 Get the option MinIncidenceAngle. More...
 
double GetMaxIncidenceAngle (void)
 Get the option MaxIncidenceAngle. More...
 
double GetPixelsFromEdge (void)
 Get the option PixelsFromEdge. More...
 
double GetMetersFromEdge (void)
 Get the option MetersFromEdge. More...
 
QString LocationString (double pdSample, double pdLine) const
 API to display location in the form "Sample,Line". More...
 
bool PixelsFromEdge (int piSample, int piLine, Cube *pCube)
 Test for a point to be user defined number of pixels from the edge. More...
 
bool MetersFromEdge (int piSample, int piLine, Cube *pCube)
 Test for a point to be user defined number of meters from the edge. More...
 
MeasureValidationResults ValidStandardOptions (const ControlMeasure *pMeasure, Cube *pCube, PvlGroup *pMeasureGrp=NULL)
 Validate Standard options to pick a reference based on a particular criteria. More...
 
MeasureValidationResults ValidStandardOptions (const ControlMeasure *pMeasure, Cube *pCube, Camera *camera, PvlGroup *pMeasureGrp=NULL)
 Validate Standard options to pick a reference based on a particular criteria. More...
 
MeasureValidationResults ValidStandardOptions (double pSample, double pLine, const ControlMeasure *pMeasure, Cube *pCube, PvlGroup *pMeasureGrp=NULL)
 Validate Standard options to pick a reference based on a particular criteria. More...
 
MeasureValidationResults ValidStandardOptions (double pSample, double pLine, const ControlMeasure *pMeasure, Cube *pCube, Camera *measureCamera, PvlGroup *pMeasureGrp=NULL)
 
MeasureValidationResults ValidStandardOptions (double pSample, double pLine, Cube *pCube, PvlGroup *pMeasureGrp=NULL)
 Validate Standard options to pick a reference based on a particular criteria. More...
 
bool IsCubeRequired ()
 
bool IsCameraRequired ()
 API to get status of CameraRequired flag. More...
 

Protected Member Functions

void ValidatePvlDN (void)
 Validate PVL Min & Max DN Standard Options. More...
 
void ValidatePvlEmissionAngle (void)
 Validate PVL Min & Max EmissionAngle Standard Options. More...
 
void ValidatePvlIncidenceAngle (void)
 Validate PVL Min & Max IncidenceAngle Standard Options. More...
 
void ValidatePvlResolution (void)
 Validate PVL Min & Max Resolution Standard Options. More...
 
void ValidatePvlFromEdge (void)
 Validate and read Pixels and Meters from Edge Standard Options. More...
 
void ValidatePvlResidualTolerances (void)
 Validate Pvl Sample, Line, Residual Magnitude Tolerances. More...
 
void ValidatePvlShiftTolerances ()
 Validate Pvl Sample, Line, Pixel (Sample and Line) Magnitude Shift Tolerances. More...
 
void ReadSerialNumbers (QString psSerialNumfile)
 Read the Serial Numbers from the file and open assocaited cubes. More...
 
void SetCameraRequiredFlag (bool pbFlag)
 Set the CameraRequired Flag. More...
 

Protected Attributes

double mdMinDN
 Standard Option MinDN. More...
 
double mdMaxDN
 Standard Option MaxDN. More...
 
double mdMinResolution
 Standard Option MinResolution. More...
 
double mdMaxResolution
 Standard Option MaxResolution. More...
 
double mdMinEmissionAngle
 Standard Option MinEmissionAngle. More...
 
double mdMaxEmissionAngle
 Standard Option MaxEmissionAngle. More...
 
double mdMinIncidenceAngle
 Standard Option MinIncidenceAngle. More...
 
double mdMaxIncidenceAngle
 Standard Option MaxIncidenceAngle. More...
 
double mdMetersFromEdge
 Standard Option MeteresFromEdge. More...
 
int miPixelsFromEdge
 Standard Option PixelsFromEdge. More...
 
double mdSampleResTolerance
 Standard Option Sample Residual. More...
 
double mdLineResTolerance
 Standard Option Line Residual. More...
 
double mdResidualTolerance
 Standard Option Residual Magnitude. More...
 
double m_sampleShiftTolerance
 Standard Option Sample Shift. More...
 
double m_lineShiftTolerance
 Standard Option Line Shift. More...
 
double m_pixelShiftTolerance
 Standard Option Pixel Shift. More...
 
double mdEmissionAngle
 Store current Measure's Emission Angle. More...
 
double mdIncidenceAngle
 Store current Measure's Incidence Angle. More...
 
double mdResolution
 Store current Measure's Resolution. More...
 
double mdDnValue
 Store current Measure's DN Value. More...
 
double mdSampleResidual
 Store current Measure's Sample Residual. More...
 
double mdLineResidual
 Store current Measure's Line Residual. More...
 
double mdResidualMagnitude
 Store current Measure's Residual Magnitude. More...
 
double m_sampleShift
 Store current Measure's Sample Shift. More...
 
double m_lineShift
 Store current Measure's Line Shift. More...
 
double m_pixelShift
 Store current Measure's Pixel Shift. More...
 
PvlGroup mPvlOpGrp
 Pvl Operator Group. More...
 
PvlGroup mStdOptionsGrp
 Pvl Standard Options Group. More...
 
PvlGroup mStatisticsGrp
 Pvl output Statistics Group. More...
 
Pvl mPvlLog
 Pvl Log of all the processing. More...
 
Progress mStatus
 Monitor the status of the app. More...
 
CubeManager mCubeMgr
 CubeManager to open and read cubes. More...
 
SerialNumberList mSerialNumbers
 Serial numbers list. More...
 
bool mbCameraRequired
 To improve speed, flag to indicate if Camera needs to be opened. More...
 
bool mbValidateDN
 Check if DN needs to be Validated. More...
 
bool mbValidateFromEdge
 Check if Pixels/Meters from edge needs to be Validated. More...
 

Detailed Description

ControlNetValidMeasure class.

Base class to validate all the common Control Network options specific to Control Network applications.

See also
cnetref autoseed etc.
Author
2010-05-11 Sharmila Prasad
History:
2010-05-11 Sharmila Prasad - Original Version
History:
2010-06-21 Sharmila Prasad - Remove references to UniversalGroundMap & Cubes use CubeManager instead
History:
2010-06-23 Sharmila Prasad - Added Pixels/Meters from the edge options and Validate Standard Options
History:
2010-09-16 Sharmila Prasad - Renamed to ControlNetValidMeasure for uniformity with other ControlNet Classes
History:
2010-10-14 Sharmila Prasad - Use only a single copy of Control Net
History:
2010-11-10 Sharmila Prasad - Change group name of DefFile from "Operator" to "ValidMeasure"
History:
2011-05-17 Sharmila Prasad - Added Sample, Line Residuals and Residual Magnitude for validation
History:
2011-05-19 Sharmila Prasad - Flag to indicate whether Camera is required, to increase the processing speed
History:
2011-06-06 Sharmila Prasad - Process the options only is specified in the DefFile to improve run time
History:
2011-11-21 Sharmila Prasad - Validate/Parse Pvl only if ValidMeasure Group is found. Fixes Mantis #584
History:
2013-01-31 Steven Lambright - Fixed LocationString() to return valid text. Also, added a test for this text. Fixes #1436.
History:
2014-03-03 Janet Barrett - Initialize the mdDnValue variable in the ValidStandardOptions method. Fixes #2040.
History:
2016-07-13 Adam Paquette - Updated ValidStandardOptions to only get the EmissionAngle, IncidenceAngle, and PixelResolution if an image was properly set.

Definition at line 75 of file ControlNetValidMeasure.h.

Constructor & Destructor Documentation

◆ ControlNetValidMeasure() [1/2]

Isis::ControlNetValidMeasure::ControlNetValidMeasure ( Pvl pPvl = 0)

Constructor - Initializes the data members and parses the input Pvl .

The Pvl Def File is optional.

Author
Sharmila Prasad (5/13/2010)
Parameters
pPvl- Pvl DefFile

Definition at line 29 of file ControlNetValidMeasure.cpp.

References Isis::PvlObject::hasGroup(), InitStdOptions(), InitStdOptionsGroup(), mStatisticsGrp, and Parse().

◆ ControlNetValidMeasure() [2/2]

Isis::ControlNetValidMeasure::ControlNetValidMeasure ( Pvl pPvl)

Constructor with a reference to Pvl Def file.

Used for Interest Operator where Def File is a requirement

Author
Sharmila Prasad (6/8/2010)
Parameters
pPvl- Pvl DefFile

Definition at line 49 of file ControlNetValidMeasure.cpp.

References Isis::PvlObject::hasGroup(), InitStdOptions(), InitStdOptionsGroup(), mStatisticsGrp, and Parse().

◆ ~ControlNetValidMeasure()

Isis::ControlNetValidMeasure::~ControlNetValidMeasure ( )
virtual

Destructor: clean up stuff relevant for this class.

Author
Sharmila Prasad (6/3/2010)

Definition at line 124 of file ControlNetValidMeasure.cpp.

References Isis::CubeManager::CleanCubes(), and mCubeMgr.

Member Function Documentation

◆ FindCnetRef()

virtual void Isis::ControlNetValidMeasure::FindCnetRef ( ControlNet pNewNet)
inlinevirtual

Virtual Function to get better references for a Control Network based on Criteria.

Reimplemented in Isis::InterestOperator.

Definition at line 97 of file ControlNetValidMeasure.h.

◆ GetLogPvl()

virtual Pvl& Isis::ControlNetValidMeasure::GetLogPvl ( void  )
inlinevirtual

Get the Pvl Log file.

Definition at line 92 of file ControlNetValidMeasure.h.

References mPvlLog.

◆ GetMaxDN()

double Isis::ControlNetValidMeasure::GetMaxDN ( void  )
inline

Get the option MaxDN.

Definition at line 137 of file ControlNetValidMeasure.h.

References mdMaxDN.

◆ GetMaxEmissionAngle()

double Isis::ControlNetValidMeasure::GetMaxEmissionAngle ( void  )
inline

Get the option MaxEmissionAngle.

Definition at line 147 of file ControlNetValidMeasure.h.

References mdMaxEmissionAngle.

◆ GetMaxIncidenceAngle()

double Isis::ControlNetValidMeasure::GetMaxIncidenceAngle ( void  )
inline

Get the option MaxIncidenceAngle.

Definition at line 157 of file ControlNetValidMeasure.h.

References mdMaxIncidenceAngle.

◆ GetMetersFromEdge()

double Isis::ControlNetValidMeasure::GetMetersFromEdge ( void  )
inline

Get the option MetersFromEdge.

Definition at line 167 of file ControlNetValidMeasure.h.

References mdMetersFromEdge.

◆ GetMinDN()

double Isis::ControlNetValidMeasure::GetMinDN ( void  )
inline

Get the option MinDN.

Definition at line 132 of file ControlNetValidMeasure.h.

References mdMinDN.

◆ GetMinEmissionAngle()

double Isis::ControlNetValidMeasure::GetMinEmissionAngle ( void  )
inline

Get the option MinEmissionAngle.

Definition at line 142 of file ControlNetValidMeasure.h.

References mdMinEmissionAngle.

◆ GetMinIncidenceAngle()

double Isis::ControlNetValidMeasure::GetMinIncidenceAngle ( void  )
inline

Get the option MinIncidenceAngle.

Definition at line 152 of file ControlNetValidMeasure.h.

References mdMinIncidenceAngle.

◆ GetPixelsFromEdge()

double Isis::ControlNetValidMeasure::GetPixelsFromEdge ( void  )
inline

Get the option PixelsFromEdge.

Definition at line 162 of file ControlNetValidMeasure.h.

References miPixelsFromEdge.

◆ GetStatistics()

PvlGroup& Isis::ControlNetValidMeasure::GetStatistics ( void  )
inline

Get the Statistics Pvl Grp.

Definition at line 127 of file ControlNetValidMeasure.h.

References mStatisticsGrp.

◆ GetStdOptions()

PvlGroup& Isis::ControlNetValidMeasure::GetStdOptions ( void  )
inline

Get the Standard Options Pvl Group.

Definition at line 122 of file ControlNetValidMeasure.h.

References mStdOptionsGrp.

◆ InitStdOptions()

void Isis::ControlNetValidMeasure::InitStdOptions ( void  )

◆ InitStdOptionsGroup()

void Isis::ControlNetValidMeasure::InitStdOptionsGroup ( void  )

◆ IsCameraRequired()

bool Isis::ControlNetValidMeasure::IsCameraRequired ( )
inline

API to get status of CameraRequired flag.

Author
Sharmila Prasad (5/19/2011)
Returns
bool

Definition at line 213 of file ControlNetValidMeasure.h.

References mbCameraRequired.

◆ LocationString()

QString Isis::ControlNetValidMeasure::LocationString ( double  pdSample,
double  pdLine 
) const
inline

API to display location in the form "Sample,Line".

Definition at line 172 of file ControlNetValidMeasure.h.

References Isis::toString().

Referenced by Isis::InterestOperator::FindCnetRef(), and Isis::InterestOperator::ProcessLocked_Point_Reference().

◆ MetersFromEdge()

bool Isis::ControlNetValidMeasure::MetersFromEdge ( int  piSample,
int  piLine,
Cube pCube 
)

Test for a point to be user defined number of meters from the edge.

Validate if a point in Measure is user defined number of meters from the edge.

Author
Sharmila Prasad (6/21/2010)
Parameters
piSample- Point Sample Location
piLine- Point Line Location
pCube- Control Measure Cube
Returns
bool

Definition at line 866 of file ControlNetValidMeasure.cpp.

References Isis::Cube::camera(), Isis::Cube::fileName(), Isis::Cube::lineCount(), mdMetersFromEdge, Isis::Camera::PixelResolution(), Isis::Cube::sampleCount(), Isis::Camera::SetImage(), and Isis::IException::User.

◆ Parse()

void Isis::ControlNetValidMeasure::Parse ( Pvl pvlDef)

Parse the DefFile for Standard Options.

Virtual member that parses the common Cnet Options and checks for their validity.

Author
Sharmila Prasad (5/13/2010)
Parameters
pvlDef- Pvl DefFile

Definition at line 150 of file ControlNetValidMeasure.cpp.

References Isis::PvlObject::findGroup(), mPvlLog, mPvlOpGrp, mStdOptionsGrp, Isis::PvlObject::Traverse, ValidatePvlDN(), ValidatePvlEmissionAngle(), ValidatePvlFromEdge(), ValidatePvlIncidenceAngle(), ValidatePvlResidualTolerances(), ValidatePvlResolution(), and ValidatePvlShiftTolerances().

Referenced by ControlNetValidMeasure().

◆ PixelsFromEdge()

bool Isis::ControlNetValidMeasure::PixelsFromEdge ( int  piSample,
int  piLine,
Cube pCube 
)

Test for a point to be user defined number of pixels from the edge.

Validate if a point in Measure is user defined number of pixels from the edge.

Author
Sharmila Prasad (6/21/2010)
Parameters
piSample- Point Sample Location
piLine- Point Line Location
pCube- Control Measure Cube
Returns
bool

Definition at line 824 of file ControlNetValidMeasure.cpp.

References Isis::Cube::lineCount(), miPixelsFromEdge, and Isis::Cube::sampleCount().

◆ ReadSerialNumbers()

void Isis::ControlNetValidMeasure::ReadSerialNumbers ( QString  psSerialNumfile)
protected

Read the Serial Numbers from the file and open assocaited cubes.

Read Serial Numbers from specified file and populate the Cube and UniversalGround Maps using the serial numbers.

Author
Sharmila Prasad (6/3/2010)
Parameters
psSerialNumfile- File with list of Serial Numbers

Definition at line 136 of file ControlNetValidMeasure.cpp.

References mCubeMgr, mSerialNumbers, mStatus, and Isis::CubeManager::SetNumOpenCubes().

Referenced by Isis::InterestOperator::Operate().

◆ SetCameraRequiredFlag()

void Isis::ControlNetValidMeasure::SetCameraRequiredFlag ( bool  pbFlag)
inlineprotected

Set the CameraRequired Flag.

This flag indicates whether a camera is required to Validate a Control Measure. Camera is required to get Emission, Incidence angles and Resolution

Author
Sharmila Prasad (5/19/2011)
Parameters
pbFlag

Definition at line 250 of file ControlNetValidMeasure.h.

References mbCameraRequired.

◆ ValidatePvlDN()

void Isis::ControlNetValidMeasure::ValidatePvlDN ( void  )
protected

Validate PVL Min & Max DN Standard Options.

Validate the Min and Max Dn Values set by the user in the Operator pvl file.

If not set then set the options to default and enter their names in the Unused Group. If the user set values are invalid then exception is thrown.

Author
Sharmila Prasad (5/10/2010)

Definition at line 464 of file ControlNetValidMeasure.cpp.

References Isis::PvlContainer::hasKeyword(), mbValidateDN, mdMaxDN, mdMinDN, mPvlOpGrp, mStdOptionsGrp, Isis::toString(), Isis::IException::User, Isis::ValidMaximum, and Isis::ValidMinimum.

Referenced by Parse().

◆ ValidatePvlEmissionAngle()

void Isis::ControlNetValidMeasure::ValidatePvlEmissionAngle ( void  )
protected

Validate PVL Min & Max EmissionAngle Standard Options.

ValidateEmissionAngle: Validate the Min and Max Emission Values set by the user in the Operator pvl file.

If not set then set the options to default and enter their names in the Unused Group. If the user set values are invalid then exception is thrown, the valid range being [0-135]

Author
Sharmila Prasad (5/10/2010)

Definition at line 497 of file ControlNetValidMeasure.cpp.

References Isis::PvlContainer::hasKeyword(), mbCameraRequired, mdMaxEmissionAngle, mdMinEmissionAngle, mPvlOpGrp, mStdOptionsGrp, Isis::toString(), and Isis::IException::User.

Referenced by Parse().

◆ ValidatePvlFromEdge()

void Isis::ControlNetValidMeasure::ValidatePvlFromEdge ( void  )
protected

Validate and read Pixels and Meters from Edge Standard Options.

Validate and Read the Pixels and Meters from Edge Standard Options.

Author
Sharmila Prasad (6/22/2010)

Definition at line 394 of file ControlNetValidMeasure.cpp.

References Isis::PvlContainer::hasKeyword(), mbValidateFromEdge, mdMetersFromEdge, miPixelsFromEdge, mPvlOpGrp, mStdOptionsGrp, and Isis::toString().

Referenced by Parse().

◆ ValidatePvlIncidenceAngle()

void Isis::ControlNetValidMeasure::ValidatePvlIncidenceAngle ( void  )
protected

Validate PVL Min & Max IncidenceAngle Standard Options.

ValidateIncidenceAngle: Validate the Min and Max Incidence Values set by the user in the Operator pvl file.

If not set then set the options to default and enter their names in the Unused Group. If the user set values are invalid then exception is thrown, the valid range being [0-135]

Author
Sharmila Prasad (5/10/2010)

Definition at line 533 of file ControlNetValidMeasure.cpp.

References Isis::PvlContainer::hasKeyword(), mbCameraRequired, mdMaxIncidenceAngle, mdMinIncidenceAngle, mPvlOpGrp, mStdOptionsGrp, Isis::toString(), and Isis::IException::User.

Referenced by Parse().

◆ ValidatePvlResidualTolerances()

void Isis::ControlNetValidMeasure::ValidatePvlResidualTolerances ( void  )
protected

Validate Pvl Sample, Line, Residual Magnitude Tolerances.

Author
Sharmila Prasad (5/16/2011)

Definition at line 565 of file ControlNetValidMeasure.cpp.

References Isis::PvlContainer::hasKeyword(), mdLineResTolerance, mdResidualTolerance, mdSampleResTolerance, mPvlOpGrp, mStdOptionsGrp, Isis::toString(), and Isis::IException::User.

Referenced by Parse().

◆ ValidatePvlResolution()

void Isis::ControlNetValidMeasure::ValidatePvlResolution ( void  )
protected

Validate PVL Min & Max Resolution Standard Options.

Validate the Min and Max Resolution Values set by the user in the Operator pvl file.

If not set then set the options to default and enter their names in the Unused Group. If the user set values are invalid then exception is thrown.

Author
Sharmila Prasad (6/4/2010)

Definition at line 426 of file ControlNetValidMeasure.cpp.

References Isis::PvlContainer::hasKeyword(), mbCameraRequired, mdMaxResolution, mdMinResolution, mPvlOpGrp, mStdOptionsGrp, Isis::toString(), and Isis::IException::User.

Referenced by Parse().

◆ ValidatePvlShiftTolerances()

void Isis::ControlNetValidMeasure::ValidatePvlShiftTolerances ( )
protected

Validate Pvl Sample, Line, Pixel (Sample and Line) Magnitude Shift Tolerances.

Definition at line 610 of file ControlNetValidMeasure.cpp.

References Isis::PvlContainer::hasKeyword(), m_lineShiftTolerance, m_pixelShiftTolerance, m_sampleShiftTolerance, mPvlOpGrp, mStdOptionsGrp, Isis::toString(), and Isis::IException::User.

Referenced by Parse().

◆ ValidDnValue()

bool Isis::ControlNetValidMeasure::ValidDnValue ( double  pdDnValue)

Validate whether the DN Value is in the set Range.

Validates Dn Value by comparing against the Min and Max DN Values set in the def file or the defaults.

Author
Sharmila Prasad (3/30/2010)
Parameters
pdDnValue- DN Value to Valdiate
Returns
bool

Definition at line 701 of file ControlNetValidMeasure.cpp.

References Isis::IsSpecial(), and mdMaxDN.

Referenced by Isis::GradientOperator::Interest(), and Isis::MoravecOperator::Interest().

◆ ValidEmissionAngle()

bool Isis::ControlNetValidMeasure::ValidEmissionAngle ( double  pdEmissionAngle)

Validate whether the Emission Angle is in the set Range.

Validates an Emission angle by comparing with the min and max values in the def file.

If Emission Angle is greater or lesser than the max/min values in the def file or the defaults it returns false else true.

Author
Sharmila Prasad (3/30/2010)
Parameters
pdEmissionAngle- Emission Angle to Valdiate
Returns
bool

Definition at line 666 of file ControlNetValidMeasure.cpp.

References mdMaxEmissionAngle.

◆ ValidIncidenceAngle()

bool Isis::ControlNetValidMeasure::ValidIncidenceAngle ( double  pdIncidenceAngle)

Validate whether the Incidence Angle is in the set Range.

Validates an Incidence angle by comparing with the min and max values in the def file.

If Incidence Angle is greater or lesser than the max/min values in the def file or the defaults it returns false else true.

Author
Sharmila Prasad (5/10/2010)
Parameters
pdIncidenceAngle- Incidence Angle to Valdiate
Returns
bool

Definition at line 684 of file ControlNetValidMeasure.cpp.

References mdMaxIncidenceAngle.

◆ ValidLatLon()

bool Isis::ControlNetValidMeasure::ValidLatLon ( Isis::Camera pCamera,
int  piSample,
int  piLine 
)

Validate the Lat/Lon.

Validate if a point has a valid lat, lon for that camera.

Author
Sharmila Prasad (6/4/2010)
Parameters
pCamera
piSample
piLine
Returns
bool

Definition at line 809 of file ControlNetValidMeasure.cpp.

◆ ValidResidualTolerances()

bool Isis::ControlNetValidMeasure::ValidResidualTolerances ( double  pdSampleResidual,
double  pdLineResidual,
double  pdResidualMagnitude,
MeasureValidationResults pResults 
)

Validate whether the Residuals are within the set Tolerance.

Validate whether the Sample and Line Residuals and Residual Magnitudes are within the set Tolerances'.

Author
Sharmila Prasad (5/16/2011)
Parameters
pdSampleResidual- Measure's Sample residual
pdLineResidual- Measure's Line residual
pdResidualMagnitude- Measure's Residual Magnitude
pResults- MeasureValidationResults
Returns
bool - Valid (true/false)

Definition at line 739 of file ControlNetValidMeasure.cpp.

References mdLineResTolerance, mdResidualTolerance, and mdSampleResTolerance.

◆ ValidResolution()

bool Isis::ControlNetValidMeasure::ValidResolution ( double  pdResolution)

Validate whether the Resolution is in the set Range.

Validates Dn Value by comparing against the Min and Max DN Values set in the def file or the defaults.

Author
Sharmila Prasad (6/4/2010)
Parameters
pdResolution- Resolution to Validate
Returns
bool

Definition at line 718 of file ControlNetValidMeasure.cpp.

References mdMaxResolution.

◆ ValidShiftTolerances()

bool Isis::ControlNetValidMeasure::ValidShiftTolerances ( double  sampleShift,
double  lineShift,
double  pixelShift,
MeasureValidationResults results 
)

Validate whether the Sample and Line Shifts and Pixel Shift are within the set Tolerances.

Parameters
sampleShiftMeasure's sample shift (current - apriori)
lineShiftMeasure's line shift (current - apriori)
pixelShiftMeasure's pixel shift (Euclidean distance shifted)
resultsValidation results populated with any new failures
Returns
Whether every test was valid or not

Definition at line 772 of file ControlNetValidMeasure.cpp.

References m_lineShiftTolerance, m_pixelShiftTolerance, and m_sampleShiftTolerance.

◆ ValidStandardOptions() [1/4]

MeasureValidationResults Isis::ControlNetValidMeasure::ValidStandardOptions ( const ControlMeasure pMeasure,
Cube pCube,
Camera camera,
PvlGroup pMeasureGrp = NULL 
)

Validate Standard options to pick a reference based on a particular criteria.

Definition at line 376 of file ControlNetValidMeasure.cpp.

References ValidStandardOptions().

◆ ValidStandardOptions() [2/4]

MeasureValidationResults Isis::ControlNetValidMeasure::ValidStandardOptions ( const ControlMeasure pMeasure,
Cube pCube,
PvlGroup pMeasureGrp = NULL 
)

Validate Standard options to pick a reference based on a particular criteria.

Validate a measure for all the Standard Options.

Author
Sharmila Prasad (6/22/2010)
Parameters
piSample- Point Sample location
piLine- Point Line location
pCube- Control Measure Cube
pMeasureGrp- Log PvlGroup
Returns
bool

Definition at line 365 of file ControlNetValidMeasure.cpp.

Referenced by Isis::InterestOperator::FindCnetRef(), Isis::InterestOperator::InterestByMeasure(), Isis::InterestOperator::Operate(), Isis::InterestOperator::ProcessLocked_Point_Reference(), and ValidStandardOptions().

◆ ValidStandardOptions() [3/4]

MeasureValidationResults Isis::ControlNetValidMeasure::ValidStandardOptions ( double  pSample,
double  pLine,
const ControlMeasure pMeasure,
Cube pCube,
PvlGroup pMeasureGrp = NULL 
)

Validate Standard options to pick a reference based on a particular criteria.

Validate a point on an image and the Control Measure if not Null.

Author
Sharmila Prasad (5/17/2011)
Parameters
pSample- Image Sample
pLine- Image Line
pMeasure- Control Measure
pCube- Control Measure's image
pMeasureGrp- Result PvlGroup
Returns
MeasureValidationResults

Definition at line 179 of file ControlNetValidMeasure.cpp.

References Isis::Cube::camera(), Isis::Cube::fileName(), mbCameraRequired, Isis::IException::User, and ValidStandardOptions().

◆ ValidStandardOptions() [4/4]

MeasureValidationResults Isis::ControlNetValidMeasure::ValidStandardOptions ( double  pSample,
double  pLine,
Cube pCube,
PvlGroup pMeasureGrp = NULL 
)

Validate Standard options to pick a reference based on a particular criteria.

Validate a point on an image for Standard Options.

Author
Sharmila Prasad (5/17/2011)
Parameters
pSample- Image Sample
pLine- Image Line
pCube- Image
pMeasureGrp- Optional Result Group
Returns
MeasureValidationResults

Definition at line 345 of file ControlNetValidMeasure.cpp.

References ValidStandardOptions().

Member Data Documentation

◆ m_lineShift

double Isis::ControlNetValidMeasure::m_lineShift
protected

Store current Measure's Line Shift.

Definition at line 281 of file ControlNetValidMeasure.h.

◆ m_lineShiftTolerance

double Isis::ControlNetValidMeasure::m_lineShiftTolerance
protected

Standard Option Line Shift.

Definition at line 269 of file ControlNetValidMeasure.h.

Referenced by InitStdOptions(), InitStdOptionsGroup(), ValidatePvlShiftTolerances(), and ValidShiftTolerances().

◆ m_pixelShift

double Isis::ControlNetValidMeasure::m_pixelShift
protected

Store current Measure's Pixel Shift.

Definition at line 282 of file ControlNetValidMeasure.h.

◆ m_pixelShiftTolerance

double Isis::ControlNetValidMeasure::m_pixelShiftTolerance
protected

Standard Option Pixel Shift.

Definition at line 270 of file ControlNetValidMeasure.h.

Referenced by InitStdOptions(), InitStdOptionsGroup(), ValidatePvlShiftTolerances(), and ValidShiftTolerances().

◆ m_sampleShift

double Isis::ControlNetValidMeasure::m_sampleShift
protected

Store current Measure's Sample Shift.

Definition at line 280 of file ControlNetValidMeasure.h.

◆ m_sampleShiftTolerance

double Isis::ControlNetValidMeasure::m_sampleShiftTolerance
protected

Standard Option Sample Shift.

Definition at line 268 of file ControlNetValidMeasure.h.

Referenced by InitStdOptions(), InitStdOptionsGroup(), ValidatePvlShiftTolerances(), and ValidShiftTolerances().

◆ mbCameraRequired

bool Isis::ControlNetValidMeasure::mbCameraRequired
protected

◆ mbValidateDN

bool Isis::ControlNetValidMeasure::mbValidateDN
protected

Check if DN needs to be Validated.

Definition at line 294 of file ControlNetValidMeasure.h.

Referenced by InitStdOptions(), and ValidatePvlDN().

◆ mbValidateFromEdge

bool Isis::ControlNetValidMeasure::mbValidateFromEdge
protected

Check if Pixels/Meters from edge needs to be Validated.

Definition at line 295 of file ControlNetValidMeasure.h.

Referenced by InitStdOptions(), and ValidatePvlFromEdge().

◆ mCubeMgr

◆ mdDnValue

double Isis::ControlNetValidMeasure::mdDnValue
protected

Store current Measure's DN Value.

Definition at line 275 of file ControlNetValidMeasure.h.

Referenced by Isis::InterestOperator::InterestByMeasure().

◆ mdEmissionAngle

double Isis::ControlNetValidMeasure::mdEmissionAngle
protected

Store current Measure's Emission Angle.

Definition at line 272 of file ControlNetValidMeasure.h.

Referenced by Isis::InterestOperator::InterestByMeasure().

◆ mdIncidenceAngle

double Isis::ControlNetValidMeasure::mdIncidenceAngle
protected

Store current Measure's Incidence Angle.

Definition at line 273 of file ControlNetValidMeasure.h.

Referenced by Isis::InterestOperator::InterestByMeasure().

◆ mdLineResidual

double Isis::ControlNetValidMeasure::mdLineResidual
protected

Store current Measure's Line Residual.

Definition at line 277 of file ControlNetValidMeasure.h.

◆ mdLineResTolerance

double Isis::ControlNetValidMeasure::mdLineResTolerance
protected

Standard Option Line Residual.

Definition at line 265 of file ControlNetValidMeasure.h.

Referenced by InitStdOptions(), InitStdOptionsGroup(), ValidatePvlResidualTolerances(), and ValidResidualTolerances().

◆ mdMaxDN

double Isis::ControlNetValidMeasure::mdMaxDN
protected

◆ mdMaxEmissionAngle

double Isis::ControlNetValidMeasure::mdMaxEmissionAngle
protected

Standard Option MaxEmissionAngle.

Definition at line 259 of file ControlNetValidMeasure.h.

Referenced by GetMaxEmissionAngle(), InitStdOptions(), InitStdOptionsGroup(), ValidatePvlEmissionAngle(), and ValidEmissionAngle().

◆ mdMaxIncidenceAngle

double Isis::ControlNetValidMeasure::mdMaxIncidenceAngle
protected

Standard Option MaxIncidenceAngle.

Definition at line 261 of file ControlNetValidMeasure.h.

Referenced by GetMaxIncidenceAngle(), InitStdOptions(), InitStdOptionsGroup(), ValidatePvlIncidenceAngle(), and ValidIncidenceAngle().

◆ mdMaxResolution

double Isis::ControlNetValidMeasure::mdMaxResolution
protected

Standard Option MaxResolution.

Definition at line 257 of file ControlNetValidMeasure.h.

Referenced by InitStdOptions(), InitStdOptionsGroup(), ValidatePvlResolution(), and ValidResolution().

◆ mdMetersFromEdge

double Isis::ControlNetValidMeasure::mdMetersFromEdge
protected

Standard Option MeteresFromEdge.

Definition at line 262 of file ControlNetValidMeasure.h.

Referenced by GetMetersFromEdge(), InitStdOptions(), InitStdOptionsGroup(), MetersFromEdge(), and ValidatePvlFromEdge().

◆ mdMinDN

double Isis::ControlNetValidMeasure::mdMinDN
protected

◆ mdMinEmissionAngle

double Isis::ControlNetValidMeasure::mdMinEmissionAngle
protected

Standard Option MinEmissionAngle.

Definition at line 258 of file ControlNetValidMeasure.h.

Referenced by GetMinEmissionAngle(), InitStdOptions(), InitStdOptionsGroup(), and ValidatePvlEmissionAngle().

◆ mdMinIncidenceAngle

double Isis::ControlNetValidMeasure::mdMinIncidenceAngle
protected

Standard Option MinIncidenceAngle.

Definition at line 260 of file ControlNetValidMeasure.h.

Referenced by GetMinIncidenceAngle(), InitStdOptions(), InitStdOptionsGroup(), and ValidatePvlIncidenceAngle().

◆ mdMinResolution

double Isis::ControlNetValidMeasure::mdMinResolution
protected

Standard Option MinResolution.

Definition at line 256 of file ControlNetValidMeasure.h.

Referenced by InitStdOptions(), InitStdOptionsGroup(), and ValidatePvlResolution().

◆ mdResidualMagnitude

double Isis::ControlNetValidMeasure::mdResidualMagnitude
protected

Store current Measure's Residual Magnitude.

Definition at line 278 of file ControlNetValidMeasure.h.

◆ mdResidualTolerance

double Isis::ControlNetValidMeasure::mdResidualTolerance
protected

Standard Option Residual Magnitude.

Definition at line 266 of file ControlNetValidMeasure.h.

Referenced by InitStdOptions(), InitStdOptionsGroup(), ValidatePvlResidualTolerances(), and ValidResidualTolerances().

◆ mdResolution

double Isis::ControlNetValidMeasure::mdResolution
protected

Store current Measure's Resolution.

Definition at line 274 of file ControlNetValidMeasure.h.

Referenced by Isis::InterestOperator::FindCnetRef(), and Isis::InterestOperator::InterestByMeasure().

◆ mdSampleResidual

double Isis::ControlNetValidMeasure::mdSampleResidual
protected

Store current Measure's Sample Residual.

Definition at line 276 of file ControlNetValidMeasure.h.

◆ mdSampleResTolerance

double Isis::ControlNetValidMeasure::mdSampleResTolerance
protected

Standard Option Sample Residual.

Definition at line 264 of file ControlNetValidMeasure.h.

Referenced by InitStdOptions(), InitStdOptionsGroup(), ValidatePvlResidualTolerances(), and ValidResidualTolerances().

◆ miPixelsFromEdge

int Isis::ControlNetValidMeasure::miPixelsFromEdge
protected

Standard Option PixelsFromEdge.

Definition at line 263 of file ControlNetValidMeasure.h.

Referenced by GetPixelsFromEdge(), InitStdOptions(), InitStdOptionsGroup(), PixelsFromEdge(), and ValidatePvlFromEdge().

◆ mPvlLog

Pvl Isis::ControlNetValidMeasure::mPvlLog
protected

Pvl Log of all the processing.

Definition at line 287 of file ControlNetValidMeasure.h.

Referenced by Isis::InterestOperator::FindCnetRef(), GetLogPvl(), and Parse().

◆ mPvlOpGrp

◆ mSerialNumbers

◆ mStatisticsGrp

PvlGroup Isis::ControlNetValidMeasure::mStatisticsGrp
protected

◆ mStatus

Progress Isis::ControlNetValidMeasure::mStatus
protected

Monitor the status of the app.

Definition at line 288 of file ControlNetValidMeasure.h.

Referenced by Isis::InterestOperator::FindCnetRef(), and ReadSerialNumbers().

◆ mStdOptionsGrp


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