Commit 3e5c403a authored by Antoine Regimbeau's avatar Antoine Regimbeau

BUG: fix failing test

parent fac04bbb
......@@ -131,19 +131,19 @@ int main(int argc, char * argv[])
if ( pos_sigma_d != std::string::npos )
{
is_there_sigma_d = true;
sigma_d = std::stod(temp_arg.substr(pos_sigma_d+1));
sigma_d = std::stod( temp_arg.substr( pos_sigma_d + 2 ) );
continue;
}
if ( pos_sigma_i != std::string::npos )
{
is_there_sigma_i = true;
sigma_i = std::stod(temp_arg.substr(pos_sigma_i+1));
sigma_i = std::stod( temp_arg.substr( pos_sigma_i + 2 ) );
continue;
}
if ( pos_alpha != std::string::npos )
{
is_there_alpha = true;
alpha = std::stod(temp_arg.substr(pos_alpha+1));
alpha = std::stod( temp_arg.substr( pos_alpha + 2 ) );
continue;
}
}
......
......@@ -31,8 +31,6 @@ typedef otb::GCPsToRPCSensorModelImageFilter<ImageType> GCPsToSensorModelFilterT
typedef GCPsToSensorModelFilterType::Point2DType Point2DType;
typedef GCPsToSensorModelFilterType::Point3DType Point3DType;
#define DEBUG 0
int otbKmzProductWriter(int argc, char* argv[])
{
......@@ -78,7 +76,7 @@ int otbKmzProductWriter(int argc, char* argv[])
geoPoint[0] = std::stof(argv[6 + 5 * gcpId]);
geoPoint[1] = std::stof(argv[7 + 5 * gcpId]);
geoPoint[2] = std::stof(argv[8 + 5 * gcpId]);
#if DEBUG
#ifdef DEBUG
std::cout << "Adding GCP sensor: " << sensorPoint << " <-> geo: " << geoPoint << std::endl;
#endif
rpcEstimator->AddGCP(sensorPoint, geoPoint);
......@@ -140,7 +138,7 @@ int otbKmzProductWriterWithLogoAndLegend(int argc, char* argv[])
geoPoint[0] = std::stof(argv[8 + 5 * gcpId]);
geoPoint[1] = std::stof(argv[9 + 5 * gcpId]);
geoPoint[2] = std::stof(argv[10 + 5 * gcpId]);
#if DEBUG
#ifdef DEBUG
std::cout << "Adding GCP sensor: " << sensorPoint << " <-> geo: " << geoPoint << std::endl;
#endif
rpcEstimator->AddGCP(sensorPoint, geoPoint);
......
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