Commit 65b62339 authored by Julien Osman's avatar Julien Osman
Browse files

TEST: fix otbCreateInverseForwardSensorModel test with new DEMhandler

parent 25656a2f
Testing geopoint: [3.740934, 44.107956, 0]
Testing geopoint: [3.740934, 44.107956]
Testing InverseSensorModel: [3.740934, 44.107956, 0] -> [14190.558, 13591.703]
Testing InverseSensorModel: [3.740934, 44.107956] -> [14190.558, 13591.703]
Testing ForwardSensorModel: [14190.558, 13591.703] -> [3.740934, 44.107956, 0]
Testing geopoint: [1.4434869, 43.604688, 0]
Testing geopoint: [1.4434869, 43.604688]
Testing InverseSensorModel: [1.4434869, 43.604688, 0] -> [11234.024, 8199.2289]
Testing InverseSensorModel: [1.4434869, 43.604688] -> [11234.024, 8199.2289]
Testing ForwardSensorModel: [11234.024, 8199.2289] -> [1.4434838, 43.604235, 0]
Testing geopoint: [1.4434869, 43.604688, 0]
Testing geopoint: [1.4434869, 43.604688]
Testing InverseSensorModel: [1.4434869, 43.604688, 0] -> [11234.662, 8124.3911]
Testing InverseSensorModel: [1.4434869, 43.604688] -> [11234.662, 8124.3911]
Testing ForwardSensorModel: [11234.662, 8124.3911] -> [1.4434869, 43.604688, 0]
......@@ -51,17 +51,17 @@ int otbCreateInverseForwardSensorModel(int argc, char* argv[])
return EXIT_FAILURE;
}
typedef otb::Image<unsigned int, 2> ImageType;
typedef otb::ImageFileReader<ImageType> ReaderType;
typedef otb::RPCInverseTransform<double, 3, 2> InverseRPCModelType;
typedef otb::RPCForwardTransform<double, 2, 3> ForwardRPCModelType;
using ImageType = otb::Image<unsigned int, 2>;
using ReaderType = otb::ImageFileReader<ImageType>;
using ForwardRPCModelType = otb::RPCForwardTransform<double, 2, 3>;
using InverseRPCModelType = otb::RPCInverseTransform<double, 2, 2>;
// Allocate pointer
InverseRPCModelType::Pointer inverse_rpc_model = InverseRPCModelType::New();
ForwardRPCModelType::Pointer forward_rpc_model = ForwardRPCModelType::New();
ReaderType::Pointer reader = ReaderType::New();
auto inverse_rpc_model = InverseRPCModelType::New();
auto forward_rpc_model = ForwardRPCModelType::New();
auto reader = ReaderType::New();
// Set parameters ...
// Set parameters
reader->SetFileName(InputFilename);
// Read metadata
......@@ -98,7 +98,6 @@ int otbCreateInverseForwardSensorModel(int argc, char* argv[])
InverseRPCModelType::InputPointType geoPoint;
geoPoint[0] = atof(pointX.c_str());
geoPoint[1] = atof(pointY.c_str());
geoPoint[2] = 0.0;
ofs << "Testing geopoint: " << geoPoint << "\n\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment