diff --git a/Examples/Projections/OrthoRectificationExample.cxx b/Examples/Projections/OrthoRectificationExample.cxx index 03918f90f71bd6c63cc686f4e0ac914ab2a6757f..6a2f2e34af0124439b160d18ae077f567447246a 100644 --- a/Examples/Projections/OrthoRectificationExample.cxx +++ b/Examples/Projections/OrthoRectificationExample.cxx @@ -73,9 +73,9 @@ int main( int argc, char* argv[] ) ossimInit::instance()->initialize(argc, argv); - if(argc!=10) + if(argc!=9) { - std::cout << argv[0] <<" <input filename> <output filename> <originLatitude> <originLongitude> <x_Size> <y_Size> <x_groundSamplingDistance> <y_groundSamplingDistance>" + std::cout << argv[0] <<" <input_filename> <output_filename> <x_ground_upper_left_corner> <y_ground_upper_left_corner> <x_Size> <y_Size> <x_groundSamplingDistance> <y_groundSamplingDistance (should be negative since origin is upper left)>" << std::endl; return EXIT_FAILURE; @@ -181,8 +181,8 @@ int main( int argc, char* argv[] ) orthoRectifFilter->SetSize(size); ImageType::SpacingType spacing; - spacing[0]=atof(argv[8]); - spacing[1]=atof(argv[9]); + spacing[0]=atof(argv[7]); + spacing[1]=atof(argv[8]); orthoRectifFilter->SetOutputSpacing(spacing); ImageType::PointType origin; diff --git a/Examples/Projections/SensorModelExample.cxx b/Examples/Projections/SensorModelExample.cxx index 459ce1e476f2729bec0fbae3b37cb040600febc0..6ab608c31190e95ec77bce8398a1d3db3ecf79a4 100644 --- a/Examples/Projections/SensorModelExample.cxx +++ b/Examples/Projections/SensorModelExample.cxx @@ -65,9 +65,9 @@ int main( int argc, char* argv[] ) if(argc!=8) { - std::cout << argv[0] <<" <input filename> <output filename>" - << "<latitude de l'origine> <longitude de l'origine>" - << "<taille_x> <taille_y> <NumberOfstreamDivisions>" + std::cout << argv[0] <<" <input_filename> <output_filename>" + << " <upper_left_corner_latitude> <upper_left_corner_longitude>" + << " <size_x> <sizee_y> <number_of_stream_divisions>" << std::endl; return EXIT_FAILURE; @@ -218,14 +218,23 @@ int main( int argc, char* argv[] ) size[0]=atoi(argv[5]); size[1]=atoi(argv[6]); +// Software Guide : EndCodeSnippet + +// Software Guide : BeginLatex +// +// The spacing in y direction is negative since origin is the upper left corner. +// +// Software Guide : EndLatex + +// Software Guide : BeginCodeSnippet ImageType::SpacingType spacing; spacing[0]=0.00001; - spacing[1]=0.00001; + spacing[1]=-0.00001; - + ImageType::PointType origin; - origin[0]=strtod(argv[3], NULL); //latitude - origin[1]=strtod(argv[4], NULL); //longitude + origin[0]=strtod(argv[3], NULL); //longitude + origin[1]=strtod(argv[4], NULL); //lattitude ImageType::RegionType region;