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

Suppression du filtre (et des tests) LogPolarResampleImageFilter.

parent 5e945535
No related branches found
No related tags found
No related merge requests found
......@@ -43,18 +43,6 @@ ADD_TEST(bfTvFiltreFrost ${BASICFILTERS_TESTS}
${TEMP}/bfFiltreFrost_poupees_05_05_01.png
05 05 0.1)
# ------- otb::LogPolarResampleImageFilter ------------------------------
ADD_TEST(bfTuLogPolarResampleImageFilterNew ${BASICFILTERS_TESTS}
otbLogPolarResampleImageFilterNew )
ADD_TEST(bfTvLogPolarResampleImageFilter ${BASICFILTERS_TESTS}
--compare-image ${TOL} ${BASELINE}/bfLogPolarResampleImageFilter.hdr
${TEMP}/bfLogPolarResampleImageFilter.hdr
otbLogPolarResampleImageFilter
${INPUTDATA}/DeuxCercles.hdr
${TEMP}/bfLogPolarResampleImageFilter.hdr)
# ------- otb::PointSetSource ------------------------------
ADD_TEST(bfTuImageToPointSetFilterTest ${BASICFILTERS_TESTS}
......@@ -155,8 +143,6 @@ otbFrostFilterTest.cxx
otbFrostFilterNew.cxx
otbFrostFilter.cxx
otbImageToPointSetFilterTest.cxx
otbLogPolarResampleImageFilterNew.cxx
otbLogPolarResampleImageFilter.cxx
otbOpeningClosingMorphologicalFilterNew.cxx
otbOpeningClosingMorphologicalFilter.cxx
otbClosingOpeningMorphologicalFilterNew.cxx
......
......@@ -32,8 +32,6 @@ REGISTER_TEST(otbFrostFilterNew);
REGISTER_TEST(otbFrostFilterTest);
REGISTER_TEST(otbFrostFilter);
REGISTER_TEST(otbImageToPointSetFilterTest);
REGISTER_TEST(otbLogPolarResampleImageFilterNew);
REGISTER_TEST(otbLogPolarResampleImageFilter);
REGISTER_TEST(otbOpeningClosingMorphologicalFilterNew);
REGISTER_TEST(otbOpeningClosingMorphologicalFilter);
REGISTER_TEST(otbClosingOpeningMorphologicalFilterNew);
......
/*=========================================================================
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.
=========================================================================*/
#if defined(_MSC_VER)
#pragma warning ( disable : 4786 )
#endif
#define MAIN
#include "otbImage.h"
#include "otbImageFileReader.h"
#include "otbImageFileWriter.h"
#include "otbLogPolarResampleImageFilter.h"
#include "itkLinearInterpolateImageFunction.h"
#include "itkExceptionObject.h"
int otbLogPolarResampleImageFilter(int argc, char* argv[])
{
try
{
const char * inputFilename = argv[1];
const char * outputFilename = argv[2];
typedef double InputPixelType;
typedef double OutputPixelType;
const unsigned int Dimension = 2;
typedef otb::Image< InputPixelType, Dimension > InputImageType;
typedef otb::Image< OutputPixelType, Dimension > OutputImageType;
typedef otb::ImageFileReader< InputImageType > ReaderType;
typedef otb::ImageFileWriter< OutputImageType > WriterType;
typedef itk::LinearInterpolateImageFunction< InputImageType, double > InterpolatorType;
typedef otb::LogPolarResampleImageFilter<InputImageType,InterpolatorType> LogPolarResampleImageType;
LogPolarResampleImageType::Pointer LogPolarImage = LogPolarResampleImageType::New();
ReaderType::Pointer reader = ReaderType::New();
WriterType::Pointer writer = WriterType::New();
reader->SetFileName( inputFilename );
writer->SetFileName( outputFilename );
LogPolarImage->SetInput( reader->GetOutput() );
LogPolarImage->SetOriginIsAtCenter(true);
LogPolarImage->SetAngularNumberOfSamples(512);
LogPolarImage->SetRadialNumberOfSamples(513);
writer->SetInput( LogPolarImage->GetOutput() );
writer->Update();
}
catch( itk::ExceptionObject & err )
{
std::cerr << "itk::Exception detected: " << err.GetDescription();
return EXIT_FAILURE;
}
catch( ... )
{
std::cout << "unknown exception detected !" << std::endl;
return EXIT_FAILURE;
}
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.
=========================================================================*/
#if defined(_MSC_VER)
#pragma warning ( disable : 4786 )
#endif
#define MAIN
#include "otbImage.h"
#include "otbLogPolarResampleImageFilter.h"
#include "itkLinearInterpolateImageFunction.h"
int otbLogPolarResampleImageFilterNew(int argc, char* argv[])
{
typedef double PixelType;
const unsigned int Dimension = 2;
typedef otb::Image< PixelType, Dimension > InputImageType;
typedef otb::Image< PixelType, Dimension > OutputImageType;
typedef itk::LinearInterpolateImageFunction< InputImageType, double > InterpolatorType;
typedef otb::LogPolarResampleImageFilter<InputImageType,InterpolatorType> LogPolarResampleImageType;
try
{
LogPolarResampleImageType::Pointer LogPolarImage = LogPolarResampleImageType::New();
}
catch( itk::ExceptionObject & err )
{
std::cerr << "itk::Exception detected: " << err.GetDescription();
return EXIT_FAILURE;
}
catch( ... )
{
std::cout << "unknown exception detected !" << std::endl;
return EXIT_FAILURE;
}
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