From 2304f08a2f3f85c5d6579f897254a4be15d70639 Mon Sep 17 00:00:00 2001 From: Manuel Grizonnet <manuel.grizonnet@gmail.com> Date: Fri, 15 Jan 2010 09:09:00 +0100 Subject: [PATCH] TEST: remove old OTBVisu from cmakelists --- Examples/OBIA/ShapeAttributeComputation.cxx | 5 +++-- Examples/Projections/EstimateRPCSensorModelExample.cxx | 8 +++++--- Testing/Fa/CMakeLists.txt | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Examples/OBIA/ShapeAttributeComputation.cxx b/Examples/OBIA/ShapeAttributeComputation.cxx index 3409517e44..b8d94a8ab1 100644 --- a/Examples/OBIA/ShapeAttributeComputation.cxx +++ b/Examples/OBIA/ShapeAttributeComputation.cxx @@ -85,7 +85,7 @@ int main(int argc, char * argv[]) // Here the \doxygen{itk}{ShapeLabelObject} type // is chosen in order to read some attribute related to the shape // of the objects (by opposition to the content of the object, with - // the \doxygen{itk}{StatisticsLabelObject). + // the \doxygen{itk}{StatisticsLabelObject}. // // Software Guide : EndLatex @@ -127,7 +127,7 @@ int main(int argc, char * argv[]) // Software Guide : BeginLatex // - // Then, we can read the attribute values we're interested in. The \doxygen{itk}{BinaryImageToShapeLabelMapFilter + // Then, we can read the attribute values we're interested in. The \doxygen{itk}{BinaryImageToShapeLabelMapFilter} // produce consecutive labels, so we can use a for loop and GetLabelObject() method to retrieve // the label objects. If the labels are not consecutive, the GetNthLabelObject() method must be // use instead of GetLabelObject(), or an iterator on the label @@ -153,3 +153,4 @@ int main(int argc, char * argv[]) return EXIT_SUCCESS; } + diff --git a/Examples/Projections/EstimateRPCSensorModelExample.cxx b/Examples/Projections/EstimateRPCSensorModelExample.cxx index 7e750ebf70..9d6fce988a 100644 --- a/Examples/Projections/EstimateRPCSensorModelExample.cxx +++ b/Examples/Projections/EstimateRPCSensorModelExample.cxx @@ -37,7 +37,6 @@ // Software Guide : EndLatex // Software Guide : BeginCodeSnippet -//#include "otbMacro.h" #include "otbImage.h" #include "otbImageFileReader.h" #include "otbGCPsToRPCSensorModelImageFilter.h" @@ -91,7 +90,7 @@ int main( int argc, char* argv[] ) // Software Guide : BeginLatex // We retrieve the command line parameters and put them in the - // correct variables. Firstl, We determine the number of GCPs + // correct variables. Firstly, We determine the number of GCPs // set from the command line parameters and they are stored in: // \begin{itemize} // \item \doxygen{otb}{Point3DType} : Store the sensor point (3D ground point) @@ -103,11 +102,12 @@ int main( int argc, char* argv[] ) // \end{itemize} // Software Guide : EndLatex - // Software Guide : BeginCodeSnippet + unsigned int nbGCPs = (argc-3)/5; std::cout<<"Receiving "<<nbGCPs<<" from command line."<<std::endl; + // Software Guide : BeginCodeSnippet for(unsigned int gcpId = 0;gcpId<nbGCPs;++gcpId) { Point2DType sensorPoint; @@ -123,6 +123,8 @@ int main( int argc, char* argv[] ) rpcEstimator->AddGCP(sensorPoint,geoPoint); } + + // Software Guide : EndCodeSnippet // Software Guide : BeginLatex // Note that the \doxygen{otb}{GCPsToRPCSensorModelImageFilter} needs diff --git a/Testing/Fa/CMakeLists.txt b/Testing/Fa/CMakeLists.txt index 5ab0f97292..74cce0766a 100644 --- a/Testing/Fa/CMakeLists.txt +++ b/Testing/Fa/CMakeLists.txt @@ -244,7 +244,7 @@ TARGET_LINK_LIBRARIES(0000041-mean_shift OTBIO OTBCommon OTBBasicFilters) IF(OTB_USE_VISU_GUI) ADD_EXECUTABLE(0000132-jpg 0000132-jpg.cxx ) -TARGET_LINK_LIBRARIES(0000132-jpg OTBIO OTBVisu) +TARGET_LINK_LIBRARIES(0000132-jpg OTBIO OTBVisualization) ENDIF(OTB_USE_VISU_GUI) ADD_EXECUTABLE(PolygonsVectorization PolygonsVectorization.cxx) -- GitLab