#include "../Config.h"#include <terralib/rp.h>#include <terralib/raster.h>#include <terralib/memory.h>#include <boost/test/unit_test.hpp>Go to the source code of this file.
Macros | |
| #define | BOOST_TEST_NO_MAIN |
Functions | |
| BOOST_AUTO_TEST_CASE (rasterSum_test) | |
| BOOST_AUTO_TEST_CASE (rasterSumNormalize_test) | |
| BOOST_AUTO_TEST_CASE (rasterSubtraction_test) | |
| BOOST_AUTO_TEST_CASE (rasterProduct_test) | |
| BOOST_AUTO_TEST_CASE (rasterDivision_test) | |
| BOOST_AUTO_TEST_CASE (realSum_test) | |
| BOOST_AUTO_TEST_CASE (realSubtraction_test) | |
| BOOST_AUTO_TEST_CASE (realSubtractionInverse_test) | |
| BOOST_AUTO_TEST_CASE (realProduct_test) | |
| BOOST_AUTO_TEST_CASE (realDivision_test) | |
| BOOST_AUTO_TEST_CASE (realDivisionInverse_test) | |
| BOOST_AUTO_TEST_CASE (diffGrid_test) | |
| BOOST_AUTO_TEST_CASE (exponential_test) | |
| BOOST_AUTO_TEST_CASE (sqrt_test) | |
| BOOST_AUTO_TEST_CASE (sin_test) | |
| BOOST_AUTO_TEST_CASE (asin_test) | |
| BOOST_AUTO_TEST_CASE (cos_test) | |
| BOOST_AUTO_TEST_CASE (acos_test) | |
| BOOST_AUTO_TEST_CASE (log_test) | |
| BOOST_AUTO_TEST_CASE (tan_test) | |
| BOOST_AUTO_TEST_CASE (atan_test) | |
| BOOST_AUTO_TEST_CASE (ln_test) | |
| BOOST_AUTO_TEST_SUITE (arithmetic_operations_tests) void loadDoubleRaster(const std | |
| #define BOOST_TEST_NO_MAIN |
Definition at line 33 of file TsArithmeticOperations.cpp.
| BOOST_AUTO_TEST_CASE | ( | rasterSum_test | ) |
Definition at line 78 of file TsArithmeticOperations.cpp.
References te::rp::ArithmeticOperations::execute(), te::rp::ArithmeticOperations::initialize(), te::rp::ArithmeticOperations::InputParameters::m_arithmeticString, te::rp::ArithmeticOperations::InputParameters::m_inputRasters, te::rp::ArithmeticOperations::InputParameters::m_normalize, te::rp::ArithmeticOperations::OutputParameters::m_outputRasterPtr, te::rp::ArithmeticOperations::OutputParameters::m_rInfo, and te::rp::ArithmeticOperations::OutputParameters::m_rType.
| BOOST_AUTO_TEST_CASE | ( | rasterSumNormalize_test | ) |
Definition at line 126 of file TsArithmeticOperations.cpp.
References te::rp::ArithmeticOperations::execute(), te::rp::ArithmeticOperations::initialize(), te::rp::ArithmeticOperations::InputParameters::m_arithmeticString, te::rp::ArithmeticOperations::InputParameters::m_inputRasters, te::rp::ArithmeticOperations::InputParameters::m_normalize, te::rp::ArithmeticOperations::OutputParameters::m_rInfo, te::rp::ArithmeticOperations::OutputParameters::m_rType, and te::rst::RasterFactory::open().
| BOOST_AUTO_TEST_CASE | ( | rasterSubtraction_test | ) |
Definition at line 161 of file TsArithmeticOperations.cpp.
References te::rp::ArithmeticOperations::execute(), te::rp::ArithmeticOperations::initialize(), te::rp::ArithmeticOperations::InputParameters::m_arithmeticString, te::rp::ArithmeticOperations::InputParameters::m_inputRasters, te::rp::ArithmeticOperations::InputParameters::m_normalize, te::rp::ArithmeticOperations::OutputParameters::m_outputRasterPtr, te::rp::ArithmeticOperations::OutputParameters::m_rInfo, and te::rp::ArithmeticOperations::OutputParameters::m_rType.
| BOOST_AUTO_TEST_CASE | ( | rasterProduct_test | ) |
Definition at line 209 of file TsArithmeticOperations.cpp.
References te::rp::ArithmeticOperations::execute(), te::rp::ArithmeticOperations::initialize(), te::rp::ArithmeticOperations::InputParameters::m_arithmeticString, te::rp::ArithmeticOperations::InputParameters::m_inputRasters, te::rp::ArithmeticOperations::InputParameters::m_normalize, te::rp::ArithmeticOperations::OutputParameters::m_outputRasterPtr, te::rp::ArithmeticOperations::OutputParameters::m_rInfo, and te::rp::ArithmeticOperations::OutputParameters::m_rType.
| BOOST_AUTO_TEST_CASE | ( | rasterDivision_test | ) |
Definition at line 256 of file TsArithmeticOperations.cpp.
References te::rp::ArithmeticOperations::execute(), te::rp::ArithmeticOperations::initialize(), te::rp::ArithmeticOperations::InputParameters::m_arithmeticString, te::rp::ArithmeticOperations::InputParameters::m_inputRasters, te::rp::ArithmeticOperations::InputParameters::m_normalize, te::rp::ArithmeticOperations::OutputParameters::m_outputRasterPtr, te::rp::ArithmeticOperations::OutputParameters::m_rInfo, and te::rp::ArithmeticOperations::OutputParameters::m_rType.
| BOOST_AUTO_TEST_CASE | ( | realSum_test | ) |
Definition at line 303 of file TsArithmeticOperations.cpp.
References te::rp::ArithmeticOperations::execute(), te::rp::ArithmeticOperations::initialize(), te::rp::ArithmeticOperations::InputParameters::m_arithmeticString, te::rp::ArithmeticOperations::InputParameters::m_inputRasters, te::rp::ArithmeticOperations::InputParameters::m_normalize, te::rp::ArithmeticOperations::OutputParameters::m_outputRasterPtr, te::rp::ArithmeticOperations::OutputParameters::m_rInfo, and te::rp::ArithmeticOperations::OutputParameters::m_rType.
| BOOST_AUTO_TEST_CASE | ( | realSubtraction_test | ) |
Definition at line 348 of file TsArithmeticOperations.cpp.
References te::rp::ArithmeticOperations::execute(), te::rp::ArithmeticOperations::initialize(), te::rp::ArithmeticOperations::InputParameters::m_arithmeticString, te::rp::ArithmeticOperations::InputParameters::m_inputRasters, te::rp::ArithmeticOperations::InputParameters::m_normalize, te::rp::ArithmeticOperations::OutputParameters::m_outputRasterPtr, te::rp::ArithmeticOperations::OutputParameters::m_rInfo, and te::rp::ArithmeticOperations::OutputParameters::m_rType.
| BOOST_AUTO_TEST_CASE | ( | realSubtractionInverse_test | ) |
Definition at line 393 of file TsArithmeticOperations.cpp.
References te::rp::ArithmeticOperations::execute(), te::rp::ArithmeticOperations::initialize(), te::rp::ArithmeticOperations::InputParameters::m_arithmeticString, te::rp::ArithmeticOperations::InputParameters::m_inputRasters, te::rp::ArithmeticOperations::InputParameters::m_normalize, te::rp::ArithmeticOperations::OutputParameters::m_outputRasterPtr, te::rp::ArithmeticOperations::OutputParameters::m_rInfo, and te::rp::ArithmeticOperations::OutputParameters::m_rType.
| BOOST_AUTO_TEST_CASE | ( | realProduct_test | ) |
Definition at line 438 of file TsArithmeticOperations.cpp.
References te::rp::ArithmeticOperations::execute(), te::rp::ArithmeticOperations::initialize(), te::rp::ArithmeticOperations::InputParameters::m_arithmeticString, te::rp::ArithmeticOperations::InputParameters::m_inputRasters, te::rp::ArithmeticOperations::InputParameters::m_normalize, te::rp::ArithmeticOperations::OutputParameters::m_outputRasterPtr, te::rp::ArithmeticOperations::OutputParameters::m_rInfo, and te::rp::ArithmeticOperations::OutputParameters::m_rType.
| BOOST_AUTO_TEST_CASE | ( | realDivision_test | ) |
Definition at line 483 of file TsArithmeticOperations.cpp.
References te::rp::ArithmeticOperations::execute(), te::rp::ArithmeticOperations::initialize(), te::rp::ArithmeticOperations::InputParameters::m_arithmeticString, te::rp::ArithmeticOperations::InputParameters::m_inputRasters, te::rp::ArithmeticOperations::InputParameters::m_normalize, te::rp::ArithmeticOperations::OutputParameters::m_outputRasterPtr, te::rp::ArithmeticOperations::OutputParameters::m_rInfo, and te::rp::ArithmeticOperations::OutputParameters::m_rType.
| BOOST_AUTO_TEST_CASE | ( | realDivisionInverse_test | ) |
Definition at line 528 of file TsArithmeticOperations.cpp.
References te::rp::ArithmeticOperations::execute(), te::rp::ArithmeticOperations::initialize(), te::rp::ArithmeticOperations::InputParameters::m_arithmeticString, te::rp::ArithmeticOperations::InputParameters::m_inputRasters, te::rp::ArithmeticOperations::InputParameters::m_normalize, te::rp::ArithmeticOperations::OutputParameters::m_outputRasterPtr, te::rp::ArithmeticOperations::OutputParameters::m_rInfo, and te::rp::ArithmeticOperations::OutputParameters::m_rType.
| BOOST_AUTO_TEST_CASE | ( | diffGrid_test | ) |
Definition at line 573 of file TsArithmeticOperations.cpp.
References te::rp::ArithmeticOperations::execute(), te::rp::ArithmeticOperations::initialize(), te::rp::ArithmeticOperations::InputParameters::m_arithmeticString, te::rp::ArithmeticOperations::InputParameters::m_inputRasters, te::rp::ArithmeticOperations::InputParameters::m_normalize, te::rp::ArithmeticOperations::OutputParameters::m_rInfo, te::rp::ArithmeticOperations::OutputParameters::m_rType, and te::rst::RasterFactory::open().
| BOOST_AUTO_TEST_CASE | ( | exponential_test | ) |
Definition at line 609 of file TsArithmeticOperations.cpp.
References te::rp::ArithmeticOperations::execute(), te::rp::ArithmeticOperations::initialize(), te::rp::ArithmeticOperations::InputParameters::m_arithmeticString, te::rp::ArithmeticOperations::InputParameters::m_inputRasters, te::rp::ArithmeticOperations::InputParameters::m_normalize, te::rp::ArithmeticOperations::OutputParameters::m_outputRasterPtr, te::rp::ArithmeticOperations::OutputParameters::m_rInfo, and te::rp::ArithmeticOperations::OutputParameters::m_rType.
| BOOST_AUTO_TEST_CASE | ( | sqrt_test | ) |
Definition at line 654 of file TsArithmeticOperations.cpp.
References te::rp::ArithmeticOperations::execute(), te::rp::ArithmeticOperations::initialize(), te::rp::ArithmeticOperations::InputParameters::m_arithmeticString, te::rp::ArithmeticOperations::InputParameters::m_inputRasters, te::rp::ArithmeticOperations::InputParameters::m_normalize, te::rp::ArithmeticOperations::OutputParameters::m_outputRasterPtr, te::rp::ArithmeticOperations::OutputParameters::m_rInfo, and te::rp::ArithmeticOperations::OutputParameters::m_rType.
| BOOST_AUTO_TEST_CASE | ( | sin_test | ) |
Definition at line 699 of file TsArithmeticOperations.cpp.
References te::rp::ArithmeticOperations::execute(), te::rp::ArithmeticOperations::initialize(), te::rp::ArithmeticOperations::InputParameters::m_arithmeticString, te::rp::ArithmeticOperations::InputParameters::m_inputRasters, te::rp::ArithmeticOperations::InputParameters::m_normalize, te::rp::ArithmeticOperations::OutputParameters::m_outputRasterPtr, te::rp::ArithmeticOperations::OutputParameters::m_rInfo, and te::rp::ArithmeticOperations::OutputParameters::m_rType.
| BOOST_AUTO_TEST_CASE | ( | asin_test | ) |
Definition at line 744 of file TsArithmeticOperations.cpp.
References te::rp::ArithmeticOperations::execute(), te::rp::ArithmeticOperations::initialize(), te::rp::ArithmeticOperations::InputParameters::m_arithmeticString, te::rp::ArithmeticOperations::InputParameters::m_inputRasters, te::rp::ArithmeticOperations::InputParameters::m_normalize, te::rp::ArithmeticOperations::OutputParameters::m_outputRasterPtr, te::rp::ArithmeticOperations::OutputParameters::m_rInfo, and te::rp::ArithmeticOperations::OutputParameters::m_rType.
| BOOST_AUTO_TEST_CASE | ( | cos_test | ) |
Definition at line 790 of file TsArithmeticOperations.cpp.
References te::rp::ArithmeticOperations::execute(), te::rp::ArithmeticOperations::initialize(), te::rp::ArithmeticOperations::InputParameters::m_arithmeticString, te::rp::ArithmeticOperations::InputParameters::m_inputRasters, te::rp::ArithmeticOperations::InputParameters::m_normalize, te::rp::ArithmeticOperations::OutputParameters::m_outputRasterPtr, te::rp::ArithmeticOperations::OutputParameters::m_rInfo, and te::rp::ArithmeticOperations::OutputParameters::m_rType.
| BOOST_AUTO_TEST_CASE | ( | acos_test | ) |
Definition at line 835 of file TsArithmeticOperations.cpp.
References te::rp::ArithmeticOperations::execute(), te::rp::ArithmeticOperations::initialize(), te::rp::ArithmeticOperations::InputParameters::m_arithmeticString, te::rp::ArithmeticOperations::InputParameters::m_inputRasters, te::rp::ArithmeticOperations::InputParameters::m_normalize, te::rp::ArithmeticOperations::OutputParameters::m_outputRasterPtr, te::rp::ArithmeticOperations::OutputParameters::m_rInfo, and te::rp::ArithmeticOperations::OutputParameters::m_rType.
| BOOST_AUTO_TEST_CASE | ( | log_test | ) |
Definition at line 881 of file TsArithmeticOperations.cpp.
References te::rp::ArithmeticOperations::execute(), te::rp::ArithmeticOperations::initialize(), te::rp::ArithmeticOperations::InputParameters::m_arithmeticString, te::rp::ArithmeticOperations::InputParameters::m_inputRasters, te::rp::ArithmeticOperations::InputParameters::m_normalize, te::rp::ArithmeticOperations::OutputParameters::m_outputRasterPtr, te::rp::ArithmeticOperations::OutputParameters::m_rInfo, and te::rp::ArithmeticOperations::OutputParameters::m_rType.
| BOOST_AUTO_TEST_CASE | ( | tan_test | ) |
Definition at line 926 of file TsArithmeticOperations.cpp.
References te::rp::ArithmeticOperations::execute(), te::rp::ArithmeticOperations::initialize(), te::rp::ArithmeticOperations::InputParameters::m_arithmeticString, te::rp::ArithmeticOperations::InputParameters::m_inputRasters, te::rp::ArithmeticOperations::InputParameters::m_normalize, te::rp::ArithmeticOperations::OutputParameters::m_outputRasterPtr, te::rp::ArithmeticOperations::OutputParameters::m_rInfo, and te::rp::ArithmeticOperations::OutputParameters::m_rType.
| BOOST_AUTO_TEST_CASE | ( | atan_test | ) |
Definition at line 971 of file TsArithmeticOperations.cpp.
References te::rp::ArithmeticOperations::execute(), te::rp::ArithmeticOperations::initialize(), te::rp::ArithmeticOperations::InputParameters::m_arithmeticString, te::rp::ArithmeticOperations::InputParameters::m_inputRasters, te::rp::ArithmeticOperations::InputParameters::m_normalize, te::rp::ArithmeticOperations::OutputParameters::m_outputRasterPtr, te::rp::ArithmeticOperations::OutputParameters::m_rInfo, and te::rp::ArithmeticOperations::OutputParameters::m_rType.
| BOOST_AUTO_TEST_CASE | ( | ln_test | ) |
Definition at line 1016 of file TsArithmeticOperations.cpp.
References te::rp::ArithmeticOperations::execute(), te::rp::ArithmeticOperations::initialize(), te::rp::ArithmeticOperations::InputParameters::m_arithmeticString, te::rp::ArithmeticOperations::InputParameters::m_inputRasters, te::rp::ArithmeticOperations::InputParameters::m_normalize, te::rp::ArithmeticOperations::OutputParameters::m_outputRasterPtr, te::rp::ArithmeticOperations::OutputParameters::m_rInfo, and te::rp::ArithmeticOperations::OutputParameters::m_rType.
| BOOST_AUTO_TEST_SUITE | ( | arithmetic_operations_tests | ) | const |
Definition at line 36 of file TsArithmeticOperations.cpp.
References col, te::dt::DOUBLE_TYPE, nCols, and te::rst::RasterFactory::open().