Skip to content
Snippets Groups Projects
Commit 706bead7 authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

TEST:test link with libjpg in libotbVisu

parent 4e948581
No related branches found
No related tags found
No related merge requests found
/*=========================================================================
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 "otbVectorImage.h"
#include "otbImageFileReader.h"
//Code adapted from submission from Jordi INGLADA
// http://bugs.orfeo-toolbox.org/view.php?id=132
int main( int argc, char *argv[] )
{
if (argc < 1)
{
std::cout << "Usage : inputImage" << std::endl ;
return EXIT_FAILURE;
}
char * filename = argv[1];
typedef double PixelType;
typedef otb::VectorImage< PixelType > ImageType;
typedef otb::ImageFileReader<ImageType> ReaderType;
// check for input images
ReaderType::Pointer reader = ReaderType::New();
reader->SetFileName(inputFilename);
reader->UpdateOutputInformation();
std::cout << reader << std::endl;
return EXIT_SUCCESS;
}
......@@ -215,6 +215,8 @@ ADD_TEST(FA-0000041-mean_shift2 ${CXX_TEST_PATH}/0000041-mean_shift
${TEMP}/boundary_of_labelled_image2.tif
)
ADD_TEST(FA-0000132-jpg ${INPUTDATA}/toulouse_auat.jpg
)
# ------- Vectorization issue -----------------------------------
# FIXME Desactivated until http://bugs.orfeo-toolbox.org/view.php?id=94
# has somebody working on it
......@@ -236,6 +238,9 @@ TARGET_LINK_LIBRARIES(StreamingStat OTBFeatureExtraction OTBIO OTBCommon)
ADD_EXECUTABLE(0000041-mean_shift 0000041-mean_shift.cxx)
TARGET_LINK_LIBRARIES(0000041-mean_shift OTBIO OTBCommon OTBBasicFilters)
ADD_EXECUTABLE(0000132-jpg 0000132-jpg.cxx )
TARGET_LINK_LIBRARIES(0000132-jpg OTBIO OTBVisu)
ADD_EXECUTABLE(PolygonsVectorization PolygonsVectorization.cxx)
TARGET_LINK_LIBRARIES(PolygonsVectorization OTBIO OTBCommon)
......
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