// The following example illustrates the use of the otb::DEMToImageGenerator class.
// The aim of this class is to generate an image from SRTM or DTED data (precising the start extraction
// The aim of this class is to generate an image from the srtm data (precising the start extraction
// latitude and longitude point). Each pixel is a geographic point and its intensity is
// the altitude of the point.
// If SRTM doesn't have altitude information for a point, the altitude value is set at -32768 (value of the SRTM norm).
// If srtm doesn't have altitude information for a point, the altitude value is set at -32768 (value of the srtm norm).
//
// Let's look at the minimal code required to use this algorithm. First, the following header
// defining the \doxygen{otb}{DEMToImageGenerator} class must be included.
...
...
@@ -59,7 +60,7 @@ int main(int argc, char * argv[])
{
if(argc<10)
{
std::cout<<argv[0]<<" output filename , pretty output filename , Longitude Output Orign point , Latitude Output Origin point , X Output Size, Y Output size , X Spacing , Y Spacing, srtmFolder"<<std::endl;
std::cout<<argv[0]<<" DEM folder path , output filename , pretty output filename , Longitude Output Orign point , Latitude Output Origin point , X Output Size, Y Output size , X Spacing , Y Spacing"<<std::endl;
returnEXIT_FAILURE;
}
// Software Guide : BeginLatex
...
...
@@ -69,8 +70,8 @@ int main(int argc, char * argv[])
//
// Software Guide : EndLatex
char*folderPath=argv[8];
char*outputName=argv[1];
char*folderPath=argv[1];
char*outputName=argv[2];
// Software Guide : BeginCodeSnippet
constunsignedintDimension=2;
typedefotb::Image<double,Dimension>ImageType;
...
...
@@ -117,7 +118,7 @@ int main(int argc, char * argv[])