<commit_before>PROJECT(ImageRadiometryExamples)
INCLUDE_REGULAR_EXPRESSION("^.*$")

SET(FUSION_EXAMPLES ${CXX_TEST_PATH}/RadiometryExamplesTests)


ADD_EXECUTABLE(ARVIMultiChannelRAndBAndNIRVegetationIndexImageFilter ARVIMultiChannelRAndBAndNIRVegetationIndexImageFilter.cxx )
TARGET_LINK_LIBRARIES(ARVIMultiChannelRAndBAndNIRVegetationIndexImageFilter OTBRadiometry OTBCommon OTBIO ITKNumerics ITKIO)

ADD_EXECUTABLE(NDVIRAndNIRVegetationIndexImageFilter NDVIRAndNIRVegetationIndexImageFilter.cxx )
TARGET_LINK_LIBRARIES(NDVIRAndNIRVegetationIndexImageFilter OTBRadiometry OTBCommon OTBIO ITKNumerics ITKIO)

ADD_EXECUTABLE(AtmosphericCorrectionSequencement AtmosphericCorrectionSequencement.cxx )
TARGET_LINK_LIBRARIES(AtmosphericCorrectionSequencement OTBRadiometry OTBCommon OTBIO ITKNumerics ITKIO)

IF( NOT OTB_DISABLE_CXX_TESTING AND NOT OTB_DISABLE_CXX_EXAMPLES_TESTING )

SET(BASELINE ${OTB_DATA_ROOT}/Baseline/Examples/Radiometry)

SET(INPUTDATA ${OTB_SOURCE_DIR}/Examples/Data)
SET(TEMP ${OTB_BINARY_DIR}/Testing/Temporary)

SET(EXE_TESTS ${CXX_TEST_PATH}/otbRadiometryExamplesTests)

#Tolerance sur diff pixel image
SET(TOL 0.0)
SET(EPSILON 0.000000000001)


# -------            ARVIMultiChannelRAndBAndNIRVegetationIndexImageFilter   ------------------------------

ADD_TEST(ARVIMultiChannelRAndBAndNIRVegetationIndexImageFilterTest ${EXE_TESTS}  
  --compare-image ${EPSILON}   
  		  ${BASELINE}/ARVIMultiChannelRAndBAndNIRVegetationIndex.tif
                  ${TEMP}/ARVIMultiChannelRAndBAndNIRVegetationIndex.tif
       ARVIMultiChannelRAndBAndNIRVegetationIndexImageFilterTest
        	  ${INPUTDATA}/poupees_sub.png
	          ${TEMP}/ARVIMultiChannelRAndBAndNIRVegetationIndex.tif
		  ${TEMP}/ARVIMultiChannelRAndBAndNIRVegetationIndex3.tif		
	          ${TEMP}/ARVIMultiChannelRAndBAndNIRVegetationIndex2.tif 
 	          1 
 	          2 
 	          3	
         	  0.6 # Gamma parameter
 	)



# -------            NDVIRAndNIRVegetationIndexImageFilter   ------------------------------
        
ADD_TEST(NDVIRAndNIRVegetationIndexImageFilterTest ${EXE_TESTS}  
  --compare-image ${TOL}   
  	          ${BASELINE}/NDVIRAndNIRVegetationIndex.tif
                  ${TEMP}/NDVIRAndNIRVegetationIndex.tif
       NDVIRAndNIRVegetationIndexImageFilterTest
 	${INPUTDATA}/poupees_sub_c1.png
	${INPUTDATA}/poupees_sub_c2.png
 	${TEMP}/NDVIRAndNIRVegetationIndex.tif
 	${TEMP}/NDVIRAndNIRVegetationIndex2.tif
 	${TEMP}/NDVIRAndNIRVegetationIndex3.tif
	${TEMP}/NDVIRAndNIRVegetationIndex4.tif
 	)

ADD_TEST(AtmosphericCorrectionSequencementTest ${EXE_TESTS}  
        --compare-image ${TOL}  
		${BASELINE}/raTvSurfaceAdjencyEffect6SCorrectionSchemeFilter.tif
                ${TEMP}/raTvRomaniaAtmosphericCorrectionSequencement.tif
        AtmosphericCorrectionSequencementTest
        ${INPUTDATA}/Romania_Extract.tif
	${TEMP}/raTvRomaniaAtmosphericCorrectionSequencement.tif
        ${INPUTDATA}/atmosphericCorrectionSequencement_alpha_beta.txt
        ${INPUTDATA}/atmosphericCorrectionSequencement_solar_illumination.txt
        ${INPUTDATA}/atmosphericCorrectionSequencement_wavelenght_spectral_bands_spot4_1.txt
        
# ImageToLuminance parameters                
# LuminanceToReflectance parameters                
        27.3    #solar azimuthal elevation
	4       #day
	12      #mounth
# AtmosphericCorrectionParametersTo6SAtmosphericRadiativeTerms parameters                
        27.3
        152.7
        -77.0
        1013.
        2.48134
        0.34400
        1		
        0.199854		
# ReflectanceToSurfaceReflectance parameters                <commit_msg>Modif de fichier d'entree pour la radiometrie.<commit_after>PROJECT(ImageRadiometryExamples)
INCLUDE_REGULAR_EXPRESSION("^.*$")

SET(FUSION_EXAMPLES ${CXX_TEST_PATH}/RadiometryExamplesTests)


ADD_EXECUTABLE(ARVIMultiChannelRAndBAndNIRVegetationIndexImageFilter ARVIMultiChannelRAndBAndNIRVegetationIndexImageFilter.cxx )
TARGET_LINK_LIBRARIES(ARVIMultiChannelRAndBAndNIRVegetationIndexImageFilter OTBRadiometry OTBCommon OTBIO ITKNumerics ITKIO)

ADD_EXECUTABLE(NDVIRAndNIRVegetationIndexImageFilter NDVIRAndNIRVegetationIndexImageFilter.cxx )
TARGET_LINK_LIBRARIES(NDVIRAndNIRVegetationIndexImageFilter OTBRadiometry OTBCommon OTBIO ITKNumerics ITKIO)

ADD_EXECUTABLE(AtmosphericCorrectionSequencement AtmosphericCorrectionSequencement.cxx )
TARGET_LINK_LIBRARIES(AtmosphericCorrectionSequencement OTBRadiometry OTBCommon OTBIO ITKNumerics ITKIO)

IF( NOT OTB_DISABLE_CXX_TESTING AND NOT OTB_DISABLE_CXX_EXAMPLES_TESTING )

SET(BASELINE ${OTB_DATA_ROOT}/Baseline/Examples/Radiometry)

SET(INPUTDATA ${OTB_SOURCE_DIR}/Examples/Data)
SET(TEMP ${OTB_BINARY_DIR}/Testing/Temporary)

SET(EXE_TESTS ${CXX_TEST_PATH}/otbRadiometryExamplesTests)

#Tolerance sur diff pixel image
SET(TOL 0.0)
SET(EPSILON 0.000000000001)


# -------            ARVIMultiChannelRAndBAndNIRVegetationIndexImageFilter   ------------------------------

ADD_TEST(ARVIMultiChannelRAndBAndNIRVegetationIndexImageFilterTest ${EXE_TESTS}  
  --compare-image ${EPSILON}   
  		  ${BASELINE}/ARVIMultiChannelRAndBAndNIRVegetationIndex.tif
                  ${TEMP}/ARVIMultiChannelRAndBAndNIRVegetationIndex.tif
       ARVIMultiChannelRAndBAndNIRVegetationIndexImageFilterTest
        	  ${INPUTDATA}/poupees_sub.png
	          ${TEMP}/ARVIMultiChannelRAndBAndNIRVegetationIndex.tif
		  ${TEMP}/ARVIMultiChannelRAndBAndNIRVegetationIndex3.tif		
	          ${TEMP}/ARVIMultiChannelRAndBAndNIRVegetationIndex2.tif 
 	          1 
 	          2 
 	          3	
         	  0.6 # Gamma parameter
 	)



# -------            NDVIRAndNIRVegetationIndexImageFilter   ------------------------------
        
ADD_TEST(NDVIRAndNIRVegetationIndexImageFilterTest ${EXE_TESTS}  
  --compare-image ${TOL}   
  	          ${BASELINE}/NDVIRAndNIRVegetationIndex.tif
                  ${TEMP}/NDVIRAndNIRVegetationIndex.tif
       NDVIRAndNIRVegetationIndexImageFilterTest
 	${INPUTDATA}/poupees_sub_c1.png
	${INPUTDATA}/poupees_sub_c2.png
 	${TEMP}/NDVIRAndNIRVegetationIndex.tif
 	${TEMP}/NDVIRAndNIRVegetationIndex2.tif
 	${TEMP}/NDVIRAndNIRVegetationIndex3.tif
	${TEMP}/NDVIRAndNIRVegetationIndex4.tif
 	)

ADD_TEST(AtmosphericCorrectionSequencementTest ${EXE_TESTS}  
        --compare-image ${TOL}  
		${BASELINE}/raTvSurfaceAdjencyEffect6SCorrectionSchemeFilter.tif
                ${TEMP}/Example_RomaniaAtmosphericCorrectionSequencement.tif
        AtmosphericCorrectionSequencementTest
        ${INPUTDATA}/Romania_Extract.tif
	${TEMP}/Example_RomaniaAtmosphericCorrectionSequencement.tif
        ${INPUTDATA}/atmosphericCorrectionSequencement_alpha_beta.txt
        ${INPUTDATA}/atmosphericCorrectionSequencement_solar_illumination.txt
        ${INPUTDATA}/atmosphericCorrectionSequencement_wavelenght_spectral_bands_spot4_1.txt
        
# ImageToLuminance parameters                
# LuminanceToReflectance parameters                
        27.3    #solar azimuthal elevation
	4       #day
	12      #mounth
# AtmosphericCorrectionParametersTo6SAtmosphericRadiativeTerms parameters                
        152.7
	2.5	
        -77.0
        1013.
        2.48134
        0.34400
        1		
        0.199854		
# ReflectanceToSurfaceReflectance parameters                
{'fraction_non_alphanumeric': 0.08386382507611403, 'fraction_numerical': 0.019512870190977027, 'mean_word_length': 3.7421259842519685, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4606091', 'n_tokens_mistral': 2730, 'n_tokens_neox': 2461, 'n_words': 244}