Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Youssefi
otb
Commits
78a1f1b7
Commit
78a1f1b7
authored
18 years ago
by
Thomas Feuvrier
Browse files
Options
Downloads
Patches
Plain Diff
Création dests des exemples de MultiScale.
parent
4d80bf44
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Examples/MultiScale/CMakeLists.txt
+86
-0
86 additions, 0 deletions
Examples/MultiScale/CMakeLists.txt
Examples/MultiScale/otbMultiScaleExamplesTests.cxx
+43
-0
43 additions, 0 deletions
Examples/MultiScale/otbMultiScaleExamplesTests.cxx
with
129 additions
and
0 deletions
Examples/MultiScale/CMakeLists.txt
+
86
−
0
View file @
78a1f1b7
...
...
@@ -13,3 +13,89 @@ TARGET_LINK_LIBRARIES(MorphologicalPyramidSegmenterExample OTBCommon OTBIO OTBMu
ADD_EXECUTABLE
(
MorphologicalPyramidSegmentationExample MorphologicalPyramidSegmentationExample.cxx
)
TARGET_LINK_LIBRARIES
(
MorphologicalPyramidSegmentationExample OTBCommon OTBIO OTBMultiScale ITKCommon ITKIO
)
IF
(
NOT OTB_DISABLE_CXX_TESTING AND NOT OTB_DISABLE_CXX_EXAMPLES_TESTING
)
SET
(
BASELINE
${
OTB_DATA_ROOT
}
/Baseline/Examples/MultiScale
)
SET
(
INPUTDATA
${
OTB_SOURCE_DIR
}
/Examples/Data
)
SET
(
TEMP
${
OTB_BINARY_DIR
}
/Testing/Temporary
)
SET
(
EXE_TESTS
${
CXX_TEST_PATH
}
/otbMultiScaleExamplesTests
)
SET
(
TOL 0.0
)
# ------- MorphologicalPyramidAnalysisFilterExampleTest ----------
ADD_TEST
(
MorphologicalPyramidAnalysisFilterExampleTest
${
EXE_TESTS
}
--compare-n-images
${
TOL
}
20
${
BASELINE
}
/suburb2_an_1.jpeg
${
TEMP
}
/suburb2_an_1.jpeg
${
BASELINE
}
/suburb2_an_2.jpeg
${
TEMP
}
/suburb2_an_2.jpeg
${
BASELINE
}
/suburb2_an_3.jpeg
${
TEMP
}
/suburb2_an_3.jpeg
${
BASELINE
}
/suburb2_an_4.jpeg
${
TEMP
}
/suburb2_an_4.jpeg
${
BASELINE
}
/suburb2_sf_1.jpeg
${
TEMP
}
/suburb2_sf_1.jpeg
${
BASELINE
}
/suburb2_sf_2.jpeg
${
TEMP
}
/suburb2_sf_2.jpeg
${
BASELINE
}
/suburb2_sf_3.jpeg
${
TEMP
}
/suburb2_sf_3.jpeg
${
BASELINE
}
/suburb2_sf_4.jpeg
${
TEMP
}
/suburb2_sf_4.jpeg
${
BASELINE
}
/suburb2_if_1.jpeg
${
TEMP
}
/suburb2_if_1.jpeg
${
BASELINE
}
/suburb2_if_2.jpeg
${
TEMP
}
/suburb2_if_2.jpeg
${
BASELINE
}
/suburb2_if_3.jpeg
${
TEMP
}
/suburb2_if_3.jpeg
${
BASELINE
}
/suburb2_if_4.jpeg
${
TEMP
}
/suburb2_if_4.jpeg
${
BASELINE
}
/suburb2_id_1.jpeg
${
TEMP
}
/suburb2_id_1.jpeg
${
BASELINE
}
/suburb2_id_2.jpeg
${
TEMP
}
/suburb2_id_2.jpeg
${
BASELINE
}
/suburb2_id_3.jpeg
${
TEMP
}
/suburb2_id_3.jpeg
${
BASELINE
}
/suburb2_id_4.jpeg
${
TEMP
}
/suburb2_id_4.jpeg
${
BASELINE
}
/suburb2_sd_1.jpeg
${
TEMP
}
/suburb2_sd_1.jpeg
${
BASELINE
}
/suburb2_sd_2.jpeg
${
TEMP
}
/suburb2_sd_2.jpeg
${
BASELINE
}
/suburb2_sd_3.jpeg
${
TEMP
}
/suburb2_sd_3.jpeg
${
BASELINE
}
/suburb2_sd_4.jpeg
${
TEMP
}
/suburb2_sd_4.jpeg
MorphologicalPyramidAnalysisFilterExampleTest
${
INPUTDATA
}
/suburb2.jpeg
${
TEMP
}
/suburb2_an_1.jpeg
${
TEMP
}
/suburb2_an_2.jpeg
${
TEMP
}
/suburb2_an_3.jpeg
${
TEMP
}
/suburb2_an_4.jpeg
${
TEMP
}
/suburb2_sf_1.jpeg
${
TEMP
}
/suburb2_sf_2.jpeg
${
TEMP
}
/suburb2_sf_3.jpeg
${
TEMP
}
/suburb2_sf_4.jpeg
${
TEMP
}
/suburb2_if_1.jpeg
${
TEMP
}
/suburb2_if_2.jpeg
${
TEMP
}
/suburb2_if_3.jpeg
${
TEMP
}
/suburb2_if_4.jpeg
${
TEMP
}
/suburb2_id_1.jpeg
${
TEMP
}
/suburb2_id_2.jpeg
${
TEMP
}
/suburb2_id_3.jpeg
${
TEMP
}
/suburb2_id_4.jpeg
${
TEMP
}
/suburb2_sd_1.jpeg
${
TEMP
}
/suburb2_sd_2.jpeg
${
TEMP
}
/suburb2_sd_3.jpeg
${
TEMP
}
/suburb2_sd_4.jpeg
4 2
)
# ------- MorphologicalPyramidSynthesisFilterExampleTest ----------
ADD_TEST
(
MorphologicalPyramidSynthesisFilterExampleTest
${
EXE_TESTS
}
--compare-image
${
TOL
}
${
BASELINE
}
/suburb2_synthesis.jpeg
${
TEMP
}
/suburb2_synthesis.jpeg
MorphologicalPyramidSynthesisFilterExampleTest
${
INPUTDATA
}
/suburb2.jpeg
${
TEMP
}
/suburb2_synthesis.jpeg
4 2
)
# ------- MorphologicalPyramidSegmenterExampleTest ----------
ADD_TEST
(
MorphologicalPyramidSegmenterExampleTest
${
EXE_TESTS
}
--compare-image
${
TOL
}
${
BASELINE
}
/outputPyrSegmented.tif
${
TEMP
}
/outputPyrSegmented.tif
MorphologicalPyramidSegmenterExampleTest
${
INPUTDATA
}
/msPyrMRToMS_IKO_Halles_4_2_sf_full.tif
${
INPUTDATA
}
/ROI_IKO_PAN_LesHalles.tif
${
TEMP
}
/outputPyrSegmented.tif
0 0.9 0.9 10
)
INCLUDE_DIRECTORIES
(
"
${
OTBTesting_BINARY_DIR
}
"
)
ADD_EXECUTABLE
(
otbMultiScaleExamplesTests otbMultiScaleExamplesTests.cxx
)
TARGET_LINK_LIBRARIES
(
otbMultiScaleExamplesTests gdal ITKIO ITKAlgorithms ITKStatistics ITKCommon OTBBasicFilters OTBCommon OTBDisparityMap OTBIO OTBSpatialReasoning OTBChangeDetection OTBFeatureExtraction OTBLearning OTBMultiScale
)
ENDIF
(
NOT OTB_DISABLE_CXX_TESTING AND NOT OTB_DISABLE_CXX_EXAMPLES_TESTING
)
This diff is collapsed.
Click to expand it.
Examples/MultiScale/otbMultiScaleExamplesTests.cxx
0 → 100644
+
43
−
0
View file @
78a1f1b7
/*=========================================================================
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
()
{
REGISTER_TEST
(
MorphologicalPyramidAnalysisFilterExampleTest
);
REGISTER_TEST
(
MorphologicalPyramidSynthesisFilterExampleTest
);
REGISTER_TEST
(
MorphologicalPyramidSegmenterExampleTest
);
}
#undef main
#define main MorphologicalPyramidAnalysisFilterExampleTest
#include
"MorphologicalPyramidAnalysisFilterExample.cxx"
#undef main
#define main MorphologicalPyramidSynthesisFilterExampleTest
#include
"MorphologicalPyramidSynthesisFilterExample.cxx"
#undef main
#define main MorphologicalPyramidSegmenterExampleTest
#include
"MorphologicalPyramidSegmenterExample.cxx"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment