![]() |
OTB
9.1.1
Orfeo Toolbox
|
#include <otbTestHelper.h>
Inheritance diagram for otb::TestHelper:
Collaboration diagram for otb::TestHelper:Public Types | |
| typedef itk::SmartPointer< const Self > | ConstPointer |
| typedef std::vector< double > | EpsilonList |
| typedef EpsilonList::const_iterator | EpsilonListIt |
| typedef itk::SmartPointer< Self > | Pointer |
| typedef TestHelper | Self |
| typedef std::vector< std::string > | StringList |
| typedef StringList::const_iterator | StringListIt |
| typedef itk::Object | Superclass |
Public Member Functions | |
| virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
| virtual const char * | GetNameOfClass () const |
| virtual void | IgnoreLineOrderOff () |
| virtual void | IgnoreLineOrderOn () |
| int | RegressionTestAllAscii (const StringList &baselineFilenamesAscii, const StringList &testFilenamesAscii, const EpsilonList &epsilons, const StringList &ignoredLines) |
| int | RegressionTestAllBinary (const StringList &baselineFilenamesBinary, const StringList &testFilenamesBinary) |
| int | RegressionTestAllDiff (const StringList &baselineFilenamesAscii, const StringList &testFilenamesAscii, const EpsilonList &epsilons, const StringList &ignoredLines) |
| int | RegressionTestAllImages (const StringList &baselineFilenamesImage, const StringList &testFilenamesImage, const EpsilonList &epsilons) |
| int | RegressionTestAllMetaData (const StringList &baselineFilenamesMetaData, const StringList &testFilenamesMetaData, const EpsilonList &epsilons) |
| int | RegressionTestAllOgr (const StringList &baselineFilenamesOgr, const StringList &testFilenamesOgr, const EpsilonList &epsilons) |
| virtual void | ReportErrorsOff () |
| virtual void | ReportErrorsOn () |
| virtual void | SetEpsilonBoundaryChecking (double _arg) |
| virtual void | SetIgnoreLineOrder (bool _arg) |
| virtual void | SetReportErrors (bool _arg) |
| virtual void | SetToleranceRatio (double _arg) |
| TestHelper () | |
| ~TestHelper () override | |
Static Public Member Functions | |
| static Pointer | New () |
Private Member Functions | |
| void | AddWhiteSpace (const std::string &strIn, std::string &strOut) const |
| void | CheckValueTolerance (const char *Comment, double ref, double test, int &count, bool report, double epsilon) const |
| bool | CompareLines (const std::string &strfileref, const std::string &strfiletest, int &nbdiff, std::ofstream &fluxfilediff, int &numLine, std::vector< std::string > &listStrDiffLineFileRef, std::vector< std::string > &listStrDiffLineFileTest, double epsilon) const |
| bool | isAlphaNum (int i) const |
| bool | isHexaNumber (int i) const |
| bool | isHexaPointerAddress (const std::string &str) const |
| bool | isHexaPointerAddress (const std::string &str, vcl_size_t pos, vcl_size_t size) const |
| bool | IsLineValid (const std::string &str, const StringList &ignoredLines) const |
| bool | isMinusSign (int i) const |
| bool | isNumber (int i) const |
| bool | isNumeric (const std::string &str) const |
| bool | isPoint (int i) const |
| bool | isScientificNumeric (const std::string &str) const |
| bool | isToBeIgnoredForAnyComparison (const std::string &str) const |
| void | ogrReportOnLayer (OGRLayer *ref_poLayer, const char *ref_pszWHERE, OGRGeometry *ref_poSpatialFilter, OGRLayer *test_poLayer, const char *test_pszWHERE, OGRGeometry *test_poSpatialFilter, int &nbdiff, double epsilon) const |
| int | RegressionTestAsciiFile (const char *testAsciiFileName, const char *baselineAsciiFileName, const double epsilon, std::vector< std::string > ignoredLines) const |
| std::map< std::string, int > | RegressionTestBaselines (char *baselineFilename) const |
| int | RegressionTestBinaryFile (const char *testBinaryFileName, const char *baselineBinaryFileName) const |
| int | RegressionTestDiffFile (const char *testAsciiFileName, const char *baselineAsciiFileName, const double epsilon, std::vector< std::string > ignoredLines) const |
| int | RegressionTestImage (int cpt, const char *testImageFilename, const char *baselineImageFilename, const double toleranceDiffPixelImage) const |
| int | RegressionTestMetaData (const char *testImageFilename, const char *baselineImageFilename, const double toleranceDiffPixelImage) const |
| int | RegressionTestOgrFile (const char *testOgrFilename, const char *baselineOgrFilename, const double toleranceDiffValue) const |
| int | TokenizeLine (const std::string &line, StringList &tokens) const |
| std::string | VectorToString (const otb::MetaDataKey::VectorType &vector) const |
Static Private Member Functions | |
| static void | DumpOGRFeature (FILE *fileid, OGRFeature *feature, char **papszOptions=nullptr) |
| static void | DumpOGRGeometry (FILE *fileid, OGRGeometry *geometry, const char *pszPrefix, char **papszOptions=nullptr) |
| static bool | IsTokenEmpty (boost::iterator_range< std::string::const_iterator > &token) |
Private Attributes | |
| double | m_EpsilonBoundaryChecking |
| bool | m_IgnoreLineOrder |
| const unsigned int | m_MaxArea |
| bool | m_ReportErrors |
| std::vector< std::pair< std::string, std::string > > | m_SpecialTokens |
| double | m_ToleranceRatio |
Helper class to perform the baseline comparisons during the tests.
Definition at line 47 of file otbTestHelper.h.
| typedef itk::SmartPointer<const Self> otb::TestHelper::ConstPointer |
Definition at line 54 of file otbTestHelper.h.
| typedef std::vector<double> otb::TestHelper::EpsilonList |
Definition at line 63 of file otbTestHelper.h.
| typedef EpsilonList::const_iterator otb::TestHelper::EpsilonListIt |
Definition at line 64 of file otbTestHelper.h.
| typedef itk::SmartPointer<Self> otb::TestHelper::Pointer |
Definition at line 53 of file otbTestHelper.h.
| typedef TestHelper otb::TestHelper::Self |
Standard class typedefs.
Definition at line 52 of file otbTestHelper.h.
| typedef std::vector<std::string> otb::TestHelper::StringList |
Definition at line 58 of file otbTestHelper.h.
| typedef StringList::const_iterator otb::TestHelper::StringListIt |
Definition at line 61 of file otbTestHelper.h.
| typedef itk::Object otb::TestHelper::Superclass |
Definition at line 55 of file otbTestHelper.h.
| otb::TestHelper::TestHelper | ( | ) |
|
override |
|
private |
|
private |
|
private |
| virtual::itk::LightObject::Pointer otb::TestHelper::CreateAnother | ( | void | ) | const |
|
staticprivate |
|
staticprivate |
|
virtual |
|
virtual |
|
virtual |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
| int otb::TestHelper::RegressionTestAllAscii | ( | const StringList & | baselineFilenamesAscii, |
| const StringList & | testFilenamesAscii, | ||
| const EpsilonList & | epsilons, | ||
| const StringList & | ignoredLines | ||
| ) |
| int otb::TestHelper::RegressionTestAllBinary | ( | const StringList & | baselineFilenamesBinary, |
| const StringList & | testFilenamesBinary | ||
| ) |
| int otb::TestHelper::RegressionTestAllDiff | ( | const StringList & | baselineFilenamesAscii, |
| const StringList & | testFilenamesAscii, | ||
| const EpsilonList & | epsilons, | ||
| const StringList & | ignoredLines | ||
| ) |
| int otb::TestHelper::RegressionTestAllImages | ( | const StringList & | baselineFilenamesImage, |
| const StringList & | testFilenamesImage, | ||
| const EpsilonList & | epsilons | ||
| ) |
| int otb::TestHelper::RegressionTestAllMetaData | ( | const StringList & | baselineFilenamesMetaData, |
| const StringList & | testFilenamesMetaData, | ||
| const EpsilonList & | epsilons | ||
| ) |
| int otb::TestHelper::RegressionTestAllOgr | ( | const StringList & | baselineFilenamesOgr, |
| const StringList & | testFilenamesOgr, | ||
| const EpsilonList & | epsilons | ||
| ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
private |
|
private |
|
private |
Definition at line 137 of file otbTestHelper.h.
|
private |
Definition at line 139 of file otbTestHelper.h.
|
private |
Definition at line 140 of file otbTestHelper.h.
|
private |
Definition at line 138 of file otbTestHelper.h.
|
private |
Definition at line 146 of file otbTestHelper.h.
|
private |
Definition at line 136 of file otbTestHelper.h.
1.8.17