Skip to content
Snippets Groups Projects
Commit c63cab75 authored by Caroline Ruffel's avatar Caroline Ruffel
Browse files

nomsg

parent cad8c81d
No related branches found
No related tags found
No related merge requests found
...@@ -84,13 +84,28 @@ ADD_TEST(feTvTouziDir ${FEATUREEXTRACTION_TESTS} ...@@ -84,13 +84,28 @@ ADD_TEST(feTvTouziDir ${FEATUREEXTRACTION_TESTS}
ADD_TEST(feTuLineRatioNew ${FEATUREEXTRACTION_TESTS} ADD_TEST(feTuLineRatioNew ${FEATUREEXTRACTION_TESTS}
otbLineRatioDetectorNew) otbLineRatioDetectorNew)
ADD_TEST(feTuLineRatioLinear ${FEATUREEXTRACTION_TESTS}
otbLineRatioDetectorLinear
${INPUTDATA}/poupees_1canal.hd
${TEMP}/feFiltreLineRatioLinear_poupees_2_3.hd
2 3)
ADD_TEST(feTuLineRatio ${FEATUREEXTRACTION_TESTS} ADD_TEST(feTuLineRatio ${FEATUREEXTRACTION_TESTS}
otbLineRatioDetector otbLineRatioDetector
${INPUTDATA}/cthead1.png ${INPUTDATA}/poupees_1canal.hd
${TEMP}/feFiltreLineRatio_cthead1_3_5.hd ${TEMP}/feFiltreLineRatio_poupees_2_3.hd
3 5) 2 3)
ADD_TEST(feTuLineCorrelationNew ${FEATUREEXTRACTION_TESTS}
otbLineCorrelationDetectorNew)
ADD_TEST(feTuLineCorrelationLinear ${FEATUREEXTRACTION_TESTS}
otbLineCorrelationDetectorLinear
${INPUTDATA}/poupees_1canal.hd
${TEMP}/feFiltreLineCorrelationLinear_poupees_2_3.hd
2 3)
#ADD_TEST(tvFEPatrick2 ${FEATUREEXTRACTION_TESTS} #ADD_TEST(tvFEPatrick2 ${FEATUREEXTRACTION_TESTS}
# --compare-image ${TOL} ${BASELINE}/otbExtractROI_cthead1_26_97_209_100.png # --compare-image ${TOL} ${BASELINE}/otbExtractROI_cthead1_26_97_209_100.png
# ${TEMP}/otbExtractROI_cthead1_26_97_209_100.png # ${TEMP}/otbExtractROI_cthead1_26_97_209_100.png
...@@ -114,7 +129,10 @@ otbTouziEdgeDetectorNew.cxx ...@@ -114,7 +129,10 @@ otbTouziEdgeDetectorNew.cxx
otbTouziEdgeDetector.cxx otbTouziEdgeDetector.cxx
otbTouziEdgeDetectorDirection.cxx otbTouziEdgeDetectorDirection.cxx
otbLineRatioDetectorNew.cxx otbLineRatioDetectorNew.cxx
otbLineRatioDetectorLinear.cxx
otbLineRatioDetector.cxx otbLineRatioDetector.cxx
otbLineCorrelationDetectorNew.cxx
otbLineCorrelationDetectorLinear.cxx
) )
......
...@@ -23,4 +23,7 @@ REGISTER_TEST(otbTouziEdgeDetector); ...@@ -23,4 +23,7 @@ REGISTER_TEST(otbTouziEdgeDetector);
REGISTER_TEST(otbTouziEdgeDetectorDirection); REGISTER_TEST(otbTouziEdgeDetectorDirection);
REGISTER_TEST(otbLineRatioDetectorNew); REGISTER_TEST(otbLineRatioDetectorNew);
REGISTER_TEST(otbLineRatioDetector); REGISTER_TEST(otbLineRatioDetector);
REGISTER_TEST(otbLineRatioDetectorLinear);
REGISTER_TEST(otbLineCorrelationDetectorNew);
REGISTER_TEST(otbLineCorrelationDetectorLinear);
} }
/*=========================================================================
Programme : OTB (ORFEO ToolBox)
Auteurs : CS - C.Ruffel
Language : C++
Date : 23 mars 2006
Version :
Role : Test d'instanciation du filtre de detection de lignes par correlation
$Id$
=========================================================================*/
#if defined(_MSC_VER)
#pragma warning ( disable : 4786 )
#endif
#define MAIN
#include "itkExceptionObject.h"
#include "itkImage.h"
#include <iostream>
#include "otbLineCorrelationDetector.h"
int otbLineCorrelationDetectorNew( int argc, char* argv[] )
{
try
{
typedef unsigned char InputPixelType;
typedef double OutputPixelType;
const unsigned int Dimension = 2;
typedef itk::Image< InputPixelType, Dimension > InputImageType;
typedef itk::Image< OutputPixelType, Dimension > OutputImageType;
typedef otb::LineCorrelationDetector< InputImageType, OutputImageType> FilterType;
FilterType::Pointer FilterLineCorr = FilterType::New();
}
catch( itk::ExceptionObject & err )
{
std::cout << "Exception itk::ExceptionObject levee !" << std::endl;
std::cout << err << std::endl;
return EXIT_FAILURE;
}
catch( ... )
{
std::cout << "Exception levee inconnue !" << std::endl;
return EXIT_FAILURE;
}
// Software Guide : EndCodeSnippet
//#endif
return EXIT_SUCCESS;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment