Skip to content
Snippets Groups Projects
Commit 1f3ed2c6 authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

Dalles SRTM utilisées pour l'exemple

parent b83735cf
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,6 @@ TARGET_LINK_LIBRARIES(ImageReadCastWrite OTBCommon OTBIO ITKCommon ITKIO)
ADD_EXECUTABLE(ImageReadRegionOfInterestWrite ImageReadRegionOfInterestWrite.cxx )
TARGET_LINK_LIBRARIES(ImageReadRegionOfInterestWrite OTBCommon OTBIO ITKCommon ITKIO)
ADD_EXECUTABLE(RGBImageReadWrite RGBImageReadWrite.cxx )
TARGET_LINK_LIBRARIES(RGBImageReadWrite OTBCommon OTBIO ITKCommon ITKIO)
......@@ -123,11 +122,12 @@ ADD_TEST(DEMToImageGeneratorTest ${EXE_TESTS}
${INPUTDATA}/DEM_srtm
${TEMP}/DEMToImageGenerator.tif
${TEMP}/pretty_DEMToImageGenerator.png
44.5
6.5
44.5
500
500
0.02
0.002
0.002
)
INCLUDE_DIRECTORIES("${OTBTesting_BINARY_DIR}")
......
......@@ -48,14 +48,14 @@ int otbDEMToImageGeneratorTest(int argc, char * argv[])
PointType origin;
origin[0] = ::atof(argv[3]);
origin[1] = ::atof(argv[4]);
std::cout<<origin<<std::endl;
SizeType size;
size[0] = ::atoi(argv[5]);
size[1] = ::atoi(argv[6]);
SpacingType spacing;
spacing[0] = ::atof(argv[7]);
spacing[1] = ::atof(argv[8]);
std::cout<<spacing<<std::endl;
object->SetDEMDirectoryPath(folderPath);
object->SetOutputOrigin(origin);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment