From 570c75dfbd0017b62b732f4d3db8869e5ea5d9a7 Mon Sep 17 00:00:00 2001 From: Julien Michel <julien.michel@c-s.fr> Date: Tue, 19 Dec 2006 14:36:26 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20la=20cat=C3=A9gorie=20DisparityMap?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Code/CMakeLists.txt | 2 +- Code/DisparityMap/CMakeLists.txt | 9 ++++++ Code/DisparityMap/toto.cxx | 0 Testing/Code/CMakeLists.txt | 2 +- Testing/Code/DisparityMap/CMakeLists.txt | 27 +++++++++++++++++ .../DisparityMap/otbDisparityMapTests.cxx | 29 +++++++++++++++++++ otbIncludeDirectories.cmake | 2 ++ 7 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 Code/DisparityMap/CMakeLists.txt create mode 100644 Code/DisparityMap/toto.cxx create mode 100644 Testing/Code/DisparityMap/CMakeLists.txt create mode 100644 Testing/Code/DisparityMap/otbDisparityMapTests.cxx diff --git a/Code/CMakeLists.txt b/Code/CMakeLists.txt index eb9c1531c4..2c9dc045dd 100644 --- a/Code/CMakeLists.txt +++ b/Code/CMakeLists.txt @@ -1,5 +1,5 @@ SUBDIRS(Common BasicFilters IO ChangeDetection FeatureExtraction Learning -MultiScale SpatialReasoning) +MultiScale DisparityMap SpatialReasoning) IF(OTB_USE_VISU) SUBDIRS(Visu) diff --git a/Code/DisparityMap/CMakeLists.txt b/Code/DisparityMap/CMakeLists.txt new file mode 100644 index 0000000000..4ffbca6e17 --- /dev/null +++ b/Code/DisparityMap/CMakeLists.txt @@ -0,0 +1,9 @@ +# Sources of non-templated classes. + +FILE(GLOB OTBDisparityMap_SRCS "*.cxx" ) + +ADD_LIBRARY(OTBDisparityMap ${OTBDisparityMap_SRCS}) +TARGET_LINK_LIBRARIES (OTBDisparityMap ITKCommon) + +INSTALL_TARGETS(/lib/otb OTBDisparityMap ) +INSTALL_FILES(/include/otb/DisparityMap "(\\.h|\\.txx)$") diff --git a/Code/DisparityMap/toto.cxx b/Code/DisparityMap/toto.cxx new file mode 100644 index 0000000000..e69de29bb2 diff --git a/Testing/Code/CMakeLists.txt b/Testing/Code/CMakeLists.txt index ed478fdcc1..53652a511c 100644 --- a/Testing/Code/CMakeLists.txt +++ b/Testing/Code/CMakeLists.txt @@ -1,7 +1,7 @@ # $Id$ SUBDIRS(Common IO BasicFilters FeatureExtraction ChangeDetection Learning -MultiScale SpatialReasoning) +MultiScale DisparityMap SpatialReasoning) IF(OTB_USE_VISU) SUBDIRS(Visu) diff --git a/Testing/Code/DisparityMap/CMakeLists.txt b/Testing/Code/DisparityMap/CMakeLists.txt new file mode 100644 index 0000000000..fad26a087a --- /dev/null +++ b/Testing/Code/DisparityMap/CMakeLists.txt @@ -0,0 +1,27 @@ + +IF( NOT OTB_DISABLE_CXX_TESTING ) + +SET(BASELINE ${OTB_DATA_ROOT}/Baseline/OTB/Images) +SET(BASELINE_FILES ${OTB_DATA_ROOT}/Baseline/OTB/Files) +SET(INPUTDATA ${OTB_DATA_ROOT}/Input) +#Images de teledetection (grosses images ) +SET(IMAGEDATA ${OTB_DATA_ROOT}/LargeInput ) +SET(TEMP ${OTBTesting_BINARY_DIR}/Temporary) + +#Tolerance sur diff pixel image +SET(TOL 0.0) + + +SET(DISPARITYMAP_TESTS ${CXX_TEST_PATH}/otbDisparityMapTests) + + +# ------- Fichiers sources CXX ----------------------------------- +SET(BasicDisparityMap_SRCS +) + +INCLUDE_DIRECTORIES("${OTBTesting_BINARY_DIR}") + +ADD_EXECUTABLE(otbDisparityMapTests otbDisparityMapTests.cxx ${BasicDisparityMap_SRCS}) +TARGET_LINK_LIBRARIES(otbDisparityMapTests OTBIO OTBDisparityMap gdal ITKIO ITKAlgorithms ITKStatistics ITKCommon) + +ENDIF( NOT OTB_DISABLE_CXX_TESTING ) diff --git a/Testing/Code/DisparityMap/otbDisparityMapTests.cxx b/Testing/Code/DisparityMap/otbDisparityMapTests.cxx new file mode 100644 index 0000000000..e2bba57dcd --- /dev/null +++ b/Testing/Code/DisparityMap/otbDisparityMapTests.cxx @@ -0,0 +1,29 @@ +/*========================================================================= + + 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. + +=========================================================================*/ + +// this file defines the otbMultiScaleTest for the test driver +// and all it expects is that you have a function called RegisterTests +#if defined(_MSC_VER) +#pragma warning ( disable : 4786 ) +#endif +#include <iostream> +#include "otbTestMain.h" + +void RegisterTests() +{ +} diff --git a/otbIncludeDirectories.cmake b/otbIncludeDirectories.cmake index 9a77be03a8..5fe4f94c7e 100644 --- a/otbIncludeDirectories.cmake +++ b/otbIncludeDirectories.cmake @@ -17,6 +17,7 @@ SET(OTB_INCLUDE_DIRS_BUILD_TREE ${OTB_INCLUDE_DIRS_BUILD_TREE} ${OTB_SOURCE_DIR}/Code/Learning ${OTB_SOURCE_DIR}/Code/MultiScale ${OTB_SOURCE_DIR}/Code/SpatialReasoning + ${OTB_SOURCE_DIR}/Code/DisparityMap ${OTB_SOURCE_DIR}/Code/Visu ${OTB_BINARY_DIR}/Code/Visu ${OTB_SOURCE_DIR}/Utilities/BGL @@ -71,6 +72,7 @@ SET(OTB_INCLUDE_DIRS_INSTALL_TREE ${OTB_INCLUDE_DIRS_INSTALL_TREE} ${OTB_INSTALL_INCLUDE_DIR}/Learning ${OTB_INSTALL_INCLUDE_DIR}/MultiScale ${OTB_INSTALL_INCLUDE_DIR}/SpatialReasoning + ${OTB_INSTALL_INCLUDE_DIR}/DisparityMap ${OTB_INSTALL_INCLUDE_DIR}/Visu ${OTB_INSTALL_INCLUDE_DIR}/Utilities ${OTB_INSTALL_INCLUDE_DIR}/Utilities/ITK -- GitLab