Skip to content
Snippets Groups Projects
Commit c95bd56a authored by Thomas Feuvrier's avatar Thomas Feuvrier
Browse files

Ajout d'un TU pour la lib OTBGui pour classe FltkFilterWatcher.

parent 8ca23efa
No related branches found
No related tags found
No related merge requests found
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)
#Tolerance sur la difference des valeurs numeriques dans le --compare-ascii
SET(EPS 0.001)
SET(GUI_TESTS ${CXX_TEST_PATH}/otbGuiTests)
# ------- otb::System -------------
ADD_TEST(guTuFltkFilterWatcherNew ${GUI_TESTS}
otbFltkFilterWatcherNew
)
# ------- Fichiers sources CXX -----------------------------------
SET(Gui_SRCS
otbFltkFilterWatcherNew.cxx
)
INCLUDE_DIRECTORIES("${OTBTesting_BINARY_DIR}")
# ${TIFF_LIBRARY}
ADD_EXECUTABLE(otbGuiTests otbGuiTests.cxx ${Gui_SRCS})
TARGET_LINK_LIBRARIES(otbGuiTests OTBIO OTBGui OTBVisu OTBCommon gdal ITKIO ITKAlgorithms ITKStatistics ITKCommon)
ENDIF( NOT OTB_DISABLE_CXX_TESTING )
/*=========================================================================
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.
=========================================================================*/
#include "otbFltkFilterWatcher.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImage.h"
int otbFltkFilterWatcherNew(int argc, char * argv[])
{
// const char * filename = argv[1];
typedef otb::Image<char,2> ImageType;
typedef otb::StreamingImageFileWriter<ImageType> WriterType;
WriterType::Pointer writer = WriterType::New();
// writer->SetFileName(filename);
// writer->SetInput(m_ChangeLabelFilter->GetOutput());
otb::FltkFilterWatcher watcher(writer,0,0,200,20,"Saving result image ...");
// writer->Update();
return EXIT_SUCCESS;
}
/*=========================================================================
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 otbGuiTest 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(otbFltkFilterWatcherNew);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment