Skip to content
Snippets Groups Projects
Commit ba796f2a authored by Julien Michel's avatar Julien Michel
Browse files

TEST: Adding a new StandardImageViewer test

parent c2707d4e
No related branches found
No related tags found
No related merge requests found
......@@ -286,6 +286,16 @@ otbStandardImageViewer
${INPUTDATA}/couleurs.tif 0
)
IF(OTB_DATA_USE_LARGEINPUT)
ADD_TEST(vrTvStandardImageViewerToulouseWithWaterwaysShp ${VISUREFAC_TESTS1}
otbStandardImageViewer
${IMAGEDATA}/TOULOUSE/QuickBird/000000128955_01_P001_MUL/02APR01105228-M1BS-000000128955_01_P001.TIF
0
${INPUTDATA}/waterways.shp
${INPUTDATA}/DEM/srtm_directory
)
ENDIF(OTB_DATA_USE_LARGEINPUT)
# Testing srcs
SET(Visualization_SRCS1
otbImageWidgetNew.cxx
......
......@@ -20,6 +20,7 @@ PURPOSE. See the above copyright notices for more information.
#include "otbImageFileReader.h"
#include "otbVectorData.h"
#include "otbVectorDataFileReader.h"
#include "itkTimeProbe.h"
int otbStandardImageViewer( int argc, char * argv[] )
{
......@@ -42,9 +43,12 @@ int otbStandardImageViewer( int argc, char * argv[] )
if(argc>3)
{
std::cout<<"Adding a vector layer from file "<<argv[3]<<std::endl;
itk::TimeProbe chrono;
chrono.Start();
vdreader->SetFileName(argv[3]);
vdreader->Update();
std::cout<<"VectorData loaded."<<std::endl;
chrono.Stop();
std::cout<<"VectorData loaded in "<<chrono.GetMeanTime()<<" s."<<std::endl;
viewer->SetVectorData(vdreader->GetOutput());
}
......
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