diff --git a/Copyright/Copyright.txt b/Copyright/Copyright.txt index 6f7788f583a027750cff1a2588e9d007788f4171..eaafdd8042caa0bfd122e6b8067cd6ec2c309c42 100644 --- a/Copyright/Copyright.txt +++ b/Copyright/Copyright.txt @@ -21,7 +21,7 @@ See CrispCopyright.txt for details. * Parts of the code have been developped by Gregoire Mercier. - See GETCopyright.txt for details. + See IMTCopyright.txt for details. --------------------------- DEPENDENCIES ---------------------------------- Several utilities are mandatory dependencies used by the OTB library : diff --git a/Copyright/GETCopyright.txt b/Copyright/IMTCopyright.txt similarity index 78% rename from Copyright/GETCopyright.txt rename to Copyright/IMTCopyright.txt index 7ac8ce5f0c4fd75918cf746f9f9cfbf50fc67a8a..7fb5d5df7ace7e756cd1c3aa3c634d4d8e4738c1 100644 --- a/Copyright/GETCopyright.txt +++ b/Copyright/IMTCopyright.txt @@ -1,10 +1,8 @@ Parts of the code have been developped by Gregoire Mercier from -Groupe des Ecoles des Telecommunications / Ecole Nationale Superieure -des Telecommunications de Bretagne (GET/ENST Bretagne) during -CNES R&T contrats funded by the French Centre National d'Etudes -Spatiales, CNES. +Institut Mines-Telecom / Telecom Bretagne during CNES R&T contrats +funded by the French Centre National d'Etudes Spatiales, CNES. -Copyright (c) GET / ENST Bretagne +Copyright (c) Institut Mines-Telecom This code has been integrated into the ORFEO Toolbox (OTB) under the CeCILL licence version 2. See Licence_CeCILL_V2-en.txt or diff --git a/Examples/BasicFilters/CMakeLists.txt b/Examples/BasicFilters/CMakeLists.txt index c8fb34bd1304b95ad7c9f911bdf275115fd10b84..858e0fa5ae8d0fa920aa9e08e4c0aca335c57fe7 100644 --- a/Examples/BasicFilters/CMakeLists.txt +++ b/Examples/BasicFilters/CMakeLists.txt @@ -1,10 +1,16 @@ project(BasicFiltersExamples) +#OTB_USE_MUPARSER is OFF +if(OTBMathParser_LOADED) add_executable(BandMathFilterExample BandMathFilterExample.cxx) target_link_libraries(BandMathFilterExample ${OTB_LIBRARIES}) +endif() +#OTB_USE_MUPARSERX is OFF +if(OTBMathParserX_LOADED) add_executable(BandMathXImageFilterExample BandMathXImageFilterExample.cxx) target_link_libraries(BandMathXImageFilterExample ${OTB_LIBRARIES}) +endif() add_executable(DEMToRainbowExample DEMToRainbowExample.cxx) target_link_libraries(DEMToRainbowExample ${OTB_LIBRARIES}) @@ -21,8 +27,11 @@ target_link_libraries(IndexedToRGBExample ${OTB_LIBRARIES}) add_executable(LeeImageFilter LeeImageFilter.cxx) target_link_libraries(LeeImageFilter ${OTB_LIBRARIES}) +#OTBMeanShift depends OTBMathParser. But OTB_USE_MUPARSER is OFF +if(OTBMathParser_LOADED) add_executable(MeanShiftSegmentationFilterExample MeanShiftSegmentationFilterExample.cxx) target_link_libraries(MeanShiftSegmentationFilterExample ${OTB_LIBRARIES}) +endif() add_executable(PrintableImageFilterExample PrintableImageFilterExample.cxx) target_link_libraries(PrintableImageFilterExample ${OTB_LIBRARIES}) diff --git a/Examples/BasicFilters/test/CMakeLists.txt b/Examples/BasicFilters/test/CMakeLists.txt index 15da042a010e826cedf26779452177d37a1b5f89..cc6dabe32daa2c486acaed79481b64b63d287baf 100644 --- a/Examples/BasicFilters/test/CMakeLists.txt +++ b/Examples/BasicFilters/test/CMakeLists.txt @@ -84,7 +84,7 @@ otb_add_test(NAME bfTeIndexedToRGBExampleTest COMMAND ${OTB_TEST_DRIVER} ${TEMP}/buildingExtractionRGB.png ${TEMP}/buildingExtractionIndexed_scaled.png ) - +if(OTBMathParser_LOADED) otb_add_test(NAME bfTeMeanShiftSegmentationFilterExampleTest COMMAND ${OTB_TEST_DRIVER} --compare-n-images ${NOTOL} 4 ${BASELINE}/MSClusteredOutput.tif @@ -107,7 +107,7 @@ otb_add_test(NAME bfTeMeanShiftSegmentationFilterExampleTest COMMAND ${OTB_TEST_ 100 0.1 ) - +endif() # ------- HillShadingExampleTest ---------- otb_add_test(NAME bfTeHillShadingExampleTest COMMAND ${OTB_TEST_DRIVER} diff --git a/Examples/CMakeLists.txt b/Examples/CMakeLists.txt index 639761a6c6e94b30538e8febb535134ca33c6b1a..84b3542f4f25ff3f52fa79e88c29e1f1b99bb3ba 100644 --- a/Examples/CMakeLists.txt +++ b/Examples/CMakeLists.txt @@ -81,32 +81,12 @@ if(PROJECT_NAME STREQUAL "OTBExamples") ########################## end copied from OTB/CMakeLists.txt ########################## - #must be updated for new modules! - set(REQUIRED_MODULES "OTB6S;OTBITK;OTBAnomalyDetection;OTBBoost;OTBCommon;OTBGDAL;OTBOpenThreads;OTBOssim;OTBGeoTIFF;OTBOssimPlugins;OTBOSSIMAdapters;OTBObjectList;OTBMetadata;OTBImageBase;OTBBoostAdapters;OTBGdalAdapters;OTBTinyXML;OTBVectorDataBase;OTBIOGDAL;OTBExtendedFilename;OTBIOBSQ;OTBIOLUM;OTBIOMSTAR;OTBIOMW;OTBIOONERA;OTBIORAD;OTBCurl;OTBCurlAdapters;OTBIOTileMap;OTBStreaming;OTBImageIO;OTBInterpolation;OTBTransform;OTBImageManipulation;OTBTestKernel;OTBPath;OTBVectorDataManipulation;OTBProjection;OTBlibkml;OTBIOKML;OTBVectorDataIO;OTBApplicationEngine;OTBStatistics;OTBChangeDetection;OTBAppChangeDetection;OTBCommandLine;OTBColorMap;OTBMoments;OTBLabelMap;OTBConversion;OTBFuzzy;OTBMuParser;OTBMathParser;OTBSupervised;OTBDempsterShafer;OTBIOXML;OTBIndices;OTBMajorityVoting;OTBSOM;OTBAppClassification;OTBPointSet;OTBSiftFast;OTBDescriptors;OTBAppDescriptors;OTBDimensionalityReduction;OTBAppDimensionalityReduction;OTBSpatialObjects;OTBEdge;OTBAppEdge;OTBImageNoise;OTBAppFiltering;OTBConvolution;OTBPanSharpening;OTBAppFusion;OTBEndmembersExtraction;OTBWavelet;OTBUnmixing;OTBAppHyperspectral;OTBCarto;OTBAppImageUtils;OTBAppIndices;OTBKMZWriter;OTBAppKMZ;OTBAppMathParser;OTBMuParserX;OTBMathParserX;OTBAppMathParserX;OTBAppMoments;OTBAppMorphology;OTBOpticalCalibration;OTBAppOpticalCalibration;OTBAppProjection;OTBSARCalibration;OTBAppSARCalibration;OTBCCOBIA;OTBSmoothing;OTBMeanShift;OTBMetrics;OTBMorphologicalProfiles;OTBLabelling;OTBOGRProcessing;OTBWatersheds;OTBAppSegmentation;OTBDEM;OTBStereo;OTBDisparityMap;OTBAppStereo;OTBAppTest;OTBTextures;OTBAppTextures;OTBAppVectorDataTranslation;OTBAppVectorUtils;OTBCommandLineParser;OTBOpenThreadsAdapters;OTBCloudDetection;OTBComplexImage;OTBCorner;OTBDensity;OTBDisplacementField;OTBLandSatClassifier;OTBLearningBase;OTBMarkov;OTBMorphologicalPyramid;OTBObjectDetection;OTBPolarimetry;OTBRoadExtraction;OTBRCC8;OTBSWIGWrapper;OTBSeamCarving;OTBSimulation;OTBTimeSeries;OTBUrbanArea") - - find_package(OTB REQUIRED COMPONENTS ${REQUIRED_MODULES}) - include(${OTB_USE_FILE}) - message(STATUS "Found OTB: ${OTB_USE_FILE}") - -else() - if(NOT OTB_BUILD_DEFAULT_MODULES) - message(FATAL_ERROR "BUILD_EXAMPLES requires OTB_BUILD_DEFAULT_MODULES to be ON") - endif() - # We also need to prevent any OTB_USE_XXX option to be OFF (except mapnik and openjpeg) - # For now we parse module activation list and test if option is ON. If not the cmake configuration stop. - #TODO We should provide a better mechanism here wich will deactivate only examples required by deactivated options. - foreach (_activationOption ${OTB_MODULE_ACTIVATION_OPTION_LIST}) - if(NOT ${_activationOption} AND NOT "x${_activationOption}" STREQUAL "xOTB_USE_MAPNIK" AND NOT "x${_activationOption}" STREQUAL "xOTB_USE_OPENJPEG") - message(FATAL_ERROR "BUILD_EXAMPLES requires ${_activationOption} to be ON") - endif() - endforeach() - - find_package(OTB REQUIRED) - include(${OTB_USE_FILE}) - message(STATUS "Found OTB: ${OTB_USE_FILE}") - endif() +find_package(OTB REQUIRED) +include(${OTB_USE_FILE}) +message(STATUS "Found OTB: ${OTB_USE_FILE}") + set(OTB_TEST_DRIVER otbTestDriver) if(OTBApplicationEngine_LOADED) diff --git a/Examples/ChangeDetection/KullbackLeiblerSupervizedDistanceChDet.cxx b/Examples/ChangeDetection/KullbackLeiblerSupervizedDistanceChDet.cxx index f892976f62dd27fcc5a468ac8644a13ba60aee67..b0bb7279127beed6cefd17c148468488426aac90 100644 --- a/Examples/ChangeDetection/KullbackLeiblerSupervizedDistanceChDet.cxx +++ b/Examples/ChangeDetection/KullbackLeiblerSupervizedDistanceChDet.cxx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See GETCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Examples/Classification/CMakeLists.txt b/Examples/Classification/CMakeLists.txt index 4aa4757783949ef289edc2dac459ff6805d25e64..02db6fd752225dc4bbf2508b347b7c7257dfd155 100644 --- a/Examples/Classification/CMakeLists.txt +++ b/Examples/Classification/CMakeLists.txt @@ -6,9 +6,11 @@ target_link_libraries(BayesianPluginClassifier ${OTB_LIBRARIES}) add_executable(ClassificationMapRegularizationExample ClassificationMapRegularizationExample.cxx) target_link_libraries(ClassificationMapRegularizationExample ${OTB_LIBRARIES}) +#OTBDempsterShafer depends OTBMathParser. But OTB_USE_MUPARSER is OFF +if(OTBMathParser_LOADED) add_executable(DempsterShaferFusionOfClassificationMapsExample DempsterShaferFusionOfClassificationMapsExample.cxx) target_link_libraries(DempsterShaferFusionOfClassificationMapsExample ${OTB_LIBRARIES}) - +endif() add_executable(ExpectationMaximizationMixtureModelEstimator ExpectationMaximizationMixtureModelEstimator.cxx) target_link_libraries(ExpectationMaximizationMixtureModelEstimator ${OTB_LIBRARIES}) diff --git a/Examples/DisparityMap/CMakeLists.txt b/Examples/DisparityMap/CMakeLists.txt index bd7b2c26c86cd6fb2fdbfa84dbcc28f8f200ecbc..f42b945930e97fd1cfa30117302d08759a1dc44e 100644 --- a/Examples/DisparityMap/CMakeLists.txt +++ b/Examples/DisparityMap/CMakeLists.txt @@ -9,8 +9,11 @@ target_link_libraries(NCCRegistrationFilterExample ${OTB_LIBRARIES}) add_executable(SimpleDisparityMapEstimationExample SimpleDisparityMapEstimationExample.cxx) target_link_libraries(SimpleDisparityMapEstimationExample ${OTB_LIBRARIES}) +#StereoReconstructionExample depends OTBMathParser. But OTB_USE_MUPARSER is OFF +if(OTBMathParser_LOADED) add_executable(StereoReconstructionExample StereoReconstructionExample.cxx) target_link_libraries(StereoReconstructionExample ${OTB_LIBRARIES}) +endif() if(BUILD_TESTING) add_subdirectory(test) diff --git a/Examples/DisparityMap/test/CMakeLists.txt b/Examples/DisparityMap/test/CMakeLists.txt index d90913ccfcaca5de71692741ba78d7765020168b..9c247434b91ffb8e9116882b05e8538380ae513d 100644 --- a/Examples/DisparityMap/test/CMakeLists.txt +++ b/Examples/DisparityMap/test/CMakeLists.txt @@ -17,6 +17,7 @@ otb_add_test(NAME dmTeSimpleDisparityMapEstimationExampleTest COMMAND ${OTB_TEST 100 10 15 10 10 250 0.9 ) +if(OTBMathParser_LOADED) otb_add_test(NAME dmTeStereoReconstructionExampleTest COMMAND ${OTB_TEST_DRIVER} --compare-image ${NOTOL} ${BASELINE}/elevationOutput.tif @@ -28,3 +29,4 @@ otb_add_test(NAME dmTeStereoReconstructionExampleTest COMMAND ${OTB_TEST_DRIVER} ${TEMP}/elevationOutputPrintable.png 140 ) +endif() \ No newline at end of file diff --git a/Examples/FeatureExtraction/CMakeLists.txt b/Examples/FeatureExtraction/CMakeLists.txt index ec46f9fd89a8065e4ac0d0b713aca977c89311eb..edce7bf6fac9ecc829033a2531cf3be9d5f4957c 100644 --- a/Examples/FeatureExtraction/CMakeLists.txt +++ b/Examples/FeatureExtraction/CMakeLists.txt @@ -1,8 +1,5 @@ project(FeatureExtractionExamples) -add_executable(AlignmentsExample AlignmentsExample.cxx) -target_link_libraries(AlignmentsExample ${OTB_LIBRARIES}) - add_executable(AssymmetricFusionOfLineDetectorExample AssymmetricFusionOfLineDetectorExample.cxx) target_link_libraries(AssymmetricFusionOfLineDetectorExample ${OTB_LIBRARIES}) @@ -21,12 +18,21 @@ target_link_libraries(CorrelationLineDetectorExample ${OTB_LIBRARIES}) add_executable(EdgeDensityExample EdgeDensityExample.cxx) target_link_libraries(EdgeDensityExample ${OTB_LIBRARIES}) +#OTBRoadExtraction depends OTBMathParser. But OTB_USE_MUPARSER is OFF +if(OTBMathParser_LOADED) add_executable(ExtractRoadByStepsExample ExtractRoadByStepsExample.cxx) target_link_libraries(ExtractRoadByStepsExample ${OTB_LIBRARIES}) add_executable(ExtractRoadExample ExtractRoadExample.cxx) target_link_libraries(ExtractRoadExample ${OTB_LIBRARIES}) +add_executable(ParallelLineDetectionExample ParallelLineDetectionExample.cxx) +target_link_libraries(ParallelLineDetectionExample ${OTB_LIBRARIES}) + +add_executable(AlignmentsExample AlignmentsExample.cxx) +target_link_libraries(AlignmentsExample ${OTB_LIBRARIES}) +endif() + add_executable(ExtractSegmentsByStepsExample ExtractSegmentsByStepsExample.cxx) target_link_libraries(ExtractSegmentsByStepsExample ${OTB_LIBRARIES}) @@ -45,6 +51,9 @@ target_link_libraries(HuMomentsImageFunctionExample ${OTB_LIBRARIES}) if (Module_OTBVectorDataRendering AND OTB_USE_MAPNIK) add_executable(LineSegmentDetectorExample LineSegmentDetectorExample.cxx) target_link_libraries(LineSegmentDetectorExample ${OTB_LIBRARIES}) + + add_executable(RightAngleDetectionExample RightAngleDetectionExample.cxx) + target_link_libraries(RightAngleDetectionExample ${OTB_LIBRARIES}) endif() add_executable(LocalHoughExample LocalHoughExample.cxx) @@ -53,17 +62,9 @@ target_link_libraries(LocalHoughExample ${OTB_LIBRARIES}) add_executable(PanTexExample PanTexExample.cxx) target_link_libraries(PanTexExample ${OTB_LIBRARIES}) -add_executable(ParallelLineDetectionExample ParallelLineDetectionExample.cxx) -target_link_libraries(ParallelLineDetectionExample ${OTB_LIBRARIES}) - add_executable(RatioLineDetectorExample RatioLineDetectorExample.cxx) target_link_libraries(RatioLineDetectorExample ${OTB_LIBRARIES}) -if (Module_OTBVectorDataRendering AND OTB_USE_MAPNIK) - add_executable(RightAngleDetectionExample RightAngleDetectionExample.cxx) - target_link_libraries(RightAngleDetectionExample ${OTB_LIBRARIES}) -endif() - add_executable(SeamCarvingExample SeamCarvingExample.cxx) target_link_libraries(SeamCarvingExample ${OTB_LIBRARIES}) diff --git a/Examples/FeatureExtraction/test/CMakeLists.txt b/Examples/FeatureExtraction/test/CMakeLists.txt index 9e351acd2adf21b663afe76885b8baf7d868e91e..b748caca32cb41a2726011dc662e4836b98b86c2 100644 --- a/Examples/FeatureExtraction/test/CMakeLists.txt +++ b/Examples/FeatureExtraction/test/CMakeLists.txt @@ -107,7 +107,7 @@ otb_add_test(NAME feTeRatioLineDetectorExampleTest COMMAND ${OTB_TEST_DRIVER} ) # ------- AlignmentsExampleTest---------- - +if(OTBMathParser_LOADED) otb_add_test(NAME feTeAlignmentsExampleTest COMMAND ${OTB_TEST_DRIVER} --compare-n-images ${NOTOL} 1 ${BASELINE}/QB_SuburbAlign.png @@ -145,6 +145,8 @@ otb_add_test(NAME feTeExtractRoadExampleTest COMMAND ${OTB_TEST_DRIVER} 337 557 432 859 1.0 0.00005 1.0 0.39269 1.0 10.0 25. ) +endif() + # ------- SeamCarvingExamplesTest---------- otb_add_test(NAME feTeSeamCarvingExampleTest COMMAND ${OTB_TEST_DRIVER} diff --git a/Examples/IO/CMakeLists.txt b/Examples/IO/CMakeLists.txt index a3d9b9063fee339286f5cc7b487d49560cf437d1..b4395d43a10ab34ded19381a315d54c89537d8a5 100644 --- a/Examples/IO/CMakeLists.txt +++ b/Examples/IO/CMakeLists.txt @@ -30,8 +30,10 @@ target_link_libraries(ImageReadWrite ${OTB_LIBRARIES}) add_executable(ImageSeriesIOExample ImageSeriesIOExample.cxx) target_link_libraries(ImageSeriesIOExample ${OTB_LIBRARIES}) +if(OTBlibkml_LOADED) add_executable(ImageToKmzAndMapFileProductExample ImageToKmzAndMapFileProductExample.cxx) target_link_libraries(ImageToKmzAndMapFileProductExample ${OTB_LIBRARIES}) +endif() add_executable(MetadataExample MetadataExample.cxx) target_link_libraries(MetadataExample ${OTB_LIBRARIES}) diff --git a/Examples/IO/test/CMakeLists.txt b/Examples/IO/test/CMakeLists.txt index d75692eee9a507dd0f5587cf7b209beabfef4565..720b16203b632a95e2d850822f5d722a875c9653 100644 --- a/Examples/IO/test/CMakeLists.txt +++ b/Examples/IO/test/CMakeLists.txt @@ -43,6 +43,7 @@ otb_add_test(NAME prTeDEMHandlerExampleTest COMMAND ${OTB_TEST_DRIVER} 0.001 ) +if(OTBlibkml_LOADED) otb_add_test(NAME ioTeImageToKmzAndMapFileProductExample COMMAND ${OTB_TEST_DRIVER} Execute $<TARGET_FILE:ImageToKmzAndMapFileProductExample> ${OTB_DATA_ROOT}/Input/Haiti1_sr10.jpeg @@ -78,6 +79,7 @@ otb_add_test(NAME ioTeImageToKmzAndMapFileProductExample COMMAND ${OTB_TEST_DRIV 42.000000 232.000000 -72.426552 18.540876 0.000000 ) set_property(TEST ioTeImageToKmzAndMapFileProductExample PROPERTY RESOURCE_LOCK web_access) +endif() otb_add_test(NAME ioTeTileMapImageIOExampleTest COMMAND ${OTB_TEST_DRIVER} --compare-image 10.0 diff --git a/Examples/Learning/CMakeLists.txt b/Examples/Learning/CMakeLists.txt index 4963ecaed02cf4ac4a55240d66352d464e04d13b..cbf51262616e251ee86d0bd3c921ac35cd7b4d92 100644 --- a/Examples/Learning/CMakeLists.txt +++ b/Examples/Learning/CMakeLists.txt @@ -12,6 +12,7 @@ target_link_libraries(SOMClassifierExample ${OTB_LIBRARIES}) add_executable(SOMExample SOMExample.cxx) target_link_libraries(SOMExample ${OTB_LIBRARIES}) +if(OTBLibSVM_LOADED) add_executable(SVMImageClassificationExample SVMImageClassificationExample.cxx) target_link_libraries(SVMImageClassificationExample ${OTB_LIBRARIES}) @@ -29,13 +30,15 @@ target_link_libraries(SVMPointSetExample ${OTB_LIBRARIES}) add_executable(SVMPointSetModelEstimatorExample SVMPointSetModelEstimatorExample.cxx) target_link_libraries(SVMPointSetModelEstimatorExample ${OTB_LIBRARIES}) +endif() +if(OTBOpenCV_LOADED) add_executable(TrainMachineLearningModelFromImagesExample TrainMachineLearningModelFromImagesExample.cxx) target_link_libraries(TrainMachineLearningModelFromImagesExample ${OTB_LIBRARIES}) add_executable(TrainMachineLearningModelFromSamplesExample TrainMachineLearningModelFromSamplesExample.cxx) target_link_libraries(TrainMachineLearningModelFromSamplesExample ${OTB_LIBRARIES}) - +endif() if(BUILD_TESTING) add_subdirectory(test) diff --git a/Examples/Learning/SEMModelEstimatorExample.cxx b/Examples/Learning/SEMModelEstimatorExample.cxx index bb396e906359cb004045e14364768c9dd1657c49..86f3e58f967d80e4c73031f65bd4ad32af0b87e6 100644 --- a/Examples/Learning/SEMModelEstimatorExample.cxx +++ b/Examples/Learning/SEMModelEstimatorExample.cxx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) GET / ENST Bretagne. All rights reserved. - See GETCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Examples/Learning/SOMExample.cxx b/Examples/Learning/SOMExample.cxx index 056820dd406bd89e45b4dcfb03e98a413e999487..3f56132f43b30be9ecbaeb790f6f1f38b8e8f6ae 100644 --- a/Examples/Learning/SOMExample.cxx +++ b/Examples/Learning/SOMExample.cxx @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom Bretagne. All rights reserved. - See GETCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Examples/Learning/SVMGenericKernelImageClassificationExample.cxx b/Examples/Learning/SVMGenericKernelImageClassificationExample.cxx index e11095a98a716d217f337f4a825db1f3caa308dc..765fe1530831621159d1d11ddbdcb207419961a0 100644 --- a/Examples/Learning/SVMGenericKernelImageClassificationExample.cxx +++ b/Examples/Learning/SVMGenericKernelImageClassificationExample.cxx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) GET / ENST Bretagne. All rights reserved. - See GETCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Examples/Learning/SVMGenericKernelImageModelEstimatorExample.cxx b/Examples/Learning/SVMGenericKernelImageModelEstimatorExample.cxx index 1e411f9cb66bc1ccc22577cf69d1b94c5a66441e..61494ba7c9b46ac17a52bec3ceac83f83ca1d5d5 100644 --- a/Examples/Learning/SVMGenericKernelImageModelEstimatorExample.cxx +++ b/Examples/Learning/SVMGenericKernelImageModelEstimatorExample.cxx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) GET / ENST Bretagne. All rights reserved. - See GETCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Examples/Learning/test/CMakeLists.txt b/Examples/Learning/test/CMakeLists.txt index d3918e252e6901babd9924b0dc092e302acc99fb..71e51049f8a57ffdca32b7606c1bcc034e7e467f 100644 --- a/Examples/Learning/test/CMakeLists.txt +++ b/Examples/Learning/test/CMakeLists.txt @@ -3,6 +3,7 @@ set(INPUTDATA ${OTB_DATA_ROOT}/Examples) # ------- SVMImageClassificationExampleTest---------- +if(OTBLibSVM_LOADED) otb_add_test(NAME leTeSVMImageClassificationExampleTest COMMAND ${OTB_TEST_DRIVER} --compare-n-images ${NOTOL} 1 ${BASELINE}/ROI_QB_MUL_1_SVN_CLASS.png @@ -26,18 +27,6 @@ otb_add_test(NAME leTeSVMImageEstimatorClassificationMultiExampleTest COMMAND ${ ${TEMP}/ROI_QB_MUL_1_SVN_CLASS_MULTI_Rescaled.png ) -# ------- GenerateTrainingImageExampleTest---------- - -otb_add_test(NAME leTeGenerateTrainingImageExampleTest COMMAND ${OTB_TEST_DRIVER} - --compare-n-images ${NOTOL} 1 - ${BASELINE}/ROI_QB_MUL_4_training.png - ${TEMP}/ROI_QB_MUL_4_training.png - Execute $<TARGET_FILE:GenerateTrainingImageExample> - ${INPUTDATA}/ROI_QB_MUL_4.tif - ${INPUTDATA}/LearningROIs.txt - ${TEMP}/ROI_QB_MUL_4_training.png -) - # ------- SVMImageModelEstimatorExampleTest---------- otb_add_test(NAME leTeSVMImageModelEstimatorExampleTest COMMAND ${OTB_TEST_DRIVER} @@ -51,6 +40,18 @@ otb_add_test(NAME leTeSVMImageModelEstimatorExampleTest COMMAND ${OTB_TEST_DRIVE ${TEMP}/svm_image_model.svn ) +endif() +# ------- GenerateTrainingImageExampleTest---------- + +otb_add_test(NAME leTeGenerateTrainingImageExampleTest COMMAND ${OTB_TEST_DRIVER} + --compare-n-images ${NOTOL} 1 + ${BASELINE}/ROI_QB_MUL_4_training.png + ${TEMP}/ROI_QB_MUL_4_training.png + Execute $<TARGET_FILE:GenerateTrainingImageExample> + ${INPUTDATA}/ROI_QB_MUL_4.tif + ${INPUTDATA}/LearningROIs.txt + ${TEMP}/ROI_QB_MUL_4_training.png +) # ------- SOMExampleTest---------- diff --git a/Examples/OBIA/CMakeLists.txt b/Examples/OBIA/CMakeLists.txt index 202bd7ae29ce81a684e3b81211dd9ba8b3ff1cca..d2f7a79be47c7627549c03ac3f633fdaafb88fa9 100644 --- a/Examples/OBIA/CMakeLists.txt +++ b/Examples/OBIA/CMakeLists.txt @@ -12,8 +12,10 @@ target_link_libraries(KeepNObjects ${OTB_LIBRARIES}) add_executable(LabelMapToVectorData LabelMapToVectorData.cxx) target_link_libraries(LabelMapToVectorData ${OTB_LIBRARIES}) +if(OTBMathParser_LOADED) add_executable(RadiometricAttributesLabelMapFilterExample RadiometricAttributesLabelMapFilterExample.cxx) target_link_libraries(RadiometricAttributesLabelMapFilterExample ${OTB_LIBRARIES}) +endif() add_executable(ShapeAttributeComputation ShapeAttributeComputation.cxx) target_link_libraries(ShapeAttributeComputation ${OTB_LIBRARIES}) diff --git a/Examples/OBIA/test/CMakeLists.txt b/Examples/OBIA/test/CMakeLists.txt index 83a32c6339f4503a4fe36a72e982a6ea9bb559a5..f3c92b30ea3d96bd545bc5c333539db8274a8c5a 100644 --- a/Examples/OBIA/test/CMakeLists.txt +++ b/Examples/OBIA/test/CMakeLists.txt @@ -22,6 +22,7 @@ otb_add_test(NAME trTeOBIAShapeAttributeComputationTest COMMAND ${OTB_TEST_DRIVE ${TEMP}/OBIAShapeAttribute.txt ) +if(OTBMathParser_LOADED) otb_add_test(NAME trTeOBIARadiometricAttributesLabelMapFilterTest COMMAND ${OTB_TEST_DRIVER} --compare-image ${NOTOL} ${BASELINE}/OBIARadiometricAttributes.png @@ -38,6 +39,7 @@ otb_add_test(NAME trTeOBIARadiometricAttributesLabelMapFilterTest COMMAND ${OTB_ 50 1.0 ) +endif() otb_add_test(NAME trTeLabelMapToVectorData COMMAND ${OTB_TEST_DRIVER} Execute $<TARGET_FILE:LabelMapToVectorData> diff --git a/Examples/Patented/CMakeLists.txt b/Examples/Patented/CMakeLists.txt index 07210c89bb2bc23db170f3b3d57925bfca0143c3..8648e956aa89809bf1eb6c47c21b1a3436fd0ddf 100644 --- a/Examples/Patented/CMakeLists.txt +++ b/Examples/Patented/CMakeLists.txt @@ -3,18 +3,18 @@ project(PatentedExamples) add_executable(EstimateAffineTransformationExample EstimateAffineTransformationExample.cxx) target_link_libraries(EstimateAffineTransformationExample ${OTB_LIBRARIES}) +if (OTBSiftFast_LOADED) add_executable(SIFTDisparityMapEstimation SIFTDisparityMapEstimation.cxx) target_link_libraries(SIFTDisparityMapEstimation ${OTB_LIBRARIES}) add_executable(SIFTExample SIFTExample.cxx) target_link_libraries(SIFTExample ${OTB_LIBRARIES}) -if (Module_OTBSiftFast) - add_executable(SIFTDensityExample SIFTDensityExample.cxx) - target_link_libraries(SIFTDensityExample ${OTB_LIBRARIES}) +add_executable(SIFTDensityExample SIFTDensityExample.cxx) +target_link_libraries(SIFTDensityExample ${OTB_LIBRARIES}) - add_executable(SIFTFastExample SIFTFastExample.cxx) - target_link_libraries(SIFTFastExample ${OTB_LIBRARIES}) +add_executable(SIFTFastExample SIFTFastExample.cxx) +target_link_libraries(SIFTFastExample ${OTB_LIBRARIES}) endif() if(BUILD_TESTING) diff --git a/Examples/Radiometry/CMakeLists.txt b/Examples/Radiometry/CMakeLists.txt index 1c1e1bd3de3339396735c49983ca9509886d2c69..48c5d40d071238dd5dcd547fe80ac56f095adb08 100644 --- a/Examples/Radiometry/CMakeLists.txt +++ b/Examples/Radiometry/CMakeLists.txt @@ -3,8 +3,11 @@ project(RadiometryExamples) add_executable(ARVIMultiChannelRAndBAndNIRVegetationIndexImageFilter ARVIMultiChannelRAndBAndNIRVegetationIndexImageFilter.cxx) target_link_libraries(ARVIMultiChannelRAndBAndNIRVegetationIndexImageFilter ${OTB_LIBRARIES}) +#OTBOpticalCalibration -> OTB6S +if(OTB6S_LOADED) add_executable(AtmosphericCorrectionSequencement AtmosphericCorrectionSequencement.cxx) target_link_libraries(AtmosphericCorrectionSequencement ${OTB_LIBRARIES}) +endif() add_executable(AVIMultiChannelRAndGAndNIRVegetationIndexImageFilter AVIMultiChannelRAndGAndNIRVegetationIndexImageFilter.cxx) target_link_libraries(AVIMultiChannelRAndGAndNIRVegetationIndexImageFilter ${OTB_LIBRARIES}) diff --git a/Examples/Radiometry/test/CMakeLists.txt b/Examples/Radiometry/test/CMakeLists.txt index ff18563ad9aff969b7e84a237a1efd7377c6235e..b77c8c87e51835fe4d227fbed00b77c68f78075c 100644 --- a/Examples/Radiometry/test/CMakeLists.txt +++ b/Examples/Radiometry/test/CMakeLists.txt @@ -52,6 +52,7 @@ otb_add_test(NAME raTeNDVIRAndNIRVegetationIndexImageFilterTest COMMAND ${OTB_TE ${TEMP}/NDVIRAndNIRVegetationIndex4.tif ) +if(OTBOpticalCalibration_LOADED) otb_add_test(NAME raTeAtmosphericCorrectionSequencementTest COMMAND ${OTB_TEST_DRIVER} --compare-image ${EPSILON_8} ${BASELINE}/Example_RomaniaAtmosphericCorrectionSequencement.tif @@ -82,3 +83,4 @@ otb_add_test(NAME raTeAtmosphericCorrectionSequencementTest COMMAND ${OTB_TEST_D 2 # Radius; 0.020 # pixel spacing in kilometers ) +endif() \ No newline at end of file diff --git a/Examples/Segmentation/CMakeLists.txt b/Examples/Segmentation/CMakeLists.txt index 4fb4b89300757a0a24a675165264b9dacfbc83e0..c8cda537c20a206fbb46e6b670948e1edfb0313b 100644 --- a/Examples/Segmentation/CMakeLists.txt +++ b/Examples/Segmentation/CMakeLists.txt @@ -24,8 +24,10 @@ target_link_libraries(OtsuMultipleThresholdImageFilter ${OTB_LIBRARIES}) add_executable(OtsuThresholdImageFilter OtsuThresholdImageFilter.cxx) target_link_libraries(OtsuThresholdImageFilter ${OTB_LIBRARIES}) -add_executable(StreamingMeanShiftSegmentation StreamingMeanShiftSegmentation.cxx) -target_link_libraries(StreamingMeanShiftSegmentation ${OTB_LIBRARIES}) +if(OTBMathParser_LOADED) + add_executable(StreamingMeanShiftSegmentation StreamingMeanShiftSegmentation.cxx) + target_link_libraries(StreamingMeanShiftSegmentation ${OTB_LIBRARIES}) +endif() add_executable(VectorConfidenceConnected VectorConfidenceConnected.cxx) target_link_libraries(VectorConfidenceConnected ${OTB_LIBRARIES}) diff --git a/Examples/Segmentation/test/CMakeLists.txt b/Examples/Segmentation/test/CMakeLists.txt index d43f19ecf89f64747f546278e5a09bb23e6806c2..37d36f1ca5f27611eb1e31dd3951dd2bc56ceb4b 100644 --- a/Examples/Segmentation/test/CMakeLists.txt +++ b/Examples/Segmentation/test/CMakeLists.txt @@ -272,7 +272,7 @@ otb_add_test(NAME seTeLabelizeNeighborhoodConnectedImageFilterTest COMMAND ${OTB # ------- StreamingMeanShiftSegmentationTest ---------- - +if(OTBMathParser_LOADED) otb_add_test(NAME seTeStreamingMeanShiftSegmentationTest COMMAND ${OTB_TEST_DRIVER} # --compare-ogr ${NOTOL} # ${BASELINE_FILES}/seTeStreamingMeanShiftSegmentationTest.shp @@ -291,3 +291,4 @@ otb_add_test(NAME seTeStreamingMeanShiftSegmentationTest COMMAND ${OTB_TEST_DRIV 1 #Simplify Flag 0.2 #Simplification tolerance ) +endif() \ No newline at end of file diff --git a/Examples/Simulation/CMakeLists.txt b/Examples/Simulation/CMakeLists.txt index ece736e87f61817c03a96ce358eebac6c368f355..0e0bc86b13a38327a5e71324c4972491e85c076e 100644 --- a/Examples/Simulation/CMakeLists.txt +++ b/Examples/Simulation/CMakeLists.txt @@ -1,14 +1,16 @@ project(SimulationExamples) +#OTBSimulation -> OTBOpticalCalibration -> OTB6S +if(OTB6S_LOADED) add_executable(LAIAndPROSAILToSensorResponse LAIAndPROSAILToSensorResponse.cxx) target_link_libraries(LAIAndPROSAILToSensorResponse ${OTB_LIBRARIES}) -add_executable(LAIFromNDVIImageTransform LAIFromNDVIImageTransform.cxx) -target_link_libraries(LAIFromNDVIImageTransform ${OTB_LIBRARIES}) - add_executable(ProsailModel ProsailModel.cxx) target_link_libraries(ProsailModel ${OTB_LIBRARIES}) +endif() +add_executable(LAIFromNDVIImageTransform LAIFromNDVIImageTransform.cxx) +target_link_libraries(LAIFromNDVIImageTransform ${OTB_LIBRARIES}) if(BUILD_TESTING) add_subdirectory(test) diff --git a/Examples/Simulation/test/CMakeLists.txt b/Examples/Simulation/test/CMakeLists.txt index eed146c98e2e69eb94b99f1bda805b50254f4821..9cb0323021507d2671a12e1af58e015a5d4a796d 100644 --- a/Examples/Simulation/test/CMakeLists.txt +++ b/Examples/Simulation/test/CMakeLists.txt @@ -3,6 +3,8 @@ set(INPUTDATA ${OTB_DATA_ROOT}/Examples) # ------- ProsailModelExampleTest ---------- +#OTBSimulation -> OTBOpticalCalibration -> OTB6S +if(OTB6S_LOADED) otb_add_test(NAME siTvProsailModelExampleTest COMMAND ${OTB_TEST_DRIVER} --compare-ascii ${EPSILON_3} ${BASELINE}/siTvProsailModelExampleTest.txt @@ -25,20 +27,6 @@ otb_add_test(NAME siTvProsailModelExampleTest COMMAND ${OTB_TEST_DRIVER} ${TEMP}/siTvProsailModelExampleTest.txt ) - -otb_add_test(NAME siTvLAIFromNDVIImageTransfromExampleTest COMMAND ${OTB_TEST_DRIVER} - --compare-image ${EPSILON_8} - ${OTB_DATA_ROOT}/Baseline/OTB/Images/raRAndNIRVegetationIndex_LAIFromNDVIFormosat2_verySmallFSATSWcRcNir.tif - ${TEMP}/siTvLAIFromNDVIImageTransfromExampleTest_verySmallFSATSW.tif - Execute $<TARGET_FILE:LAIFromNDVIImageTransform> - ${INPUTDATA}/verySmallFSATSW.tif - ${TEMP}/siTvLAIFromNDVIImageTransfromExampleTest_verySmallFSATSW.tif - ${TEMP}/verySmallFSATSW_visu.png - ${TEMP}/siTvLAIFromNDVIImageTransfromExampleTest_verySmallFSATSW_visu.png - 1 # red - 4 # nir -) - otb_add_test(NAME siTvLAIAndPROSAILToSensorResponseExampleTest COMMAND ${OTB_TEST_DRIVER} --compare-image ${EPSILON_8} ${OTBAPP_BASELINE}/siTvLAIAndPROSAILToSensorResponseSmall.tif @@ -54,3 +42,18 @@ Execute $<TARGET_FILE:LAIAndPROSAILToSensorResponse> 5 ${OTB_DATA_ROOT}/Input/ ) + +endif() + +otb_add_test(NAME siTvLAIFromNDVIImageTransfromExampleTest COMMAND ${OTB_TEST_DRIVER} + --compare-image ${EPSILON_8} + ${OTB_DATA_ROOT}/Baseline/OTB/Images/raRAndNIRVegetationIndex_LAIFromNDVIFormosat2_verySmallFSATSWcRcNir.tif + ${TEMP}/siTvLAIFromNDVIImageTransfromExampleTest_verySmallFSATSW.tif + Execute $<TARGET_FILE:LAIFromNDVIImageTransform> + ${INPUTDATA}/verySmallFSATSW.tif + ${TEMP}/siTvLAIFromNDVIImageTransfromExampleTest_verySmallFSATSW.tif + ${TEMP}/verySmallFSATSW_visu.png + ${TEMP}/siTvLAIFromNDVIImageTransfromExampleTest_verySmallFSATSW_visu.png + 1 # red + 4 # nir +) diff --git a/Modules/Adapters/BoostAdapters/include/otbStringUtils.h b/Modules/Adapters/BoostAdapters/include/otbStringUtils.h deleted file mode 100644 index 7b381c2285f028ea542933719f8ccaf66849fe89..0000000000000000000000000000000000000000 --- a/Modules/Adapters/BoostAdapters/include/otbStringUtils.h +++ /dev/null @@ -1,171 +0,0 @@ -/*========================================================================= - - Program: ORFEO Toolbox - Language: C++ - Date: $Date$ - Version: $Revision$ - - - Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. - See OTBCopyright.txt for details. - - - This software is distributed WITHOUT ANY WARRANTY; without even - the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - PURPOSE. See the above copyright notices for more information. - -=========================================================================*/ -#ifndef otbStringUtils_h -#define otbStringUtils_h - -#include <string> -#include <vector> -#include <cstdlib> -#include <iostream> -#include <boost/lexical_cast.hpp> -#include <boost/algorithm/string.hpp> -#include <boost/algorithm/string/predicate.hpp> - - -namespace boost { - -/* I want raw performance and I don't want to use strtod, atoi at different -* places. so here we are. */ -template<> -inline int lexical_cast(const std::string& arg) -{ - char* stop; - int res = std::strtol( arg.c_str(), &stop, 10); - if ( *stop != 0 ) throw_exception(bad_lexical_cast(typeid(int), typeid(std::string))); - return res; -} - -template<> -inline float lexical_cast(const std::string& arg) -{ - char* stop; - float res = std::strtof( arg.c_str(), &stop); - if ( *stop != 0 ) throw_exception(bad_lexical_cast(typeid(float), typeid(std::string))); - return res; -} - -template<> -inline double lexical_cast(const std::string& arg) -{ - char* stop; - double res = std::strtod( arg.c_str(), &stop); - if ( *stop != 0 ) throw_exception(bad_lexical_cast(typeid(double), typeid(std::string))); - return res; -} - - -/* there could also be specialised vice-versa conversion below */ -// template<> -// inline std::string lexical_cast(const int& arg) -// { -// char buffer[20]; // large enough for arg < 2^200 - -// ltoa( arg, buffer, 10 ); -// return std::string( buffer ); // RVO will take place here -// } - -}//namespace boost - - -namespace otb -{ -namespace Utils -{ - -/**\ingroup Utils - * - convert a delimitter seperated string to std::vector of type T - * \tparam vec - std::vector of type T. Specialized boost::lexical_cast is used - * \tparam str - input string - * \tparam delims - delimitter space is default - * \t param T& ret - std::vector of type T - */ - -template<typename T> -void -ConvertStringToVector(std::string const &str, T& ret, const char * delims=" ") -{ - std::vector<std::string> splitted; - - boost::split(splitted, str, boost::is_any_of(delims)); - -// split(str, delims, splitted); - - for(size_t i = 0; i < splitted.size(); i++) - { - typename T::value_type value; - try - { - value = boost::lexical_cast<typename T::value_type> (splitted[i]); - } - catch (boost::bad_lexical_cast &) - { - std::cerr << "Error getting value" << value << " at " << __FILE__ << ":" << __LINE__ << std::endl; - } - - ret.push_back(value); - } -} - -/* -SplitStringToSingleKeyValue - split a given std::string of into key value based -on given delimitter string. default delimitter is '='. If the string doesnot -have a delimitter the key is set to input string and value is set to defValue. - -This function is templated over value type. It uses specialized -boost::lexical_cast if the T is not of type std::string. only primitive types - -Arugments are: - str - reference to input string of type std::string - key - reference to std::string where key will be stored - value - reference to T where value will be stored - defValue - default value if there is no delimitter found. (informally TRUE) - delims - const std::string which contains the delimtter used. Default is '=' - doTrim - option to perform boost::trim() over key and values. Default is true. -*/ -template<typename T> -void SplitStringToSingleKeyValue(const std::string& str, - std::string& key, T& value, const T& defValue, - const std::string delims="=", bool doTrim=true) -{ - std::size_t pos = str.find(delims); - if (pos == std::string::npos) - { - key = str; - value = defValue; - } - key = str.substr(0, pos); - - std::string value_ = str.substr(pos+delims.size(), str.size() - 1 ); - - //do optional trim - if(doTrim) - { - boost::trim_left(key); - boost::trim_right(value_); - } - - if(typeid(value) != typeid(key)) - { - try - { - value = boost::lexical_cast<T>(value_); - } - catch (boost::bad_lexical_cast &) - { - std::cerr << "Error getting value" << value_ << " at " << __FILE__ << ":" << __LINE__ << std::endl; - } - } - else - { - value.swap(value_); - } -} -} // end namespace Utils -} // end namespace otb - -#endif //otbStringUtils_h diff --git a/Modules/Adapters/OSSIMAdapters/include/otbDEMHandler.h b/Modules/Adapters/OSSIMAdapters/include/otbDEMHandler.h index 528144e916d3c06135cdb501bd37487718c5042d..7e51a0c79178a1e1e0489cd45eb0c797e6311343 100644 --- a/Modules/Adapters/OSSIMAdapters/include/otbDEMHandler.h +++ b/Modules/Adapters/OSSIMAdapters/include/otbDEMHandler.h @@ -107,9 +107,29 @@ public: /** return true if the directoty contain DEM */ virtual bool IsValidDEMDirectory(const char* DEMDirectory); - /** Open geoid file. */ - virtual void OpenGeoidFile(const char* geoidFile); - virtual void OpenGeoidFile(const std::string& geoidFile); + /** + * \brief Open geoid file given its filename or throw an exception + * if geoid-file could not be loaded. + * + * \param geoidFile The filename of the geoid-file. + * + * \return <code>true</code> if geoid file has been changed or + * <code>false</code> if geod-file have been set before and could + * not be changed. + */ + virtual bool OpenGeoidFile(const char* geoidFile); + + /** + * \brief Open geoid file given its filename or throw an exception + * if geoid-file could not be loaded. + * + * \param geoidFile The filename of the geoid-file. + * + * \return <code>true</code> if geoid file has been changed or + * <code>false</code> if geod-file have been set before and could + * not be changed. + */ + virtual bool OpenGeoidFile(const std::string& geoidFile); /** Compute the height above MSL(Mean Sea Level) of a geographic point. */ virtual double GetHeightAboveMSL(double lon, double lat) const; @@ -125,6 +145,11 @@ public: /** Set the default height above ellipsoid in case no information is available*/ double GetDefaultHeightAboveEllipsoid() const; + /** + * \return The number of elevation databases in the + * <code>ossimElevManager</code>. + */ + unsigned int GetDEMCount() const; /** Get DEM directory */ std::string GetDEMDirectory(unsigned int idx = 0) const; @@ -132,14 +157,18 @@ public: /** Get Goid file */ std::string GetGeoidFile() const; + /** + * \brief Remove all the ossimElevationDatabases from the + * <code>ossimElevManager</code>. + */ + void ClearDEMs(); + protected: DEMHandler(); virtual ~DEMHandler() {} void PrintSelf(std::ostream& os, itk::Indent indent) const; - ossimElevManager* m_ElevManager; - // Ossim does not allow to retrieve the geoid file path // We therefore must keep it on our side std::string m_GeoidFile; diff --git a/Modules/Adapters/OSSIMAdapters/src/otbDEMHandler.cxx b/Modules/Adapters/OSSIMAdapters/src/otbDEMHandler.cxx index 79b352417c22648288dc5a537bf99707a5f24a09..71b94952260fdcba5b6ed9f65a784976b1eaa3e1 100644 --- a/Modules/Adapters/OSSIMAdapters/src/otbDEMHandler.cxx +++ b/Modules/Adapters/OSSIMAdapters/src/otbDEMHandler.cxx @@ -18,6 +18,8 @@ #include "otbDEMHandler.h" #include "otbMacro.h" +#include <cassert> + #include "ossim/elevation/ossimElevManager.h" #include "ossim/base/ossimGeoidManager.h" #include "ossim/base/ossimFilename.h" @@ -49,23 +51,25 @@ DEMHandler::Pointer DEMHandler::Instance() DEMHandler ::DEMHandler() : - m_ElevManager(ossimElevManager::instance()), m_GeoidFile(""), m_DefaultHeightAboveEllipsoid(0) { - m_ElevManager->setDefaultHeightAboveEllipsoid(m_DefaultHeightAboveEllipsoid); + assert( ossimElevManager::instance()!=NULL ); + + ossimElevManager::instance()->setDefaultHeightAboveEllipsoid(m_DefaultHeightAboveEllipsoid); // Force geoid fallback - m_ElevManager->setUseGeoidIfNullFlag(true); + ossimElevManager::instance()->setUseGeoidIfNullFlag(true); } void DEMHandler ::OpenDEMDirectory(const char* DEMDirectory) { - ossimFilename ossimDEMDir; - ossimDEMDir = ossimFilename(DEMDirectory); + assert( ossimElevManager::instance()!=NULL ); + + ossimFilename ossimDEMDir( DEMDirectory ); - if (!m_ElevManager->loadElevationPath(ossimDEMDir)) + if (!ossimElevManager::instance()->loadElevationPath(ossimDEMDir)) { // In ossim elevation database factory code, the // ossimImageElevationDatabase is explicitly disabled by a #if 0 @@ -82,11 +86,22 @@ DEMHandler else { otbMsgDevMacro(<< "DEM directory contains general elevation image files: " << ossimDEMDir); - m_ElevManager->addDatabase(imageElevationDatabase.get()); + ossimElevManager::instance()->addDatabase(imageElevationDatabase.get()); } } } + +void +DEMHandler +::ClearDEMs() +{ + assert( ossimElevManager::instance()!=NULL ); + + ossimElevManager::instance()->clear(); +} + + void DEMHandler ::OpenDEMDirectory(const std::string& DEMDirectory) @@ -98,8 +113,10 @@ bool DEMHandler ::IsValidDEMDirectory(const char* DEMDirectory) { + assert( ossimElevManager::instance()!=NULL ); + //Try to load elevation source - bool result = m_ElevManager->loadElevationPath(DEMDirectory); + bool result = ossimElevManager::instance()->loadElevationPath(DEMDirectory); if (!result) { @@ -111,7 +128,7 @@ DEMHandler return result; } -void +bool DEMHandler ::OpenGeoidFile(const char* geoidFile) { @@ -131,22 +148,31 @@ DEMHandler // The previous flag will be ignored if // defaultHeightAboveEllipsoid is not NaN - m_ElevManager->setDefaultHeightAboveEllipsoid(ossim::nan()); + assert( ossimElevManager::instance()!=NULL ); + ossimElevManager::instance()->setDefaultHeightAboveEllipsoid(ossim::nan()); + + return true; } else { otbMsgDevMacro(<< "Failure opening geoid"); geoidPtr.release(); + + itkExceptionMacro( << "Failed to open geoid file: '" << geoidFile << "'" ); + + return false; } } + + return false; } -void +bool DEMHandler ::OpenGeoidFile(const std::string& geoidFile) { - OpenGeoidFile(geoidFile.c_str()); + return OpenGeoidFile(geoidFile.c_str()); } double @@ -155,9 +181,14 @@ DEMHandler { double height; ossimGpt ossimWorldPoint; + ossimWorldPoint.lon = lon; ossimWorldPoint.lat = lat; - height = m_ElevManager->getHeightAboveMSL(ossimWorldPoint); + + assert( ossimElevManager::instance()!=NULL ); + + height = ossimElevManager::instance()->getHeightAboveMSL(ossimWorldPoint); + return height; } @@ -174,9 +205,13 @@ DEMHandler { double height; ossimGpt ossimWorldPoint; + ossimWorldPoint.lon = lon; ossimWorldPoint.lat = lat; - height = m_ElevManager->getHeightAboveEllipsoid(ossimWorldPoint); + + assert( ossimElevManager::instance()!=NULL ); + + height = ossimElevManager::instance()->getHeightAboveEllipsoid(ossimWorldPoint); return height; } @@ -195,7 +230,10 @@ DEMHandler // Ossim does not allow to retrieve the default height above // ellipsoid We therefore must keep it on our side m_DefaultHeightAboveEllipsoid = h; - m_ElevManager->setDefaultHeightAboveEllipsoid(h); + + assert( ossimElevManager::instance()!=NULL ); + + ossimElevManager::instance()->setDefaultHeightAboveEllipsoid(h); } double @@ -207,13 +245,24 @@ DEMHandler return m_DefaultHeightAboveEllipsoid; } +unsigned int +DEMHandler +::GetDEMCount() const +{ + assert( ossimElevManager::instance()!=NULL ); + + return ossimElevManager::instance()->getNumberOfElevationDatabases(); +} + std::string DEMHandler::GetDEMDirectory(unsigned int idx) const { std::string demDir = ""; - if(m_ElevManager->getNumberOfElevationDatabases() > 0) + if(ossimElevManager::instance()->getNumberOfElevationDatabases() > 0) { - demDir = m_ElevManager->getElevationDatabase(idx)->getConnectionString().string(); + assert( ossimElevManager::instance()!=NULL ); + + demDir = ossimElevManager::instance()->getElevationDatabase(idx)->getConnectionString().string(); } return demDir; } diff --git a/Modules/Adapters/OSSIMAdapters/src/otbImageKeywordlist.cxx b/Modules/Adapters/OSSIMAdapters/src/otbImageKeywordlist.cxx index 0a0309e5f3dba0a46c02262d9a6529903f4fd798..98d873885e84be567549957fb78fa6985d72e2ee 100644 --- a/Modules/Adapters/OSSIMAdapters/src/otbImageKeywordlist.cxx +++ b/Modules/Adapters/OSSIMAdapters/src/otbImageKeywordlist.cxx @@ -139,41 +139,51 @@ bool ImageKeywordlist:: convertToGDALRPC(GDALRPCInfo &rpc) const { - ossimKeywordlist geom_kwl; - - this->convertToOSSIMKeywordlist(geom_kwl); - - if( geom_kwl.hasKey("polynomial_format")) //RK - { - ossimRefPtr<ossimRpcModel> rpcModel = new ossimRpcModel; - if (rpcModel->loadState(geom_kwl)) - { - ossimRpcModel::rpcModelStruct ossimRpcStruct; - rpcModel->getRpcParameters(ossimRpcStruct); + /* ossimRpcModel::loadState() actually expects certain keyword values to be + * present in the keywordlist. So We check a single keyword value + * (polynomial_format) first. Even though it is not enough to ensure a valid + * ossimRpcModel by checking for presence of one single key but atleast we + * are sure about not to create an ossimRpcModel. + * + * The current mechanism creates ossimRpcModel instance, calls loadState() + * and fails. The below check for 'polynomial_format' save us from creating + * an ossimRpcModel which will be invalid if the 'polynomial_format' is not + * present. + */ + if( m_Keywordlist.find("polynomial_format") != m_Keywordlist.end() ) + { + ossimKeywordlist geom_kwl; + this->convertToOSSIMKeywordlist(geom_kwl); - if (ossimRpcStruct.type == 'B') + ossimRefPtr<ossimRpcModel> rpcModel = new ossimRpcModel; + if (rpcModel->loadState(geom_kwl)) { - rpc.dfSAMP_OFF = ossimRpcStruct.sampOffset; - rpc.dfLINE_OFF = ossimRpcStruct.lineOffset; - rpc.dfSAMP_SCALE = ossimRpcStruct.sampScale; - rpc.dfLINE_SCALE = ossimRpcStruct.lineScale; - rpc.dfLAT_OFF = ossimRpcStruct.latOffset; - rpc.dfLONG_OFF = ossimRpcStruct.lonOffset; - rpc.dfHEIGHT_OFF = ossimRpcStruct.hgtOffset; - rpc.dfLAT_SCALE = ossimRpcStruct.latScale; - rpc.dfLONG_SCALE = ossimRpcStruct.lonScale; - rpc.dfHEIGHT_SCALE = ossimRpcStruct.hgtScale; - - memcpy(rpc.adfLINE_NUM_COEFF, ossimRpcStruct.lineNumCoef, sizeof(double) * 20); - memcpy(rpc.adfLINE_DEN_COEFF, ossimRpcStruct.lineDenCoef, sizeof(double) * 20); - memcpy(rpc.adfSAMP_NUM_COEFF, ossimRpcStruct.sampNumCoef, sizeof(double) * 20); - memcpy(rpc.adfSAMP_DEN_COEFF, ossimRpcStruct.sampDenCoef, sizeof(double) * 20); - - return true; + ossimRpcModel::rpcModelStruct ossimRpcStruct; + rpcModel->getRpcParameters(ossimRpcStruct); + + if (ossimRpcStruct.type == 'B') + { + rpc.dfSAMP_OFF = ossimRpcStruct.sampOffset; + rpc.dfLINE_OFF = ossimRpcStruct.lineOffset; + rpc.dfSAMP_SCALE = ossimRpcStruct.sampScale; + rpc.dfLINE_SCALE = ossimRpcStruct.lineScale; + rpc.dfLAT_OFF = ossimRpcStruct.latOffset; + rpc.dfLONG_OFF = ossimRpcStruct.lonOffset; + rpc.dfHEIGHT_OFF = ossimRpcStruct.hgtOffset; + rpc.dfLAT_SCALE = ossimRpcStruct.latScale; + rpc.dfLONG_SCALE = ossimRpcStruct.lonScale; + rpc.dfHEIGHT_SCALE = ossimRpcStruct.hgtScale; + + memcpy(rpc.adfLINE_NUM_COEFF, ossimRpcStruct.lineNumCoef, sizeof(double) * 20); + memcpy(rpc.adfLINE_DEN_COEFF, ossimRpcStruct.lineDenCoef, sizeof(double) * 20); + memcpy(rpc.adfSAMP_NUM_COEFF, ossimRpcStruct.sampNumCoef, sizeof(double) * 20); + memcpy(rpc.adfSAMP_DEN_COEFF, ossimRpcStruct.sampDenCoef, sizeof(double) * 20); + + return true; + } } - } - } - return false; + } + return false; } void diff --git a/Modules/Adapters/OSSIMAdapters/test/CMakeLists.txt b/Modules/Adapters/OSSIMAdapters/test/CMakeLists.txt index d11608709f0552643a238bb01042453df869e9d2..42440cd9a65cea1d85f0099a6ba1760664f64e8e 100644 --- a/Modules/Adapters/OSSIMAdapters/test/CMakeLists.txt +++ b/Modules/Adapters/OSSIMAdapters/test/CMakeLists.txt @@ -441,6 +441,7 @@ otb_add_test(NAME uaTvDEMHandler_AboveEllipsoid_SRTM_BadGeoid COMMAND otbOSSIMAd 339.513 0.001 ) +set_property(TEST uaTvDEMHandler_AboveEllipsoid_SRTM_BadGeoid PROPERTY WILL_FAIL true) otb_add_test(NAME uaTvDEMHandler_AboveMSL_SRTM_NoGeoid_NoData COMMAND otbOSSIMAdaptersTestDriver otbDEMHandlerTest diff --git a/Modules/Adapters/OSSIMAdapters/test/otbDEMHandlerTest.cxx b/Modules/Adapters/OSSIMAdapters/test/otbDEMHandlerTest.cxx index 9987db6a5bcd5cd74ac0793cd8e5b0aaea5261f2..09ab37cf7c098c990a0668f176099eda0109ab94 100644 --- a/Modules/Adapters/OSSIMAdapters/test/otbDEMHandlerTest.cxx +++ b/Modules/Adapters/OSSIMAdapters/test/otbDEMHandlerTest.cxx @@ -59,7 +59,19 @@ int otbDEMHandlerTest(int argc, char * argv[]) if(geoid != "no") { - demHandler->OpenGeoidFile(geoid); + try + { + demHandler->OpenGeoidFile(geoid); + } + catch( const std::exception & exception ) + { + std::cout + << "Exception thrown while opening geod-file '" << geoid << "':" << std::endl + << exception.what(); + + fail = true; + } + std::cout<<"GetGeoidFile() = "<<demHandler->GetGeoidFile()<<std::endl; } diff --git a/Modules/Core/Common/include/otbDecimateImageFilter.h b/Modules/Core/Common/include/otbDecimateImageFilter.h index d0edccc95bb698f120c46c632efcaa0e349828cb..a171a7670ee7ff27e7adf247faf6e93dfda1e2b8 100644 --- a/Modules/Core/Common/include/otbDecimateImageFilter.h +++ b/Modules/Core/Common/include/otbDecimateImageFilter.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Core/Common/include/otbDecimateImageFilter.txx b/Modules/Core/Common/include/otbDecimateImageFilter.txx index b6eeede4ff84046b54e118d783132535959918c9..554c2c6a900fa9d3d5bba9e22d671425a7921d56 100644 --- a/Modules/Core/Common/include/otbDecimateImageFilter.txx +++ b/Modules/Core/Common/include/otbDecimateImageFilter.txx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Core/Common/include/otbImageRegionAdaptativeSplitter.txx b/Modules/Core/Common/include/otbImageRegionAdaptativeSplitter.txx index 154c73b8c4805ade35f63410d841b2999b2fe751..ef5b28192b5d1f658327d89fa9b8a0b0ec403610 100644 --- a/Modules/Core/Common/include/otbImageRegionAdaptativeSplitter.txx +++ b/Modules/Core/Common/include/otbImageRegionAdaptativeSplitter.txx @@ -107,10 +107,14 @@ ImageRegionAdaptativeSplitter<VImageDimension> // Now we can handle the case where we have a tile hint and a // non-trivial requested number of splits SizeType tilesPerDim, splitsPerDim; - - tilesPerDim[0] = (m_ImageRegion.GetSize()[0] + m_TileHint[0] -1) / m_TileHint[0]; - tilesPerDim[1] = (m_ImageRegion.GetSize()[1] + m_TileHint[1] -1) / m_TileHint[1]; - + IndexType firstTileCovered; + + // First, we need to get which tiles are covered by ROI + firstTileCovered[0] = m_ImageRegion.GetIndex()[0] / m_TileHint[0]; + firstTileCovered[1] = m_ImageRegion.GetIndex()[1] / m_TileHint[1]; + tilesPerDim[0] = (m_ImageRegion.GetIndex()[0] + m_ImageRegion.GetSize()[0] + m_TileHint[0] -1) / m_TileHint[0] - firstTileCovered[0]; + tilesPerDim[1] = (m_ImageRegion.GetIndex()[1] + m_ImageRegion.GetSize()[1] + m_TileHint[1] -1) / m_TileHint[1] - firstTileCovered[1]; + unsigned int totalTiles = tilesPerDim[0] * tilesPerDim[1]; // In this case, we have to group input tiles @@ -134,13 +138,14 @@ ImageRegionAdaptativeSplitter<VImageDimension> i = (i+1)%2; } + splitsPerDim[0] = tilesPerDim[0] / groupTiles[0]; + splitsPerDim[1] = tilesPerDim[1] / groupTiles[1]; // Handle the last small tile if any if(tilesPerDim[0] % groupTiles[0] > 0) splitsPerDim[0]++; - splitsPerDim[1] = tilesPerDim[1] / groupTiles[1]; if(tilesPerDim[1] % groupTiles[1] > 0) splitsPerDim[1]++; @@ -157,8 +162,8 @@ ImageRegionAdaptativeSplitter<VImageDimension> newSplitSize[0] = groupTiles[0] * m_TileHint[0]; newSplitSize[1] = groupTiles[1] * m_TileHint[1]; - newSplitIndex[0] = splitx * newSplitSize[0]; - newSplitIndex[1] = splity * newSplitSize[1]; + newSplitIndex[0] = firstTileCovered[0] * m_TileHint[0] + splitx * newSplitSize[0]; + newSplitIndex[1] = firstTileCovered[1] * m_TileHint[1] + splity * newSplitSize[1]; newSplit.SetIndex(newSplitIndex); newSplit.SetSize(newSplitSize); @@ -181,7 +186,9 @@ ImageRegionAdaptativeSplitter<VImageDimension> unsigned int i = 1; - while(totalTiles * (divideTiles[0] * divideTiles[1]) < m_RequestedNumberOfSplits) + // Exit condition if divideTiles=m_TileHint (i.e. no more subdivision available) + while(totalTiles * (divideTiles[0] * divideTiles[1]) < m_RequestedNumberOfSplits + && (divideTiles[0] < m_TileHint[0] || divideTiles[1] < m_TileHint[1])) { if(divideTiles[i] < m_TileHint[i]) { @@ -195,6 +202,8 @@ ImageRegionAdaptativeSplitter<VImageDimension> splitSize[0] = (m_TileHint[0] + divideTiles[0] - 1)/ divideTiles[0]; splitSize[1] = (m_TileHint[1] + divideTiles[1] - 1)/ divideTiles[1]; + RegionType tileHintRegion; + tileHintRegion.SetSize(m_TileHint); // Fill the tiling scheme for(unsigned int tiley = 0; tiley < tilesPerDim[1]; ++tiley) { @@ -208,19 +217,27 @@ ImageRegionAdaptativeSplitter<VImageDimension> RegionType newSplit; IndexType newSplitIndex; - newSplitIndex[0] = tilex * m_TileHint[0] + divx * splitSize[0]; - newSplitIndex[1] = tiley * m_TileHint[1] + divy * splitSize[1]; + newSplitIndex[0] = (tilex + firstTileCovered[0]) * m_TileHint[0] + divx * splitSize[0]; + newSplitIndex[1] = (tiley + firstTileCovered[1]) * m_TileHint[1] + divy * splitSize[1]; newSplit.SetIndex(newSplitIndex); newSplit.SetSize(splitSize); + tileHintRegion.SetIndex(0, tilex * m_TileHint[0]); + tileHintRegion.SetIndex(1, tiley * m_TileHint[1]); + bool cropped = newSplit.Crop(m_ImageRegion); // If newSplit could not be cropped, it means that it is // outside m_ImageRegion. In this case we ignore it. if(cropped) { - m_StreamVector.push_back(newSplit); + // check that the split stays inside its tile + cropped = newSplit.Crop(tileHintRegion); + if (cropped) + { + m_StreamVector.push_back(newSplit); + } } } } diff --git a/Modules/Core/Common/include/otbModelComponentBase.h b/Modules/Core/Common/include/otbModelComponentBase.h index cdf80a0fa23f9a2b55e079429e7d3519c0532ad4..f8956cd307f52042e506271f6d485cc51c9d8cc1 100644 --- a/Modules/Core/Common/include/otbModelComponentBase.h +++ b/Modules/Core/Common/include/otbModelComponentBase.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Some parts of this code are covered by the GET copyright. - See GETCopyright.txt for details. + Some parts of this code are covered by the IMT copyright. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Core/Common/include/otbModelComponentBase.txx b/Modules/Core/Common/include/otbModelComponentBase.txx index c3a130cedfccf448019a9b3fc86ecf1084746da6..bfdb3c7e0af35b5bbf60f11db46fb03049f5e781 100644 --- a/Modules/Core/Common/include/otbModelComponentBase.txx +++ b/Modules/Core/Common/include/otbModelComponentBase.txx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Some parts of this code are covered by the GET copyright. - See GETCopyright.txt for details. + Some parts of this code are covered by the IMT copyright. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Core/Common/include/otbSubsampledImageRegionConstIterator.h b/Modules/Core/Common/include/otbSubsampledImageRegionConstIterator.h index ea8276f1677133d38b959bee714127db8ac933a6..ef49212f570bcebe112883c1cb192ee8ddd26017 100644 --- a/Modules/Core/Common/include/otbSubsampledImageRegionConstIterator.h +++ b/Modules/Core/Common/include/otbSubsampledImageRegionConstIterator.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Core/Common/include/otbSubsampledImageRegionConstIterator.txx b/Modules/Core/Common/include/otbSubsampledImageRegionConstIterator.txx index 58f1035b3adc70e4d87a28cd45a24472bfbb0bcc..1a9552d1d9475fd19c4741ebf99e31270d578028 100644 --- a/Modules/Core/Common/include/otbSubsampledImageRegionConstIterator.txx +++ b/Modules/Core/Common/include/otbSubsampledImageRegionConstIterator.txx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Core/Common/include/otbSubsampledImageRegionIterator.h b/Modules/Core/Common/include/otbSubsampledImageRegionIterator.h index eb0e45d7d06350ce55ae0a1e7e49264ab622b95f..0fa6f966784b8e7335849e8fa19df498c8b39b67 100644 --- a/Modules/Core/Common/include/otbSubsampledImageRegionIterator.h +++ b/Modules/Core/Common/include/otbSubsampledImageRegionIterator.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Core/Common/test/CMakeLists.txt b/Modules/Core/Common/test/CMakeLists.txt index e32118293bc838491f5be7754ed53d22c35699b3..c40b6a289fdce16ec39937f9db531dbe9d61a38c 100644 --- a/Modules/Core/Common/test/CMakeLists.txt +++ b/Modules/Core/Common/test/CMakeLists.txt @@ -78,6 +78,36 @@ otb_add_test(NAME coTvImageRegionAdaptativeSplitterStripLargeStream COMMAND otbC ${TEMP}/coTvImageRegionAdaptativeSplitterStripLargeStreamOutput.txt ) +otb_add_test(NAME coTvImageRegionAdaptativeSplitterShiftedROILargeStream COMMAND otbCommonTestDriver + --compare-ascii ${NOTOL} + ${BASELINE_FILES}/coTvImageRegionAdaptativeSplitterShiftedROILargeStreamOutput.txt + ${TEMP}/coTvImageRegionAdaptativeSplitterShiftedROILargeStreamOutput.txt + otbImageRegionAdaptativeSplitter + 1000 1000 4000 4000 2000 2000 5 + ${TEMP}/coTvImageRegionAdaptativeSplitterShiftedROILargeStreamOutput.txt + ) + +otb_add_test(NAME coTvImageRegionAdaptativeSplitterShiftedROISmallStream COMMAND otbCommonTestDriver + --compare-ascii ${NOTOL} + ${BASELINE_FILES}/coTvImageRegionAdaptativeSplitterShiftedROISmallStreamOutput.txt + ${TEMP}/coTvImageRegionAdaptativeSplitterShiftedROISmallStreamOutput.txt + otbImageRegionAdaptativeSplitter + 1000 1000 4000 4000 2000 2000 10 + ${TEMP}/coTvImageRegionAdaptativeSplitterShiftedROISmallStreamOutput.txt + ) + +otb_add_test(NAME coTvImageRegionAdaptativeSplitterMissingLine COMMAND otbCommonTestDriver + otbImageRegionAdaptativeSplitter + 0 0 1000 1000 1000 1 37 + ${TEMP}/coTvImageRegionAdaptativeSplitterMissingLine.txt + ) + +otb_add_test(NAME coTvImageRegionAdaptativeSplitterDivideBlock COMMAND otbCommonTestDriver + otbImageRegionAdaptativeSplitter + 0 0 10 10 5 5 36 + ${TEMP}/coTvImageRegionAdaptativeSplitterDivideBlock.txt + ) + otb_add_test(NAME coTuRGBAPixelConverter COMMAND otbCommonTestDriver otbRGBAPixelConverterNew ) diff --git a/Modules/Core/Common/test/otbImageRegionAdaptativeSplitter.cxx b/Modules/Core/Common/test/otbImageRegionAdaptativeSplitter.cxx index 638993505239432d2926178eff637ca2b94c6720..66cc0ae45d7159fe3f84b945cdbaf2edf2a903bb 100644 --- a/Modules/Core/Common/test/otbImageRegionAdaptativeSplitter.cxx +++ b/Modules/Core/Common/test/otbImageRegionAdaptativeSplitter.cxx @@ -59,16 +59,63 @@ int otbImageRegionAdaptativeSplitter(int itkNotUsed(argc), char * argv[]) unsigned int nbSplits = splitter->GetNumberOfSplits(region, requestedNbSplits); + std::vector<RegionType> splits; outfile<<splitter<<std::endl; outfile<<"Split map: "<<std::endl; for(unsigned int i = 0; i < nbSplits; ++i) { - outfile<<"Split "<<i<<": "<<splitter->GetSplit(i, requestedNbSplits, region); + RegionType tmpRegion = splitter->GetSplit(i, requestedNbSplits, region); + splits.push_back(tmpRegion); + outfile<<"Split "<<i<<": "<<tmpRegion; } outfile.close(); + // Basic consistency check on split map + if (requestedNbSplits != nbSplits) + { + std::cout << "Wrong number of splits : got "<<nbSplits<<" , expected "<<requestedNbSplits<< std::endl; + } + IndexType tmpIndex; + for (unsigned int i=regionIndex[0] ; i<(regionIndex[0]+regionSize[0]) ; ++i) + { + for (unsigned int j=regionIndex[1] ; j<(regionIndex[1]+regionSize[1]) ; ++j) + { + tmpIndex[0] = i; + tmpIndex[1] = j; + unsigned int count = 0; + for (unsigned int k=0 ; k<nbSplits ; ++k ) + { + if (splits[k].IsInside(tmpIndex)) + { + count++; + } + } + if (count == 0) + { + std::cout << "Index ["<<i<<","<<j<<"] is missing in split map" << std::endl; + return EXIT_FAILURE; + } + if (count > 1) + { + std::cout << "Index ["<<i<<","<<j<<"] occurs more than once in the split map" << std::endl; + return EXIT_FAILURE; + } + } + } + + unsigned int pixelInSplit = 0; + for (unsigned int k=0 ; k<nbSplits ; ++k ) + { + pixelInSplit += splits[k].GetSize(0) * splits[k].GetSize(1); + } + if (pixelInSplit != regionSize[0]*regionSize[1]) + { + std::cout << "Wrong number of pixels in split : got "<<pixelInSplit << " , expected "<< regionSize[0]*regionSize[1] << std::endl; + return EXIT_FAILURE; + } + return EXIT_SUCCESS; } diff --git a/Modules/Core/ImageBase/test/otbFlexibleDistanceWithMissingValue.cxx b/Modules/Core/ImageBase/test/otbFlexibleDistanceWithMissingValue.cxx index ed2a12c0257798f51ca7bf487d189c3f6b4a87cc..8d468f33dcf494d93733375596c7353a031e9513 100644 --- a/Modules/Core/ImageBase/test/otbFlexibleDistanceWithMissingValue.cxx +++ b/Modules/Core/ImageBase/test/otbFlexibleDistanceWithMissingValue.cxx @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Core/ImageBase/test/otbFlexibleDistanceWithMissingValueNew.cxx b/Modules/Core/ImageBase/test/otbFlexibleDistanceWithMissingValueNew.cxx index d4a76c8923e8bf8d33375e2e4e1d2240510f4411..d6983430adbcdf6683d9e0e22118c631637d3dac 100644 --- a/Modules/Core/ImageBase/test/otbFlexibleDistanceWithMissingValueNew.cxx +++ b/Modules/Core/ImageBase/test/otbFlexibleDistanceWithMissingValueNew.cxx @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Feature/Edge/test/otbHorizontalSobelVectorImageFilter.cxx b/Modules/Feature/Edge/test/otbHorizontalSobelVectorImageFilter.cxx index 8f77718c38ddbddfd875a63c9a5a321a5d0928f1..a1464ebb8ff2a56b038b8bebc1468e2672d1b028 100644 --- a/Modules/Feature/Edge/test/otbHorizontalSobelVectorImageFilter.cxx +++ b/Modules/Feature/Edge/test/otbHorizontalSobelVectorImageFilter.cxx @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Feature/Edge/test/otbSobelVectorImageFilter.cxx b/Modules/Feature/Edge/test/otbSobelVectorImageFilter.cxx index e7f0ff418e62447e8930906de208bc73e5f0d3b3..23cad002fa12a3bd9b914e55a30dbf3f3fa2c61f 100644 --- a/Modules/Feature/Edge/test/otbSobelVectorImageFilter.cxx +++ b/Modules/Feature/Edge/test/otbSobelVectorImageFilter.cxx @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Feature/Edge/test/otbVerticalSobelVectorImageFilter.cxx b/Modules/Feature/Edge/test/otbVerticalSobelVectorImageFilter.cxx index 5a8fffaa3fcd91285a508a38a0b5c7c7d4df5e95..a8439b128914ce180f4be2235d232c1f0116e3e5 100644 --- a/Modules/Feature/Edge/test/otbVerticalSobelVectorImageFilter.cxx +++ b/Modules/Feature/Edge/test/otbVerticalSobelVectorImageFilter.cxx @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerDistanceImageFilter.h b/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerDistanceImageFilter.h index 84ea1ceee6564a4e24529b3d7fc922e9693d6915..cba75ee655fa111f68e62e2583aa81c98a471a20 100644 --- a/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerDistanceImageFilter.h +++ b/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerDistanceImageFilter.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See GETCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerDistanceImageFilter.txx b/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerDistanceImageFilter.txx index 809e374422d982e0f414a4b5e3fc771fe320e676..b309f580dd3a8f64474af61c138c8931bfbc27c7 100644 --- a/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerDistanceImageFilter.txx +++ b/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerDistanceImageFilter.txx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See GETCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerProfileImageFilter.h b/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerProfileImageFilter.h index 370a0384a24c9032b34934963fa3d2613ddc8087..d4a5e93c7fbd588e8837e1e98b9d5a924ae9c44c 100644 --- a/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerProfileImageFilter.h +++ b/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerProfileImageFilter.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Some parts of this code are covered by the GET copyright. - See GETCopyright.txt for details. + Some parts of this code are covered by the IMT copyright. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even diff --git a/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerProfileImageFilter.txx b/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerProfileImageFilter.txx index d49f78abc37746079834cd246f39ee281b70761f..1620df7cd64f5851eb1d7a7c8f4e1aee8976738e 100644 --- a/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerProfileImageFilter.txx +++ b/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerProfileImageFilter.txx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Some parts of this code are covered by the GET copyright. - See GETCopyright.txt for details. + Some parts of this code are covered by the IMT copyright. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even diff --git a/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerSupervizedDistanceImageFilter.h b/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerSupervizedDistanceImageFilter.h index 511f219c2b421bf6772c7d10a885c4d8d52d1ac8..5498cc9cac67f24a45db362f15a7db469054ac5d 100644 --- a/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerSupervizedDistanceImageFilter.h +++ b/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerSupervizedDistanceImageFilter.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See GETCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerSupervizedDistanceImageFilter.txx b/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerSupervizedDistanceImageFilter.txx index f0454a6b8031c808b050294bb1cf7bc3906bbcdc..ab78083eda84b40169395d8e0dcb78958260fa76 100644 --- a/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerSupervizedDistanceImageFilter.txx +++ b/Modules/Filtering/ChangeDetection/include/otbKullbackLeiblerSupervizedDistanceImageFilter.txx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See GETCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/DimensionalityReduction/test/otbAngularProjectionBinaryImageFilter.cxx b/Modules/Filtering/DimensionalityReduction/test/otbAngularProjectionBinaryImageFilter.cxx index 8a4e4698fcbaee9db714a62a32c95e03cc2f5088..3fa0231e66b61b5145d5126b6c05163ee7d1acc2 100644 --- a/Modules/Filtering/DimensionalityReduction/test/otbAngularProjectionBinaryImageFilter.cxx +++ b/Modules/Filtering/DimensionalityReduction/test/otbAngularProjectionBinaryImageFilter.cxx @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/DimensionalityReduction/test/otbLocalActivityVectorImageFilter.cxx b/Modules/Filtering/DimensionalityReduction/test/otbLocalActivityVectorImageFilter.cxx index 52c300533c90bd92c8f6b03636519e4a63f51b8a..c5ff2f8d53f45cdcda76815b82a286884d50fecc 100644 --- a/Modules/Filtering/DimensionalityReduction/test/otbLocalActivityVectorImageFilter.cxx +++ b/Modules/Filtering/DimensionalityReduction/test/otbLocalActivityVectorImageFilter.cxx @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/ImageManipulation/include/otbBoxAndWhiskerImageFilter.h b/Modules/Filtering/ImageManipulation/include/otbBoxAndWhiskerImageFilter.h index 8197ec2e66992e6b22caf9c1df006398735b0dd0..7836509dd106b9d7a231c641c08946bb8bae2fe9 100644 --- a/Modules/Filtering/ImageManipulation/include/otbBoxAndWhiskerImageFilter.h +++ b/Modules/Filtering/ImageManipulation/include/otbBoxAndWhiskerImageFilter.h @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even diff --git a/Modules/Filtering/ImageManipulation/include/otbBoxAndWhiskerImageFilter.txx b/Modules/Filtering/ImageManipulation/include/otbBoxAndWhiskerImageFilter.txx index 9863ae1b2f68d9d0838c05e58fd6e516311c65c9..f15af8aef16fbf0764a3f9d9b561276898ddadf6 100644 --- a/Modules/Filtering/ImageManipulation/include/otbBoxAndWhiskerImageFilter.txx +++ b/Modules/Filtering/ImageManipulation/include/otbBoxAndWhiskerImageFilter.txx @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even diff --git a/Modules/Filtering/ImageManipulation/include/otbEuclideanDistanceMetricWithMissingValue.h b/Modules/Filtering/ImageManipulation/include/otbEuclideanDistanceMetricWithMissingValue.h index e92979c13ae23dc503c4a7a85338f9d5b3018c00..62bbeff2bb2ac17fbce7c6c4f1b7b9a5597f2189 100644 --- a/Modules/Filtering/ImageManipulation/include/otbEuclideanDistanceMetricWithMissingValue.h +++ b/Modules/Filtering/ImageManipulation/include/otbEuclideanDistanceMetricWithMissingValue.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/ImageManipulation/include/otbEuclideanDistanceMetricWithMissingValuePow2.h b/Modules/Filtering/ImageManipulation/include/otbEuclideanDistanceMetricWithMissingValuePow2.h index 6b0d7f4431a4343e990889f1a0686723e4301d0f..6aa3b2e47cc44848247961a76f5844ff5965643b 100644 --- a/Modules/Filtering/ImageManipulation/include/otbEuclideanDistanceMetricWithMissingValuePow2.h +++ b/Modules/Filtering/ImageManipulation/include/otbEuclideanDistanceMetricWithMissingValuePow2.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/ImageManipulation/include/otbEuclideanDistanceMetricWithMissingValuePow2.txx b/Modules/Filtering/ImageManipulation/include/otbEuclideanDistanceMetricWithMissingValuePow2.txx index f83dcc3e59ce9ae73c267aaf521a845b2b9da12e..37c2115f0f2869d4b26bc0490875db58a67eb551 100644 --- a/Modules/Filtering/ImageManipulation/include/otbEuclideanDistanceMetricWithMissingValuePow2.txx +++ b/Modules/Filtering/ImageManipulation/include/otbEuclideanDistanceMetricWithMissingValuePow2.txx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/ImageManipulation/include/otbFlexibleDistanceWithMissingValue.h b/Modules/Filtering/ImageManipulation/include/otbFlexibleDistanceWithMissingValue.h index 0df9e91ab920e2263f7cc9c8568d4d84f0d094da..2c948872edaced2683511424babdae1b35ab8d41 100644 --- a/Modules/Filtering/ImageManipulation/include/otbFlexibleDistanceWithMissingValue.h +++ b/Modules/Filtering/ImageManipulation/include/otbFlexibleDistanceWithMissingValue.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/ImageManipulation/include/otbFlexibleDistanceWithMissingValue.txx b/Modules/Filtering/ImageManipulation/include/otbFlexibleDistanceWithMissingValue.txx index c8b77afd3556a93a00f381bea23ea3d97e6a8d39..9bdb74433f09aa97e0fbd201a90b5b30f3861676 100644 --- a/Modules/Filtering/ImageManipulation/include/otbFlexibleDistanceWithMissingValue.txx +++ b/Modules/Filtering/ImageManipulation/include/otbFlexibleDistanceWithMissingValue.txx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/ImageManipulation/test/otbBoxAndWhiskerImageFilterNew.cxx b/Modules/Filtering/ImageManipulation/test/otbBoxAndWhiskerImageFilterNew.cxx index bace7cb8f528de698a4f949720ee62708eb1edf9..827e79d2191b0babc59220b1ddced3af32253ce9 100644 --- a/Modules/Filtering/ImageManipulation/test/otbBoxAndWhiskerImageFilterNew.cxx +++ b/Modules/Filtering/ImageManipulation/test/otbBoxAndWhiskerImageFilterNew.cxx @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/ImageManipulation/test/otbChangeNoDataValueFilter.cxx b/Modules/Filtering/ImageManipulation/test/otbChangeNoDataValueFilter.cxx index 4bd558f4a9589795edaac72e023f28d1e67f737a..db371582435603f927fdd60004275ee41ed9e28e 100644 --- a/Modules/Filtering/ImageManipulation/test/otbChangeNoDataValueFilter.cxx +++ b/Modules/Filtering/ImageManipulation/test/otbChangeNoDataValueFilter.cxx @@ -70,12 +70,12 @@ int otbChangeNoDataValueFilter(int itkNotUsed(argc),char * itkNotUsed(argv) []) for(it.GoToBegin();!it.IsAtEnd();++it,++count) { - if (count%2 == 0 and it.Get()!=-20.) + if (count%2 == 0 && it.Get()!=-20.) { std::cerr<<"Pixel should have new no-data value"<<std::endl; failed = true; } - else if(count%2 == 1 and it.Get()!=10.) + else if(count%2 == 1 && it.Get()!=10.) { std::cerr<<"Pixel value should be unchanged"<<std::endl; failed = true; diff --git a/Modules/Filtering/ImageManipulation/test/otbEuclideanDistanceMetricWithMissingValue.cxx b/Modules/Filtering/ImageManipulation/test/otbEuclideanDistanceMetricWithMissingValue.cxx index 6fbf120df973a0f5fb2cf629bfddfac334d29c5e..735ab4835d4c91c4def31ba82a2ccac86676333c 100644 --- a/Modules/Filtering/ImageManipulation/test/otbEuclideanDistanceMetricWithMissingValue.cxx +++ b/Modules/Filtering/ImageManipulation/test/otbEuclideanDistanceMetricWithMissingValue.cxx @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/ImageManipulation/test/otbEuclideanDistanceMetricWithMissingValueNew.cxx b/Modules/Filtering/ImageManipulation/test/otbEuclideanDistanceMetricWithMissingValueNew.cxx index ce7620111e718a0d3d1fcc5ea7ecf5593c224180..2b2961961acf065b69dc6b47f8a26e51766f949f 100644 --- a/Modules/Filtering/ImageManipulation/test/otbEuclideanDistanceMetricWithMissingValueNew.cxx +++ b/Modules/Filtering/ImageManipulation/test/otbEuclideanDistanceMetricWithMissingValueNew.cxx @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/ImageManipulation/test/otbLocalGradientVectorImageFilter.cxx b/Modules/Filtering/ImageManipulation/test/otbLocalGradientVectorImageFilter.cxx index 82de2de31555e30681d946c6177759f632920b0e..9d16be65e81184ea3bdb5c7539b866b9e4529661 100644 --- a/Modules/Filtering/ImageManipulation/test/otbLocalGradientVectorImageFilter.cxx +++ b/Modules/Filtering/ImageManipulation/test/otbLocalGradientVectorImageFilter.cxx @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Projection/include/otbGenericRSResampleImageFilter.txx b/Modules/Filtering/Projection/include/otbGenericRSResampleImageFilter.txx index a18dabf09aa8fb846a47750566db9bc813af35b7..590688a4212bf79c15184c2c87b6b861fb5dce76 100644 --- a/Modules/Filtering/Projection/include/otbGenericRSResampleImageFilter.txx +++ b/Modules/Filtering/Projection/include/otbGenericRSResampleImageFilter.txx @@ -101,6 +101,15 @@ GenericRSResampleImageFilter<TInputImage, TOutputImage> if (m_EstimateOutputRpcModel) this->EstimateOutputRpcModel(); + // Estimate the input rpc model if it is needed + if (m_EstimateInputRpcModel && !m_RpcEstimationUpdated) + { + this->EstimateInputRpcModel(); + } + + // Instanciate the RS transform + this->UpdateTransform(); + m_Resampler->SetInput(this->GetInput()); m_Resampler->SetTransform(m_Transform); m_Resampler->SetDisplacementFieldSpacing(this->GetDisplacementFieldSpacing()); @@ -177,15 +186,6 @@ GenericRSResampleImageFilter<TInputImage, TOutputImage> { if (this->m_Updating) return; - // Estimate the input rpc model if it is needed - if (m_EstimateInputRpcModel && !m_RpcEstimationUpdated) - { - this->EstimateInputRpcModel(); - } - - // Instanciate the RS transform - this->UpdateTransform(); - // Retrieve output requested region m_Resampler->GetOutput()->SetRequestedRegion(output); m_Resampler->GetOutput()->PropagateRequestedRegion(); diff --git a/Modules/Filtering/Projection/include/otbOrthoRectificationFilter.txx b/Modules/Filtering/Projection/include/otbOrthoRectificationFilter.txx index d3e16f52d87338e2542f1223ae94434761ae8830..51bdfecb491266a1054ad32a3c8098aceab67cbd 100644 --- a/Modules/Filtering/Projection/include/otbOrthoRectificationFilter.txx +++ b/Modules/Filtering/Projection/include/otbOrthoRectificationFilter.txx @@ -67,6 +67,7 @@ OrthoRectificationFilter<TInputImage, TOutputImage, TMapProjection, TInterpolato // Fill the GenericRSTransform with those information this->SetOutputProjectionRef(projectionRef); + this->UpdateTransform(); } } diff --git a/Modules/Filtering/Projection/include/otbROIdataConversion.h b/Modules/Filtering/Projection/include/otbROIdataConversion.h index 247f61cad56187e7c870c1ec009ca19abc0bcae0..541eddb93cfd3faa230885c507e29ad4ef1f490c 100644 --- a/Modules/Filtering/Projection/include/otbROIdataConversion.h +++ b/Modules/Filtering/Projection/include/otbROIdataConversion.h @@ -9,8 +9,6 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) GET / ENST Bretagne. All rights reserved. - See GETCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Projection/include/otbROIdataConversion.txx b/Modules/Filtering/Projection/include/otbROIdataConversion.txx index 142bb6fe1b5af7e244c917f896fa4dcc7fe4ef04..b8513a07a84af131eefb692c87db89760c83542f 100644 --- a/Modules/Filtering/Projection/include/otbROIdataConversion.txx +++ b/Modules/Filtering/Projection/include/otbROIdataConversion.txx @@ -9,8 +9,6 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) GET / ENST Bretagne. All rights reserved. - See GETCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/include/otbSubsampleImageFilter.h b/Modules/Filtering/Wavelet/include/otbSubsampleImageFilter.h index 0e900decd7f2a71623a1c0842ad4e34b8535c397..92ac96137241a4c65253bfd74c2d6ee6e916b92c 100644 --- a/Modules/Filtering/Wavelet/include/otbSubsampleImageFilter.h +++ b/Modules/Filtering/Wavelet/include/otbSubsampleImageFilter.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/include/otbSubsampleImageFilter.txx b/Modules/Filtering/Wavelet/include/otbSubsampleImageFilter.txx index 2474aca2bcb8e27a38ff4e5d7d1a2dd18b7c8705..0375f3956aad96d52f20f24967927a424ea2ab8f 100644 --- a/Modules/Filtering/Wavelet/include/otbSubsampleImageFilter.txx +++ b/Modules/Filtering/Wavelet/include/otbSubsampleImageFilter.txx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/include/otbWaveletFilterBank.h b/Modules/Filtering/Wavelet/include/otbWaveletFilterBank.h index 68b477bffde7552699753dba51bceb4bec214a4b..c219f717e9ae02e2ffbd2ec831b2c8c15c86e1bf 100644 --- a/Modules/Filtering/Wavelet/include/otbWaveletFilterBank.h +++ b/Modules/Filtering/Wavelet/include/otbWaveletFilterBank.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/include/otbWaveletFilterBank.txx b/Modules/Filtering/Wavelet/include/otbWaveletFilterBank.txx index 35ff142ec52b1761702a67f563999ffceb7ef077..21ba8cdf9f7ce65529c33adbe3b6c94a1ad29e85 100644 --- a/Modules/Filtering/Wavelet/include/otbWaveletFilterBank.txx +++ b/Modules/Filtering/Wavelet/include/otbWaveletFilterBank.txx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/include/otbWaveletGenerator.h b/Modules/Filtering/Wavelet/include/otbWaveletGenerator.h index ae8a87bb2d336d4433c8b6241f4372390d7dddef..68be4ad16b6f185059b8b7ba14a3f061f9940de6 100644 --- a/Modules/Filtering/Wavelet/include/otbWaveletGenerator.h +++ b/Modules/Filtering/Wavelet/include/otbWaveletGenerator.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/include/otbWaveletHighPassOperator.h b/Modules/Filtering/Wavelet/include/otbWaveletHighPassOperator.h index 1f51a4d287c0f05f0d4f4685b4a08a05d3207a5b..f680eea930fbc073ae371036d74f83c6c21bb9d4 100644 --- a/Modules/Filtering/Wavelet/include/otbWaveletHighPassOperator.h +++ b/Modules/Filtering/Wavelet/include/otbWaveletHighPassOperator.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/include/otbWaveletLowPassOperator.h b/Modules/Filtering/Wavelet/include/otbWaveletLowPassOperator.h index 0742709e72d1b6d1dc942b7deb93bd8cc08533a5..2b612a2099f4c459f089be132c245c2a53466fc8 100644 --- a/Modules/Filtering/Wavelet/include/otbWaveletLowPassOperator.h +++ b/Modules/Filtering/Wavelet/include/otbWaveletLowPassOperator.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/include/otbWaveletOperator.h b/Modules/Filtering/Wavelet/include/otbWaveletOperator.h index c512f906827f3a6cd10d744d7e4019dea083b5a9..a6d9394d3ebfedf3d520f6e904f9510ca392693e 100644 --- a/Modules/Filtering/Wavelet/include/otbWaveletOperator.h +++ b/Modules/Filtering/Wavelet/include/otbWaveletOperator.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/include/otbWaveletOperatorBase.h b/Modules/Filtering/Wavelet/include/otbWaveletOperatorBase.h index c3598d325966ab10cb6887c1075f4472f41c93c3..d17c1dfd9be33fb83d151e7d70b87793ef8b5429 100644 --- a/Modules/Filtering/Wavelet/include/otbWaveletOperatorBase.h +++ b/Modules/Filtering/Wavelet/include/otbWaveletOperatorBase.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/include/otbWaveletOperatorBase.txx b/Modules/Filtering/Wavelet/include/otbWaveletOperatorBase.txx index 2270f2300c3d2eccd98573aa9abae05813798718..8b76a313d3f1b23fbf5970ade6a13c863e91c6ac 100644 --- a/Modules/Filtering/Wavelet/include/otbWaveletOperatorBase.txx +++ b/Modules/Filtering/Wavelet/include/otbWaveletOperatorBase.txx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/include/otbWaveletPacketDecompositionCosts.h b/Modules/Filtering/Wavelet/include/otbWaveletPacketDecompositionCosts.h index c07570b9d45e5e3a3193b2d578aabae0e6ecd24e..e87374c43d274f0c3f5ce6777bfb48ceaa472e5f 100644 --- a/Modules/Filtering/Wavelet/include/otbWaveletPacketDecompositionCosts.h +++ b/Modules/Filtering/Wavelet/include/otbWaveletPacketDecompositionCosts.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/include/otbWaveletPacketTransform.h b/Modules/Filtering/Wavelet/include/otbWaveletPacketTransform.h index 76449b94c45ffa32173819f7611ad39e54b471e4..24e4028a5760b819520be49b8e857fb5749f83dd 100644 --- a/Modules/Filtering/Wavelet/include/otbWaveletPacketTransform.h +++ b/Modules/Filtering/Wavelet/include/otbWaveletPacketTransform.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/include/otbWaveletPacketTransform.txx b/Modules/Filtering/Wavelet/include/otbWaveletPacketTransform.txx index dea2820740652abfe27680390e7d041486844882..2d0e628e7261313511f99fee398179cb28bf8844 100644 --- a/Modules/Filtering/Wavelet/include/otbWaveletPacketTransform.txx +++ b/Modules/Filtering/Wavelet/include/otbWaveletPacketTransform.txx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/include/otbWaveletTransform.h b/Modules/Filtering/Wavelet/include/otbWaveletTransform.h index 1c16dffe0b8efea7dc1926b7c4c85265b3e59e4c..c80ea8050986d413fceadc1f1e8091ef1480dd1b 100644 --- a/Modules/Filtering/Wavelet/include/otbWaveletTransform.h +++ b/Modules/Filtering/Wavelet/include/otbWaveletTransform.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/include/otbWaveletTransform.txx b/Modules/Filtering/Wavelet/include/otbWaveletTransform.txx index fcccb78421cad5365c80cdd76590c19cd82da81f..93eac94b95f2dfeeba0b94a6c25f0c04af34f475 100644 --- a/Modules/Filtering/Wavelet/include/otbWaveletTransform.txx +++ b/Modules/Filtering/Wavelet/include/otbWaveletTransform.txx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/src/otbWaveletGenerator.cxx b/Modules/Filtering/Wavelet/src/otbWaveletGenerator.cxx index 04b4ee18244c3cfcff43bab20434d8319d4df319..9de9df6d6520844cf78db9a6a217897dcf8382e6 100644 --- a/Modules/Filtering/Wavelet/src/otbWaveletGenerator.cxx +++ b/Modules/Filtering/Wavelet/src/otbWaveletGenerator.cxx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/test/otbSubsampleImageFilter.cxx b/Modules/Filtering/Wavelet/test/otbSubsampleImageFilter.cxx index a5f08b759b0697062a6d9265804d5fb4712ebc14..10721eedae3fe555851e5252746d3962a13306d6 100644 --- a/Modules/Filtering/Wavelet/test/otbSubsampleImageFilter.cxx +++ b/Modules/Filtering/Wavelet/test/otbSubsampleImageFilter.cxx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/test/otbSubsampleImageFilterNew.cxx b/Modules/Filtering/Wavelet/test/otbSubsampleImageFilterNew.cxx index e3ccf387069f3c759f43dcf4d93be5d8e2cf7cae..538cdfed2470e975e65a0cfd8cb2e75eacead012 100644 --- a/Modules/Filtering/Wavelet/test/otbSubsampleImageFilterNew.cxx +++ b/Modules/Filtering/Wavelet/test/otbSubsampleImageFilterNew.cxx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/test/otbWaveletFilterBank.cxx b/Modules/Filtering/Wavelet/test/otbWaveletFilterBank.cxx index b90dfbd642ad090ea0303db82811e3efae51d7fd..3878fb7620a0ad9441c922e0a5cded3c925ed6e2 100644 --- a/Modules/Filtering/Wavelet/test/otbWaveletFilterBank.cxx +++ b/Modules/Filtering/Wavelet/test/otbWaveletFilterBank.cxx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/test/otbWaveletInverseTransformNew.cxx b/Modules/Filtering/Wavelet/test/otbWaveletInverseTransformNew.cxx index 34ecd1545e8550292b6df8fbc906a04604f996aa..ff27846f6da7852531236e5e37e654be4f0c716a 100644 --- a/Modules/Filtering/Wavelet/test/otbWaveletInverseTransformNew.cxx +++ b/Modules/Filtering/Wavelet/test/otbWaveletInverseTransformNew.cxx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/test/otbWaveletOperator.cxx b/Modules/Filtering/Wavelet/test/otbWaveletOperator.cxx index 9b2baa47b05ec857e51de6705d641347a67417d9..a1c215042c39872b115fd6d4257ce1b6d73eedd9 100644 --- a/Modules/Filtering/Wavelet/test/otbWaveletOperator.cxx +++ b/Modules/Filtering/Wavelet/test/otbWaveletOperator.cxx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/test/otbWaveletOperatorNew.cxx b/Modules/Filtering/Wavelet/test/otbWaveletOperatorNew.cxx index 866104bb4214c436a392595522ab908794f58c91..712a7a868fcdfc1f6447ab75581dc2b03cfc2002 100644 --- a/Modules/Filtering/Wavelet/test/otbWaveletOperatorNew.cxx +++ b/Modules/Filtering/Wavelet/test/otbWaveletOperatorNew.cxx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/test/otbWaveletPacketInverseTransformNew.cxx b/Modules/Filtering/Wavelet/test/otbWaveletPacketInverseTransformNew.cxx index 8735db6bd7c2db507785c62c2ab1e439eb8c8867..b89cc7d40089dff2bcdc2ae8938646b891c56207 100644 --- a/Modules/Filtering/Wavelet/test/otbWaveletPacketInverseTransformNew.cxx +++ b/Modules/Filtering/Wavelet/test/otbWaveletPacketInverseTransformNew.cxx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/test/otbWaveletPacketTransform.cxx b/Modules/Filtering/Wavelet/test/otbWaveletPacketTransform.cxx index 5726576a4f779aee308b800f1e3b8b8c774ac825..b7e6d00990606b2b3f9f7abe5d269b3254f8e64a 100644 --- a/Modules/Filtering/Wavelet/test/otbWaveletPacketTransform.cxx +++ b/Modules/Filtering/Wavelet/test/otbWaveletPacketTransform.cxx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Filtering/Wavelet/test/otbWaveletTransform.cxx b/Modules/Filtering/Wavelet/test/otbWaveletTransform.cxx index 053f5fe52fb11401ee3bca5453484489013b7547..4774374c69fa364f6dbf96b6f76ba93b272f16cf 100644 --- a/Modules/Filtering/Wavelet/test/otbWaveletTransform.cxx +++ b/Modules/Filtering/Wavelet/test/otbWaveletTransform.cxx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/IO/ImageIO/include/otbImageSeriesFileReader.h b/Modules/IO/ImageIO/include/otbImageSeriesFileReader.h index ada4080d51ca7e55d129ef5be21a42d1a0b0fb8f..75089a2e311d97b571d3344acb7c5b69b8d8ba1e 100644 --- a/Modules/IO/ImageIO/include/otbImageSeriesFileReader.h +++ b/Modules/IO/ImageIO/include/otbImageSeriesFileReader.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/IO/ImageIO/include/otbImageSeriesFileReader.txx b/Modules/IO/ImageIO/include/otbImageSeriesFileReader.txx index eaed4aa022564773cef8f2a29129985c93d4cd98..51ad2f02f9ced9ef74f23316fdf339806cd89b78 100644 --- a/Modules/IO/ImageIO/include/otbImageSeriesFileReader.txx +++ b/Modules/IO/ImageIO/include/otbImageSeriesFileReader.txx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/IO/ImageIO/include/otbImageSeriesFileReaderBase.h b/Modules/IO/ImageIO/include/otbImageSeriesFileReaderBase.h index cb1aa3ae4afe7819a318f306b325df768490cb68..06ce1a68187096b4dd5a12c65551dc6f8f30f70b 100644 --- a/Modules/IO/ImageIO/include/otbImageSeriesFileReaderBase.h +++ b/Modules/IO/ImageIO/include/otbImageSeriesFileReaderBase.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/IO/ImageIO/include/otbImageSeriesFileReaderBase.txx b/Modules/IO/ImageIO/include/otbImageSeriesFileReaderBase.txx index 5d355b4d2940c0f9cb10b17cfe3bed46305f78f5..60ddc4d1c5d7986289de9e861a75fd0eab185093 100644 --- a/Modules/IO/ImageIO/include/otbImageSeriesFileReaderBase.txx +++ b/Modules/IO/ImageIO/include/otbImageSeriesFileReaderBase.txx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/IO/ImageIO/test/otbImageSeriesFileReader.cxx b/Modules/IO/ImageIO/test/otbImageSeriesFileReader.cxx index 47bf8c64c53d0b81819e4c567cd317559dc7f799..aea4736ae9de996593ef4ce78c8c987e84cce103 100644 --- a/Modules/IO/ImageIO/test/otbImageSeriesFileReader.cxx +++ b/Modules/IO/ImageIO/test/otbImageSeriesFileReader.cxx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. + Copyright (c) Institut Mines-Telecom. All rights reserved. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Learning/LearningBase/include/otbGaussianModelComponent.h b/Modules/Learning/LearningBase/include/otbGaussianModelComponent.h index 6937b06d517f6d1e3642c6d6512ba33207442b85..ecc4cb26515708e2408e3d0948bf60c511f56d4b 100644 --- a/Modules/Learning/LearningBase/include/otbGaussianModelComponent.h +++ b/Modules/Learning/LearningBase/include/otbGaussianModelComponent.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Some parts of this code are covered by the GET copyright. - See GETCopyright.txt for details. + Some parts of this code are covered by the IMT copyright. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Learning/LearningBase/include/otbGaussianModelComponent.txx b/Modules/Learning/LearningBase/include/otbGaussianModelComponent.txx index a1edbe7085a8429dcb27968a199a5aeafed54328..d420d84070ee859167619653435c97ff3c093c9c 100644 --- a/Modules/Learning/LearningBase/include/otbGaussianModelComponent.txx +++ b/Modules/Learning/LearningBase/include/otbGaussianModelComponent.txx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Some parts of this code are covered by the GET copyright. - See GETCopyright.txt for details. + Some parts of this code are covered by the IMT copyright. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Learning/LearningBase/include/otbSEMClassifier.h b/Modules/Learning/LearningBase/include/otbSEMClassifier.h index 6f7e5e76946750ca587dd819963166a0f51e26b6..e23db49440f1168fa424d2a7e8665b09c770aec7 100644 --- a/Modules/Learning/LearningBase/include/otbSEMClassifier.h +++ b/Modules/Learning/LearningBase/include/otbSEMClassifier.h @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Some parts of this code are covered by the GET copyright. - See GETCopyright.txt for details. + Some parts of this code are covered by the IMT copyright. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Learning/LearningBase/include/otbSEMClassifier.txx b/Modules/Learning/LearningBase/include/otbSEMClassifier.txx index b4ef42b3e8423882433e97aa0c13ad60311989c5..9222684ae6399ff6e5c4c3440b045934b800dc0e 100644 --- a/Modules/Learning/LearningBase/include/otbSEMClassifier.txx +++ b/Modules/Learning/LearningBase/include/otbSEMClassifier.txx @@ -9,8 +9,8 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Some parts of this code are covered by the GET copyright. - See GETCopyright.txt for details. + Some parts of this code are covered by the IMT copyright. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Learning/SOM/include/otbCzihoSOMLearningBehaviorFunctor.h b/Modules/Learning/SOM/include/otbCzihoSOMLearningBehaviorFunctor.h index 7a68fa6476b91bcec72b558fbacd5ce993e590ea..19fdf31beb0bc714980a6edc086894887b3afd6c 100644 --- a/Modules/Learning/SOM/include/otbCzihoSOMLearningBehaviorFunctor.h +++ b/Modules/Learning/SOM/include/otbCzihoSOMLearningBehaviorFunctor.h @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Learning/SOM/include/otbCzihoSOMNeighborhoodBehaviorFunctor.h b/Modules/Learning/SOM/include/otbCzihoSOMNeighborhoodBehaviorFunctor.h index a81df3e33962587b325e28fcc1ae3b5b0de7b3e4..a364d57dc905d8a07259df1891503966f5d0760f 100644 --- a/Modules/Learning/SOM/include/otbCzihoSOMNeighborhoodBehaviorFunctor.h +++ b/Modules/Learning/SOM/include/otbCzihoSOMNeighborhoodBehaviorFunctor.h @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Learning/SOM/include/otbPeriodicSOM.h b/Modules/Learning/SOM/include/otbPeriodicSOM.h index 7bc01e4abba9524fabbddc3b6ab46993a3e004d2..835aeff7523fa33e2d75655f72be337d9cfe3143 100644 --- a/Modules/Learning/SOM/include/otbPeriodicSOM.h +++ b/Modules/Learning/SOM/include/otbPeriodicSOM.h @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Learning/SOM/include/otbPeriodicSOM.txx b/Modules/Learning/SOM/include/otbPeriodicSOM.txx index 1618b77c550d3837d9b93a97cf0338d5f6be0bb0..352817bbd576b63b19a942cfb1b9d128137a7305 100644 --- a/Modules/Learning/SOM/include/otbPeriodicSOM.txx +++ b/Modules/Learning/SOM/include/otbPeriodicSOM.txx @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Learning/SOM/include/otbSOM.h b/Modules/Learning/SOM/include/otbSOM.h index 7205dc75b77a478467cdb83f378fb9a986c10a2d..ff020cd4465b7f993dab49c1dd103fb5f95944de 100644 --- a/Modules/Learning/SOM/include/otbSOM.h +++ b/Modules/Learning/SOM/include/otbSOM.h @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Learning/SOM/include/otbSOM.txx b/Modules/Learning/SOM/include/otbSOM.txx index f30b97c1d0d66619149bb13d9ae9b7c82333b5ac..cdc5066cfd1197122946331dd6bc69ee369c0a45 100644 --- a/Modules/Learning/SOM/include/otbSOM.txx +++ b/Modules/Learning/SOM/include/otbSOM.txx @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even diff --git a/Modules/Learning/SOM/include/otbSOMLearningBehaviorFunctor.h b/Modules/Learning/SOM/include/otbSOMLearningBehaviorFunctor.h index 3db9aec74fbd8b55739c9a0f0af6891cf602bef6..4e38167100cdf4fca1e5a3ed7c441d99186a2698 100644 --- a/Modules/Learning/SOM/include/otbSOMLearningBehaviorFunctor.h +++ b/Modules/Learning/SOM/include/otbSOMLearningBehaviorFunctor.h @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Learning/SOM/include/otbSOMMap.h b/Modules/Learning/SOM/include/otbSOMMap.h index 00276472de2b5328775d3f2f410ce88560a09572..9135f1c731a44dbed499458b7e3a3730444e75d3 100644 --- a/Modules/Learning/SOM/include/otbSOMMap.h +++ b/Modules/Learning/SOM/include/otbSOMMap.h @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom Bretagne. All right reserved. -See GETCopyright.txt for details. +See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even diff --git a/Modules/Learning/SOM/include/otbSOMMap.txx b/Modules/Learning/SOM/include/otbSOMMap.txx index 9f027e61dfb6954ca67728a23f8df3b5954d83d9..e36e4d6a66a045afd7ea6f04e1662572b840c9d2 100644 --- a/Modules/Learning/SOM/include/otbSOMMap.txx +++ b/Modules/Learning/SOM/include/otbSOMMap.txx @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom Bretagne. All right reserved. -See GETCopyright.txt for details. +See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even diff --git a/Modules/Learning/SOM/include/otbSOMWithMissingValue.h b/Modules/Learning/SOM/include/otbSOMWithMissingValue.h index 94219310f6d267a00b238c2f9a5774ca9adf7fa7..51aef377d0d4d00c8bd9cacb129177066e0a28b6 100644 --- a/Modules/Learning/SOM/include/otbSOMWithMissingValue.h +++ b/Modules/Learning/SOM/include/otbSOMWithMissingValue.h @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Learning/SOM/include/otbSOMWithMissingValue.txx b/Modules/Learning/SOM/include/otbSOMWithMissingValue.txx index 0e62e477129589a5f23b97bdcc65fc1abbba3aef..fdb01dd57090beb4dbca8471925b5b014af2fb05 100644 --- a/Modules/Learning/SOM/include/otbSOMWithMissingValue.txx +++ b/Modules/Learning/SOM/include/otbSOMWithMissingValue.txx @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Learning/SOM/include/otbSOMbasedImageFilter.h b/Modules/Learning/SOM/include/otbSOMbasedImageFilter.h index 47b1fb2bb5689192d242c8c5948827fc4ed7b7e0..5935f10ec167d5d27698a3592f8ecfeb415d302c 100644 --- a/Modules/Learning/SOM/include/otbSOMbasedImageFilter.h +++ b/Modules/Learning/SOM/include/otbSOMbasedImageFilter.h @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even diff --git a/Modules/Learning/SOM/include/otbSOMbasedImageFilter.txx b/Modules/Learning/SOM/include/otbSOMbasedImageFilter.txx index a5f9b4639ca46236ec63a0e35a38c990eb476626..6e6e4f1a625514aefec8cdb02c4758f89982b936 100644 --- a/Modules/Learning/SOM/include/otbSOMbasedImageFilter.txx +++ b/Modules/Learning/SOM/include/otbSOMbasedImageFilter.txx @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even diff --git a/Modules/Learning/SOM/test/otbSOMWithMissingValueNew.cxx b/Modules/Learning/SOM/test/otbSOMWithMissingValueNew.cxx index 75b8fab15896c21ac45617c1d97880bc77fe0a20..3720430043eca83820bc270b0f4fecb0798d3b83 100644 --- a/Modules/Learning/SOM/test/otbSOMWithMissingValueNew.cxx +++ b/Modules/Learning/SOM/test/otbSOMWithMissingValueNew.cxx @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even diff --git a/Modules/Learning/SOM/test/otbSOMbasedImageFilterNew.cxx b/Modules/Learning/SOM/test/otbSOMbasedImageFilterNew.cxx index 8e8bbfc1fe48397ba4c0c07d6ca3268413d4327b..a47be5f4e438ca6b6ca69b0d8c8cf05280a73979 100644 --- a/Modules/Learning/SOM/test/otbSOMbasedImageFilterNew.cxx +++ b/Modules/Learning/SOM/test/otbSOMbasedImageFilterNew.cxx @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even diff --git a/Modules/Learning/SVMLearning/include/otbSVMImageClassificationWithRuleFilter.h b/Modules/Learning/SVMLearning/include/otbSVMImageClassificationWithRuleFilter.h index 55c06dba46c3fee96df10cb48f18247017981abe..e66afd9c497e81ec7f2a8fd78a72a91c7062fe98 100644 --- a/Modules/Learning/SVMLearning/include/otbSVMImageClassificationWithRuleFilter.h +++ b/Modules/Learning/SVMLearning/include/otbSVMImageClassificationWithRuleFilter.h @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Learning/SVMLearning/include/otbSVMImageClassificationWithRuleFilter.txx b/Modules/Learning/SVMLearning/include/otbSVMImageClassificationWithRuleFilter.txx index a10c5ad2f0e2b011ed9a15ce9282be9fc269dcde..cc7ad7f23fe526b3054fdf791783192cc1d412ce 100644 --- a/Modules/Learning/SVMLearning/include/otbSVMImageClassificationWithRuleFilter.txx +++ b/Modules/Learning/SVMLearning/include/otbSVMImageClassificationWithRuleFilter.txx @@ -10,7 +10,7 @@ See OTBCopyright.txt for details. Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved. - See ITCopyright.txt for details. + See IMTCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Segmentation/Conversion/test/otbOGRDataSourceToLabelImageFilter.cxx b/Modules/Segmentation/Conversion/test/otbOGRDataSourceToLabelImageFilter.cxx index 681dbc61f6632d6c9c2bec7629c840fcdf021501..745f1b01c173852e09de0fccabe9adca795f0ffb 100644 --- a/Modules/Segmentation/Conversion/test/otbOGRDataSourceToLabelImageFilter.cxx +++ b/Modules/Segmentation/Conversion/test/otbOGRDataSourceToLabelImageFilter.cxx @@ -9,8 +9,6 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom; Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Segmentation/Conversion/test/otbPolygonizationRasterizationTest.cxx b/Modules/Segmentation/Conversion/test/otbPolygonizationRasterizationTest.cxx index df6921448a8e451d49df493344143ac7f2416e32..abb25628684c026b0a46d7159d616c708d4bde15 100644 --- a/Modules/Segmentation/Conversion/test/otbPolygonizationRasterizationTest.cxx +++ b/Modules/Segmentation/Conversion/test/otbPolygonizationRasterizationTest.cxx @@ -9,8 +9,6 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom; Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Segmentation/Conversion/test/otbVectorDataRasterizeFilter.cxx b/Modules/Segmentation/Conversion/test/otbVectorDataRasterizeFilter.cxx index 2e073dd958d0911abb49bfab8f73206e9c4bc2af..e9032ae96fbec36579f503d863cb68725287c528 100644 --- a/Modules/Segmentation/Conversion/test/otbVectorDataRasterizeFilter.cxx +++ b/Modules/Segmentation/Conversion/test/otbVectorDataRasterizeFilter.cxx @@ -9,8 +9,6 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom; Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Segmentation/Conversion/test/otbVectorDataToLabelImageFilter.cxx b/Modules/Segmentation/Conversion/test/otbVectorDataToLabelImageFilter.cxx index 04619bd5a928dc2d70f5373dc5872c36f6ea7fd6..229b5b622f7681c485f51b1a81e719ae2511d8ba 100644 --- a/Modules/Segmentation/Conversion/test/otbVectorDataToLabelImageFilter.cxx +++ b/Modules/Segmentation/Conversion/test/otbVectorDataToLabelImageFilter.cxx @@ -9,8 +9,6 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom; Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR diff --git a/Modules/Segmentation/Conversion/test/otbVectorDataToLabelImageFilterWithoutReader.cxx b/Modules/Segmentation/Conversion/test/otbVectorDataToLabelImageFilterWithoutReader.cxx index 4b00e88ba2ab3f103d9d629c5a064bd2c9da3e9c..8dd0bc3d5af301881a4f583a82fc306b82611a95 100644 --- a/Modules/Segmentation/Conversion/test/otbVectorDataToLabelImageFilterWithoutReader.cxx +++ b/Modules/Segmentation/Conversion/test/otbVectorDataToLabelImageFilterWithoutReader.cxx @@ -9,8 +9,6 @@ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. - Copyright (c) Institut Telecom; Telecom Bretagne. All rights reserved. - See ITCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR