CMakeLists.txt 8.84 KB
Newer Older
1 2 3 4 5

#--- LineSegmentDetection ---#

IF(OTB_DATA_USE_LARGEINPUT)

6 7
OTB_TEST_APPLICATION(NAME   apTvFeLineSegmentDetection
                     APP  LineSegmentDetection
8 9
                     OPTIONS -in ${OTB_DATA_LARGEINPUT_ROOT}/DEMPSTER-SHAFER/ROI_QB_TOULOUSE.TIF
                             -out ${TEMP}/feTvLineSegmentDetection_LI.shp
10 11 12 13 14 15
                     VALID   --compare-ogr ${EPSILON_9}
                             ${OTBAPP_BASELINE_FILES}/feTvLineSegmentDetection_LI.shp
                             ${TEMP}/feTvLineSegmentDetection_LI.shp)
    
OTB_TEST_APPLICATION(NAME   apTvFeLineSegmentDetectionNoRescale
                     APP  LineSegmentDetection
16 17
                     OPTIONS -in ${OTB_DATA_LARGEINPUT_ROOT}/DEMPSTER-SHAFER/ROI_QB_TOULOUSE.TIF
                             -out ${TEMP}/feTvLineSegmentDetection_LI_NoRescale.shp
18
                             -norescale true
19 20 21 22
                     VALID   --compare-ogr ${EPSILON_9}
                             ${OTBAPP_BASELINE_FILES}/feTvLineSegmentDetection_LI_NoRescale.shp
                             ${TEMP}/feTvLineSegmentDetection_LI_NoRescale.shp)
  
23 24
ENDIF(OTB_DATA_USE_LARGEINPUT)

25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
OTB_TEST_APPLICATION(NAME  apTvFERadiometricIndices_veg
                     APP  RadiometricIndices
                     OPTIONS -in ${INPUTDATA}/veryverySmallFSATSW.tif
                     		 -channels.red 3
                     		 -channels.green 2
                     		 -channels.nir 4
                             -list Vegetation:NDVI Vegetation:RVI Vegetation:IPVI
                             -out ${TEMP}/apTvFERadiometricIndices_veg.tif
                     VALID   --compare-image ${NOTOL}
                   			 ${BASELINE}/apTvRIRadiometricVegetationIndices.tif
                 		     ${TEMP}/apTvFERadiometricIndices_veg.tif)

OTB_TEST_APPLICATION(NAME  apTvFERadiometricIndices_wat
                     APP  RadiometricIndices
                     OPTIONS -in ${INPUTDATA}/veryverySmallFSATSW.tif
                             -list Water:NDWI2
                             -channels.red 3
                     		 -channels.green 2
                     		 -channels.nir 4
                             -out ${TEMP}/apTvFERadiometricIndices_wat.tif
                     VALID   --compare-image ${NOTOL}
                   			 ${BASELINE}/apTvRIRadiometricWaterIndices_.tif
                 		     ${TEMP}/apTvFERadiometricIndices_wat.tif)

49 50
OTB_TEST_APPLICATION(NAME  apTvFEHaralickTextureExtraction
                     APP  HaralickTextureExtraction
51
                     OPTIONS -in ${INPUTDATA}/QB_Toulouse_Ortho_PAN.tif                             
52 53 54
                             -channel 1
                             -texture simple 
                             -out ${TEMP}/apTvFEHaralickTextureExtraction.tif
55 56
                             -parameters.min 127
                             -parameters.max 1578
57
                     VALID   --compare-image ${EPSILON_15}
58
                   			 ${BASELINE}/apTvFEHaralickTextureExtraction.tif
59 60 61 62 63 64 65 66 67 68
                 		     ${TEMP}/apTvFEHaralickTextureExtraction.tif)
                 		     
OTB_TEST_APPLICATION(NAME  apTvFESFSTextureExtraction
                     APP  SFSTextureExtraction
                     OPTIONS -in ${INPUTDATA}/QB_Toulouse_Ortho_PAN.tif                             
                             -channel 1 
                             -out ${TEMP}/apTvFESFSTextureExtraction.tif
                     VALID   --compare-image ${NOTOL}
                   			 ${BASELINE}/apTvFESFSTextureExtraction.tif
                 		     ${TEMP}/apTvFESFSTextureExtraction.tif)
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
                 		     
OTB_TEST_APPLICATION(NAME  apTvFEBinaryMorphologicalOperation
                     APP  BinaryMorphologicalOperation
                     OPTIONS -in ${INPUTDATA}/QB_Toulouse_Ortho_PAN_Mask.tif                             
                             -channel 1 
                             -structype ball
                             -structype.ball.xradius 10
                             -filter opening
                             -filter.opening.foreval 1.0
                             -filter.opening.backval 0.0                      
                             -out ${TEMP}/apTvFEBinaryMorphologicalOperation.tif
                     VALID   --compare-image ${NOTOL}
                   			 ${BASELINE}/apTvFEBinaryMorphologicalOperation.tif
                 		     ${TEMP}/apTvFEBinaryMorphologicalOperation.tif)	     

OTB_TEST_APPLICATION(NAME  apTvFEGrayScaleMorphologicalOperation
                     APP  GrayScaleMorphologicalOperation
                     OPTIONS -in ${INPUTDATA}/QB_Toulouse_Ortho_PAN.tif                             
                             -channel 1 
                             -structype ball
                             -structype.ball.xradius 10
                             -filter opening                     
                             -out ${TEMP}/apTvFEGrayScaleMorphologicalOperation.tif
                     VALID   --compare-image ${NOTOL}
                   			 ${BASELINE}/apTvFEGrayScaleMorphologicalOperation.tif
94 95 96 97 98 99 100 101 102 103 104
                 		     ${TEMP}/apTvFEGrayScaleMorphologicalOperation.tif)	  
                 		     
OTB_TEST_APPLICATION(NAME  apTvFELocalStatisticExtraction
                     APP  LocalStatisticExtraction
                     OPTIONS -in ${INPUTDATA}/QB_Toulouse_Ortho_PAN.tif                             
                             -channel 1 
                             -radius 3
                             -out ${TEMP}/apTvFELocalStatisticExtraction.tif
                     VALID   --compare-image ${NOTOL}
                   			 ${BASELINE}/feTvRadiometricMomentsImageFilter.tif
                 		     ${TEMP}/apTvFELocalStatisticExtraction.tif)      		        
105 106 107 108 109 110 111 112 113
                 		     
OTB_TEST_APPLICATION(NAME  apTvFEEdgeExtraction
                     APP  EdgeExtraction
                     OPTIONS -in ${INPUTDATA}/QB_Toulouse_Ortho_PAN.tif                             
                             -channel 1 
                             -filter sobel
                             -out ${TEMP}/apTvFEEdgeExtraction.tif
                     VALID   --compare-image ${NOTOL}
                   			 ${BASELINE}/apTvFEEdgeExtraction.tif
114 115 116 117
                 		     ${TEMP}/apTvFEEdgeExtraction.tif)  

OTB_TEST_APPLICATION(NAME apTvHomologousPointsExtractionFull
                     APP  HomologousPointsExtraction
118 119
                     OPTIONS -in1 ${INPUTDATA}/QB_TOULOUSE_MUL_Extract_500_500.tif
                             -in2 ${INPUTDATA}/QB_TOULOUSE_MUL_Extract_500_500.tif
120 121 122 123 124 125 126 127
                             -algorithm surf
                             -out ${TEMP}/apTvHomologousPointsExtractionFull.txt
                     VALID   --compare-ascii ${EPSILON_9}
                             ${BASELINE_FILES}/apTvHomologousPointsExtractionFull.txt
                             ${TEMP}/apTvHomologousPointsExtractionFull.txt)

OTB_TEST_APPLICATION(NAME apTvHomologousPointsExtractionGeoBins
                     APP  HomologousPointsExtraction
128 129
                     OPTIONS -in1 ${INPUTDATA}/QB_TOULOUSE_MUL_Extract_500_500.tif
                             -in2 ${INPUTDATA}/QB_TOULOUSE_MUL_Extract_500_500.tif
130 131
                             -algorithm surf
                             -mode geobins
132 133
                             -mode.geobins.binsize 100
                             -mode.geobins.binstep 25
134 135 136
                             -mfilter 1
                             -precision 10
                             -2wgs84 1
137 138
                             -elev.dem ${INPUTDATA}/DEM/srtm_directory
                             -elev.geoid ${INPUTDATA}/DEM/egm96.grd
139 140 141 142
                             -out ${TEMP}/apTvHomologousPointsExtractionGeoBins.txt
                     VALID   --compare-ascii ${EPSILON_9}
                             ${BASELINE_FILES}/apTvHomologousPointsExtractionGeoBins.txt
                             ${TEMP}/apTvHomologousPointsExtractionGeoBins.txt)
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161

OTB_TEST_APPLICATION(NAME   apTvFEDimensionalityReductionPCA
                     APP  DimensionalityReduction
                     OPTIONS -in ${INPUTDATA}/cupriteSubHsi.tif
                             -out ${TEMP}/apTvChDimensionalityReductionPCA.tif
                             -method pca
                     VALID   --compare-image 0.025
                             ${BASELINE}/bfTvPCAImageFilter3.tif
                             ${TEMP}/apTvChDimensionalityReductionPCA.tif)

OTB_TEST_APPLICATION(NAME   apTvFEDimensionalityReductionMAF
                     APP  DimensionalityReduction
                     OPTIONS -in ${INPUTDATA}/cupriteSubHsi.tif
                             -out ${TEMP}/apTvFEDimensionalityReductionMAF.tif
                             -method maf
                     VALID   --compare-image 0.025
                             ${BASELINE}/bfTvMaximumAutocorrelationFactorImageFilterOutput.tif
                             ${TEMP}/apTvFEDimensionalityReductionMAF.tif)