Skip to content
Snippets Groups Projects
Commit 2d5f7e7f authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ADD: add FA test for bug 436

parent 2e1e2ca9
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 "otbWrapperInputImageParameter.h"
#include "otbImage.h"
#include "otbLineSegmentDetector.h"
#include "otbImageFileReader.h"
#include "otbVectorDataFileWriter.h"
#include "otbImageFileWriter.h"
// Code showing a problem calling twice GetImputImageParameter
// http://bugs.orfeo-toolbox.org/view.php?id=436
int main(int argc, char *argv[])
{
if (argc != 3)
{
std::cout << "Usage : <inputImage>" << std::endl;
return EXIT_FAILURE;
}
typedef otb::Wrapper::InputImageParameter InputImageParameterType;
InputImageParameterType::Pointer param = InputImageParameterType::New();
param->SetFromFileName(argv[2]);
if( param->GetImage() != param->GetImage() )
{
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}
......@@ -289,6 +289,12 @@ ADD_TEST(FA-0000433-LineSegmentDetector_8b_16b_compare ${CXX_TEST_PATH}/0000433-
${TEMP}/FA-0000433-LSD_8b.shp
${TEMP}/FA-0000433-LSD_16b.shp)
# ------- FA 0000436 : WrapperInputImage::GetImage -------------------------
ADD_TEST(FA-0000436-WrapperInputImage_GetImage ${CXX_TEST_PATH}/0000436-WrapperInputImage_GetImage
0000436-WrapperInputImage_GetImage
${INPUTDATA}/scene_8.tif
)
# ------- Vectorization issue -----------------------------------
......@@ -347,4 +353,7 @@ TARGET_LINK_LIBRARIES(0000428-CastImageFilterStreaming OTBIO OTBCommon OTBBasicF
ADD_EXECUTABLE(0000433-LineSegmentDetector_8b_16b_compare 0000433-LineSegmentDetector_8b_16b_compare.cxx)
TARGET_LINK_LIBRARIES(0000433-LineSegmentDetector_8b_16b_compare OTBIO OTBFeatureExtraction)
ADD_EXECUTABLE(0000436-WrapperInputImage_GetImage 0000436-WrapperInputImage_GetImage.cxx)
TARGET_LINK_LIBRARIES(0000436-WrapperInputImage_GetImage OTBApplicationEngine)
ENDIF( NOT OTB_DISABLE_CXX_TESTING AND BUILD_TESTING )
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