diff --git a/Documentation/Cookbook/rst/recipes/bandmathx.rst b/Documentation/Cookbook/rst/recipes/bandmathx.rst index dbe74dc2dfc97ea9850819ded4aab3ff1dfcb4d8..d1036da139043bc626b953df22b2983c6a895c08 100644 --- a/Documentation/Cookbook/rst/recipes/bandmathx.rst +++ b/Documentation/Cookbook/rst/recipes/bandmathx.rst @@ -16,16 +16,6 @@ A simple example is given below: #include "otbBandMathImageFilterX.h" #include "otbVectorImage.h" - int otbBandMathImageFilterXNew( int itkNotUsed(argc), char* itkNotUsed(argv) []) - { - typedef double PixelType; - typedef otb::VectorImage<PixelType, 2> ImageType; - typedef otb::BandMathImageFilterX<ImageType> FilterType; - - FilterType::Pointer filter = FilterType::New(); - - return EXIT_SUCCESS; - } As we can see, the new band math filter works with the class otb::VectorImage. diff --git a/Modules/Core/Common/test/otbImageRegionAdaptativeSplitter.cxx b/Modules/Core/Common/test/otbImageRegionAdaptativeSplitter.cxx index 4cbb881ffe66d7a62007cd1525e5829a3651ffff..20f13f5ddd95f7fd8b04a49fd0d132fecceff1a9 100644 --- a/Modules/Core/Common/test/otbImageRegionAdaptativeSplitter.cxx +++ b/Modules/Core/Common/test/otbImageRegionAdaptativeSplitter.cxx @@ -27,14 +27,6 @@ typedef SplitterType::RegionType RegionType; typedef RegionType::SizeType SizeType; typedef RegionType::IndexType IndexType; -int otbImageRegionAdaptativeSplitterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - SplitterType::Pointer splitter = SplitterType::New(); - - std::cout<<splitter<<std::endl; - - return EXIT_SUCCESS; -} int otbImageRegionAdaptativeSplitter(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Core/Common/test/otbImageRegionSquareTileSplitter.cxx b/Modules/Core/Common/test/otbImageRegionSquareTileSplitter.cxx index 938364d04eef890ae6780be8fc37cbd225942891..9e02b3ccc33d147f0d166f7a0dac9e5109ef017a 100644 --- a/Modules/Core/Common/test/otbImageRegionSquareTileSplitter.cxx +++ b/Modules/Core/Common/test/otbImageRegionSquareTileSplitter.cxx @@ -28,14 +28,6 @@ typedef SquareTileSplitterType::SizeType SizeType; typedef SquareTileSplitterType::RegionType RegionType; -int otbImageRegionSquareTileSplitterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - SquareTileSplitterType::Pointer splitter = SquareTileSplitterType::New(); - - std::cout << splitter << std::endl; - - return EXIT_SUCCESS; -} int TestSplitter(const RegionType& region, unsigned int PixelSize, unsigned int MaxTileSize, std::ostream& os) { diff --git a/Modules/Core/Common/test/otbRGBAPixelConverter.cxx b/Modules/Core/Common/test/otbRGBAPixelConverter.cxx index 83e148a164441ac3f8147d90b99d9abf2f5de0be..2acd9766e5047f903c7021721ed3f8c8e78b19c9 100644 --- a/Modules/Core/Common/test/otbRGBAPixelConverter.cxx +++ b/Modules/Core/Common/test/otbRGBAPixelConverter.cxx @@ -24,31 +24,6 @@ #include "otbRGBAPixelConverter.h" -int otbRGBAPixelConverterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef unsigned char PixelType0; - typedef double PixelType1; - typedef itk::RGBAPixel<unsigned char> PixelType2; - typedef itk::RGBPixel<double> PixelType3; - - typedef otb::RGBAPixelConverter<PixelType0, PixelType0> ConverterType0; - typedef otb::RGBAPixelConverter<PixelType1, PixelType1> ConverterType1; - typedef otb::RGBAPixelConverter<PixelType0, PixelType2> ConverterType2; - typedef otb::RGBAPixelConverter<PixelType0, PixelType3> ConverterType3; - - // Instantiating object - ConverterType0::Pointer converter0 = ConverterType0::New(); - ConverterType1::Pointer converter1 = ConverterType1::New(); - ConverterType2::Pointer converter2 = ConverterType2::New(); - ConverterType3::Pointer converter3 = ConverterType3::New(); - - std::cout << converter0 << std::endl; - std::cout << converter1 << std::endl; - std::cout << converter2 << std::endl; - std::cout << converter3 << std::endl; - - return EXIT_SUCCESS; -} int otbRGBAPixelConverter(int itkNotUsed(argc), char * itkNotUsed(argv) []) { diff --git a/Modules/Core/Common/test/otbStandardFilterWatcherNew.cxx b/Modules/Core/Common/test/otbStandardFilterWatcherNew.cxx index 855e28466b7cb2e474b095e3133665beb2055a1d..5cf0bb132793b7c22c64e95d18fab58ddf29adcf 100644 --- a/Modules/Core/Common/test/otbStandardFilterWatcherNew.cxx +++ b/Modules/Core/Common/test/otbStandardFilterWatcherNew.cxx @@ -25,34 +25,6 @@ #include "otbStandardFilterWatcher.h" #include "itkGradientMagnitudeImageFilter.h" -int otbStandardFilterWatcherNew(int itkNotUsed(argc), char * argv[]) -{ - const unsigned int Dimension = 2; - typedef unsigned char PixelType; - typedef otb::Image<PixelType, Dimension> ImageType; - - typedef otb::ImageFileReader<ImageType> ReaderType; - ReaderType::Pointer reader = ReaderType::New(); - reader->SetFileName(argv[1]); - - typedef itk::GradientMagnitudeImageFilter<ImageType, ImageType> FilterType; - FilterType::Pointer gradient = FilterType::New(); - - typedef otb::StandardFilterWatcher WatcherType; - WatcherType watcher1(gradient, "Gradient"); - - gradient->SetInput(reader->GetOutput()); - gradient->Update(); - - // Test copy constructor. - WatcherType watcher2( watcher1 ); - if ( watcher1.GetNameOfClass() != watcher2.GetNameOfClass() - || watcher1.GetProcess() != watcher2.GetProcess() - || watcher1.GetComment() != watcher2.GetComment() ) - { - std::cout << "Copy constructor failed." << std::endl; - return EXIT_FAILURE; - } // Test default constructor. WatcherType watcher3; diff --git a/Modules/Core/Common/test/otbVariableLengthVectorConverter.cxx b/Modules/Core/Common/test/otbVariableLengthVectorConverter.cxx index ebfbd62cafa5112bd9b1fe177c2007993b813b3c..4b35734a9a2d03835f9128b836f1f2be36437eea 100644 --- a/Modules/Core/Common/test/otbVariableLengthVectorConverter.cxx +++ b/Modules/Core/Common/test/otbVariableLengthVectorConverter.cxx @@ -23,34 +23,3 @@ #include "otbVariableLengthVectorConverter.h" -int otbVariableLengthVectorConverterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef itk::VariableLengthVector<double> InputType0; - typedef std::vector< std::vector< double > > InputType1; - typedef std::vector< std::vector< std::complex< double > > > InputType2; - typedef itk::FixedArray<double> InputType3; - - typedef float PrecisionType; - - typedef otb::VariableLengthVectorConverter<InputType0, PrecisionType> - ConverterType0; - typedef otb::VariableLengthVectorConverter<InputType1, PrecisionType> - ConverterType1; - typedef otb::VariableLengthVectorConverter<InputType2, PrecisionType> - ConverterType2; - typedef otb::VariableLengthVectorConverter<InputType3, PrecisionType> - ConverterType3; - - // Instantiating object - ConverterType0::Pointer converter0 = ConverterType0::New(); - ConverterType1::Pointer converter1 = ConverterType1::New(); - ConverterType2::Pointer converter2 = ConverterType2::New(); - ConverterType3::Pointer converter3 = ConverterType3::New(); - - std::cout << converter0 << std::endl; - std::cout << converter1 << std::endl; - std::cout << converter2 << std::endl; - std::cout << converter3 << std::endl; - - return EXIT_SUCCESS; -} diff --git a/Modules/Core/ImageBase/test/otbComplexToVectorImageCastFilter.cxx b/Modules/Core/ImageBase/test/otbComplexToVectorImageCastFilter.cxx index 20ed6d37a4418c5b265ab04729c6edb4e1572ed3..8d1db89e3f8549ed806e3653379215372d8047ca 100644 --- a/Modules/Core/ImageBase/test/otbComplexToVectorImageCastFilter.cxx +++ b/Modules/Core/ImageBase/test/otbComplexToVectorImageCastFilter.cxx @@ -27,20 +27,6 @@ #include "otbImageFileWriter.h" -int otbComplexToVectorImageCastFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef std::complex<float> ComplexType; - typedef otb::VectorImage<ComplexType, 2> CplxImageType; - typedef otb::VectorImage<float, 2> VectorImageType; - - typedef otb::ComplexToVectorImageCastFilter<CplxImageType, VectorImageType> FilterType; - - // Instantiating object - FilterType::Pointer caster = FilterType::New(); - - - return EXIT_SUCCESS; -} int otbComplexToVectorImageCastFilterTest(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Core/ImageBase/test/otbImageFunctionAdaptor.cxx b/Modules/Core/ImageBase/test/otbImageFunctionAdaptor.cxx index a24f75cc92e6942f240e8a17f72315efb129f2fb..26800415060d2d41d0a737d9b61d5de2f051c39b 100644 --- a/Modules/Core/ImageBase/test/otbImageFunctionAdaptor.cxx +++ b/Modules/Core/ImageBase/test/otbImageFunctionAdaptor.cxx @@ -35,48 +35,6 @@ #include "otbLocalHistogramImageFunction.h" -int otbImageFunctionAdaptorNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef double InputPixelType; - typedef double PrecisionType; - const unsigned int Dimension = 2; - - typedef otb::Image<InputPixelType, Dimension> InputImageType; - - typedef otb::FourierMellinDescriptorsImageFunction<InputImageType> FMDFunctionType; - typedef otb::RealMomentsImageFunction<InputImageType> RMFunctionType; - typedef otb::ComplexMomentsImageFunction<InputImageType> CMFunctionType; - typedef otb::FlusserMomentsImageFunction<InputImageType> FMFunctionType; - typedef otb::HuMomentsImageFunction<InputImageType> HMFunctionType; - typedef otb::RadiometricMomentsImageFunction<InputImageType> RaMFunctionType; - typedef otb::LocalHistogramImageFunction<InputImageType> LHFunctionType; - - typedef otb::ImageFunctionAdaptor<FMDFunctionType, PrecisionType> FMDImageFunctionAdaptorType; - typedef otb::ImageFunctionAdaptor<RMFunctionType, PrecisionType> RMImageFunctionAdaptorType; - typedef otb::ImageFunctionAdaptor<CMFunctionType, PrecisionType> CMImageFunctionAdaptorType; - typedef otb::ImageFunctionAdaptor<FMFunctionType, PrecisionType> FMImageFunctionAdaptorType; - typedef otb::ImageFunctionAdaptor<HMFunctionType, PrecisionType> HMImageFunctionAdaptorType; - typedef otb::ImageFunctionAdaptor<RaMFunctionType, PrecisionType> RaMImageFunctionAdaptorType; - typedef otb::ImageFunctionAdaptor<LHFunctionType, PrecisionType> LHImageFunctionAdaptorType; - - // Instantiating objects - FMDImageFunctionAdaptorType::Pointer FMDadaptedFunction = FMDImageFunctionAdaptorType::New(); - std::cout << FMDadaptedFunction << std::endl; - RMImageFunctionAdaptorType::Pointer RMadaptedFunction = RMImageFunctionAdaptorType::New(); - std::cout << RMadaptedFunction << std::endl; - CMImageFunctionAdaptorType::Pointer CMadaptedFunction = CMImageFunctionAdaptorType::New(); - std::cout << CMadaptedFunction << std::endl; - FMImageFunctionAdaptorType::Pointer FMadaptedFunction = FMImageFunctionAdaptorType::New(); - std::cout << FMadaptedFunction << std::endl; - HMImageFunctionAdaptorType::Pointer HMadaptedFunction = HMImageFunctionAdaptorType::New(); - std::cout << HMadaptedFunction << std::endl; - RaMImageFunctionAdaptorType::Pointer RaMadaptedFunction = RaMImageFunctionAdaptorType::New(); - std::cout << RaMadaptedFunction << std::endl; - LHImageFunctionAdaptorType::Pointer LHadaptedFunction = LHImageFunctionAdaptorType::New(); - std::cout << LHadaptedFunction << std::endl; - - return EXIT_SUCCESS; -} int otbImageFunctionAdaptor(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Core/ImageBase/test/otbMetaImageFunction.cxx b/Modules/Core/ImageBase/test/otbMetaImageFunction.cxx index aeaebea9376481504ee6528a2fc2eed5c198f1b5..442fddb88c21079af9f0a502db288725ef8d15ff 100644 --- a/Modules/Core/ImageBase/test/otbMetaImageFunction.cxx +++ b/Modules/Core/ImageBase/test/otbMetaImageFunction.cxx @@ -39,12 +39,6 @@ typedef otb::MetaImageFunction<PrecisionType, double> MetaImageF typedef MetaImageFunctionType::PointType PointType; typedef MetaImageFunctionType::OutputType OutputType; -int otbMetaImageFunctionNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - MetaImageFunctionType::Pointer function = MetaImageFunctionType::New(); - - return EXIT_SUCCESS; -} int otbMetaImageFunction(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Core/Interpolation/test/otbBCOInterpolateImageFunction.cxx b/Modules/Core/Interpolation/test/otbBCOInterpolateImageFunction.cxx index a99e8d8931781a236372522124463eddc773bd24..7cf139fef510195c8b2174d720892506bc9fd37c 100644 --- a/Modules/Core/Interpolation/test/otbBCOInterpolateImageFunction.cxx +++ b/Modules/Core/Interpolation/test/otbBCOInterpolateImageFunction.cxx @@ -27,18 +27,6 @@ #include "otbStreamingResampleImageFilter.h" -int otbBCOInterpolateImageFunctionNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef otb::Image<double, 2> ImageType; - typedef otb::BCOInterpolateImageFunction<ImageType, double> InterpolatorType; - - // Instantiating object - InterpolatorType::Pointer interp = InterpolatorType::New(); - - std::cout << interp << std::endl; - - return EXIT_SUCCESS; -} int otbBCOInterpolateImageFunction(int argc, char * argv[]) { @@ -183,16 +171,6 @@ int otbBCOInterpolateImageFunction2(int argc, char * argv[]) -int otbBCOInterpolateImageFunctionOverVectorImageNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef otb::VectorImage<double, 2> ImageType; - typedef otb::BCOInterpolateImageFunction<ImageType, double> InterpolatorType; - - // Instantiating object - InterpolatorType::Pointer filter = InterpolatorType::New(); - - return EXIT_SUCCESS; -} int otbBCOInterpolateImageFunctionOverVectorImage(int argc, char * argv[]) diff --git a/Modules/Core/LabelMap/test/otbBandsStatisticsAttributesLabelMapFilter.cxx b/Modules/Core/LabelMap/test/otbBandsStatisticsAttributesLabelMapFilter.cxx index 08d63c20c8490312957ebf19776cce20ebc39c6d..a04335d90b2e3f990c5ae73ad9eda980ce09f767 100644 --- a/Modules/Core/LabelMap/test/otbBandsStatisticsAttributesLabelMapFilter.cxx +++ b/Modules/Core/LabelMap/test/otbBandsStatisticsAttributesLabelMapFilter.cxx @@ -48,11 +48,6 @@ typedef itk::LabelImageToLabelMapFilter<LabeledImageType, LabelMapType> typedef otb::BandsStatisticsAttributesLabelMapFilter<LabelMapType, VectorImageType> BandsStatisticsFilterType; -int otbBandsStatisticsAttributesLabelMapFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - BandsStatisticsFilterType::Pointer object = BandsStatisticsFilterType::New(); - return EXIT_SUCCESS; -} int otbBandsStatisticsAttributesLabelMapFilter(int itkNotUsed(argc), char* argv[]) { diff --git a/Modules/Core/LabelMap/test/otbKMeansAttributesLabelMapFilter.cxx b/Modules/Core/LabelMap/test/otbKMeansAttributesLabelMapFilter.cxx index c6e0f2ccbe50118da5404b1566424ae907ad3b38..e3dca5e9aa69f225296987462495c6856713ab66 100644 --- a/Modules/Core/LabelMap/test/otbKMeansAttributesLabelMapFilter.cxx +++ b/Modules/Core/LabelMap/test/otbKMeansAttributesLabelMapFilter.cxx @@ -47,11 +47,6 @@ typedef itk::LabelImageToLabelMapFilter<LabeledImageType, LabelMapType> typedef otb::ShapeAttributesLabelMapFilter<LabelMapType> ShapeFilterType; typedef otb::KMeansAttributesLabelMapFilter<LabelMapType> KMeansAttributesLabelMapFilterType; -int otbKMeansAttributesLabelMapFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - KMeansAttributesLabelMapFilterType::Pointer radiometricLabelMapFilter = KMeansAttributesLabelMapFilterType::New(); - return EXIT_SUCCESS; -} int otbKMeansAttributesLabelMapFilter(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Core/LabelMap/test/otbLabelImageToLabelMapWithAdjacencyFilter.cxx b/Modules/Core/LabelMap/test/otbLabelImageToLabelMapWithAdjacencyFilter.cxx index 4d7c467de78b30e136e91b2ab8a3b1d2b67bda87..fe259ba3a55ec9d6de3e1d230728619542c00817 100644 --- a/Modules/Core/LabelMap/test/otbLabelImageToLabelMapWithAdjacencyFilter.cxx +++ b/Modules/Core/LabelMap/test/otbLabelImageToLabelMapWithAdjacencyFilter.cxx @@ -37,13 +37,6 @@ typedef otb::LabelImageToLabelMapWithAdjacencyFilter < LabelImageType, LabelMapType> FilterType; -int otbLabelImageToLabelMapWithAdjacencyFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - // Instantiation - FilterType::Pointer filter = FilterType::New(); - - return EXIT_SUCCESS; -} int otbLabelImageToLabelMapWithAdjacencyFilter(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Core/LabelMap/test/otbMinMaxAttributesLabelMapFilter.cxx b/Modules/Core/LabelMap/test/otbMinMaxAttributesLabelMapFilter.cxx index 51af227ee8fcdbe3a0a4171c96e6d612dec578e5..2f60b168258165c093463ba00743c4928a67c9ab 100644 --- a/Modules/Core/LabelMap/test/otbMinMaxAttributesLabelMapFilter.cxx +++ b/Modules/Core/LabelMap/test/otbMinMaxAttributesLabelMapFilter.cxx @@ -45,11 +45,6 @@ typedef otb::LabelImageToLabelMapWithAdjacencyFilter<LabeledImageType, LabelMapT typedef otb::ShapeAttributesLabelMapFilter<LabelMapType> ShapeFilterType; typedef otb::MinMaxAttributesLabelMapFilter<LabelMapType> MinMaxAttributesLabelMapFilterType; -int otbMinMaxAttributesLabelMapFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - MinMaxAttributesLabelMapFilterType::Pointer radiometricLabelMapFilter = MinMaxAttributesLabelMapFilterType::New(); - return EXIT_SUCCESS; -} int otbMinMaxAttributesLabelMapFilter(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Core/LabelMap/test/otbNormalizeAttributesLabelMapFilter.cxx b/Modules/Core/LabelMap/test/otbNormalizeAttributesLabelMapFilter.cxx index fd325c980f50ad4cf672c5a984e171fc90ce6782..bd2ac5e7b09ebd2545e84553d7d52861fd02c666 100644 --- a/Modules/Core/LabelMap/test/otbNormalizeAttributesLabelMapFilter.cxx +++ b/Modules/Core/LabelMap/test/otbNormalizeAttributesLabelMapFilter.cxx @@ -47,11 +47,6 @@ typedef otb::ShapeAttributesLabelMapFilter<LabelMapType> typedef otb::MinMaxAttributesLabelMapFilter<LabelMapType> MinMaxAttributesLabelMapFilterType; typedef otb::NormalizeAttributesLabelMapFilter<LabelMapType> NormalizeAttributesLabelMapFilterType; -int otbNormalizeAttributesLabelMapFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - NormalizeAttributesLabelMapFilterType::Pointer normalizeLabelMapFilter = NormalizeAttributesLabelMapFilterType::New(); - return EXIT_SUCCESS; -} int otbNormalizeAttributesLabelMapFilter(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Core/Streaming/test/otbPipelineMemoryPrintCalculatorTest.cxx b/Modules/Core/Streaming/test/otbPipelineMemoryPrintCalculatorTest.cxx index b63893843ff8e15c00865b224abde9b612ec4a43..21ce77e04f5fc1089ec1e3fa2211b2be1f13000d 100644 --- a/Modules/Core/Streaming/test/otbPipelineMemoryPrintCalculatorTest.cxx +++ b/Modules/Core/Streaming/test/otbPipelineMemoryPrintCalculatorTest.cxx @@ -25,12 +25,6 @@ #include "otbImageFileReader.h" #include "otbVectorImageToIntensityImageFilter.h" -int otbPipelineMemoryPrintCalculatorNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - otb::PipelineMemoryPrintCalculator::Pointer calculator = otb::PipelineMemoryPrintCalculator::New(); - - return EXIT_SUCCESS; -} int otbPipelineMemoryPrintCalculatorTest(int itkNotUsed(argc), char * argv[]) diff --git a/Modules/Core/Streaming/test/otbStreamingManager.cxx b/Modules/Core/Streaming/test/otbStreamingManager.cxx index b128f7fb13c5da7cf6df0a892e28b7ed00374662..3bb2259bfd5e437f377db92f9a52b18c78217319 100644 --- a/Modules/Core/Streaming/test/otbStreamingManager.cxx +++ b/Modules/Core/Streaming/test/otbStreamingManager.cxx @@ -52,25 +52,6 @@ ImageType::Pointer makeImage(ImageType::RegionType region) return image; } -int otbStreamingManagerNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - NbLinesStrippedStreamingManagerType::Pointer streamingManager1 = NbLinesStrippedStreamingManagerType::New(); - std::cout << streamingManager1 << std::endl; - - RAMDrivenStrippedStreamingManagerType::Pointer streamingManager2 = RAMDrivenStrippedStreamingManagerType::New(); - std::cout << streamingManager2 << std::endl; - - TileDimensionTiledStreamingManagerType::Pointer streamingManager3 = TileDimensionTiledStreamingManagerType::New(); - std::cout << streamingManager3 << std::endl; - - RAMDrivenTiledStreamingManagerType::Pointer streamingManager4 = RAMDrivenTiledStreamingManagerType::New(); - std::cout << streamingManager4 << std::endl; - - RAMDrivenAdaptativeStreamingManagerType::Pointer streamingManager5 = RAMDrivenAdaptativeStreamingManagerType::New(); - std::cout<<streamingManager5<<std::endl; - - return EXIT_SUCCESS; -} int otbNumberOfLinesStrippedStreamingManager(int itkNotUsed(argc), char * argv[]) diff --git a/Modules/Core/VectorDataBase/test/otbVectorDataKeywordlistTest.cxx b/Modules/Core/VectorDataBase/test/otbVectorDataKeywordlistTest.cxx index 1f3caf484ef3d5e743d3259e2150de32cff1847c..6c4861bb27edbce22be4fa6b6184a3750df9b375 100644 --- a/Modules/Core/VectorDataBase/test/otbVectorDataKeywordlistTest.cxx +++ b/Modules/Core/VectorDataBase/test/otbVectorDataKeywordlistTest.cxx @@ -26,12 +26,6 @@ #include "otbVectorDataFileReader.h" #include "otbMetaDataKey.h" -int otbVectorDataKeywordlistNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - otb::VectorDataKeywordlist kwl; - std::cout << kwl << std::endl; - return EXIT_SUCCESS; -} int otbVectorDataKeywordlist(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Detection/ObjectDetection/test/otbDescriptorsListSampleGenerator.cxx b/Modules/Detection/ObjectDetection/test/otbDescriptorsListSampleGenerator.cxx index 2996c1ef79cc5866379db747dd7b2e030ff23e0a..e11050f4acef044c6e0390b92348631d6800781c 100644 --- a/Modules/Detection/ObjectDetection/test/otbDescriptorsListSampleGenerator.cxx +++ b/Modules/Detection/ObjectDetection/test/otbDescriptorsListSampleGenerator.cxx @@ -100,15 +100,6 @@ std::ostream &operator<<(std::ostream &stream, SampleEntry entry) return stream; } -int otbDescriptorsListSampleGeneratorNew(int itkNotUsed(argc), char* itkNotUsed(argv)[]) -{ - // instantiation - DescriptorsListSampleGeneratorType::Pointer generator = DescriptorsListSampleGeneratorType::New(); - - std::cout << generator << std::endl; - - return EXIT_SUCCESS; -} int otbDescriptorsListSampleGenerator(int argc, char* argv[]) { diff --git a/Modules/Detection/ObjectDetection/test/otbLabeledSampleLocalizationGenerator.cxx b/Modules/Detection/ObjectDetection/test/otbLabeledSampleLocalizationGenerator.cxx index 39165615ed77eaf2ab3a1c2d7b0b8aa6e6722033..25e2124c1e1000904b9cdec5b9a565cd26d8e827 100644 --- a/Modules/Detection/ObjectDetection/test/otbLabeledSampleLocalizationGenerator.cxx +++ b/Modules/Detection/ObjectDetection/test/otbLabeledSampleLocalizationGenerator.cxx @@ -24,18 +24,6 @@ #include "otbVectorDataFileWriter.h" #include "otbLabeledSampleLocalizationGenerator.h" -int otbLabeledSampleLocalizationGeneratorNew(int itkNotUsed(argc), char* itkNotUsed(argv)[]) -{ - typedef otb::VectorData<> VectorDataType; - typedef otb::LabeledSampleLocalizationGenerator<VectorDataType> GeneratorType; - - // instantiation - GeneratorType::Pointer generator = GeneratorType::New(); - - std::cout << generator << std::endl; - - return EXIT_SUCCESS; -} int otbLabeledSampleLocalizationGenerator(int itkNotUsed(argc), char* argv[]) { diff --git a/Modules/Detection/ObjectDetection/test/otbObjectDetectionClassifier.cxx b/Modules/Detection/ObjectDetection/test/otbObjectDetectionClassifier.cxx index 8d12d62a618130ad4524ad274a74d5c197259d8f..d196b5324940563be99c3cda4eb7b86135b5e531 100644 --- a/Modules/Detection/ObjectDetection/test/otbObjectDetectionClassifier.cxx +++ b/Modules/Detection/ObjectDetection/test/otbObjectDetectionClassifier.cxx @@ -88,12 +88,6 @@ std::ostream &operator<<(std::ostream &stream, PointType p) return stream; } -int otbObjectDetectionClassifierNew(int itkNotUsed(argc), char* itkNotUsed(argv)[]) -{ - ObjectDetectionClassifierType::Pointer object = ObjectDetectionClassifierType::New(); - std::cout << object << std::endl; - return EXIT_SUCCESS; -} int otbObjectDetectionClassifier(int argc, char* argv[]) diff --git a/Modules/Detection/ObjectDetection/test/otbStandardMetaImageFunctionBuilder.cxx b/Modules/Detection/ObjectDetection/test/otbStandardMetaImageFunctionBuilder.cxx index d27b3b46e82a5b8687400498c4ac6aa8712e253d..8ee002920134a22f2b5cf112d33985d75d4cbc59 100644 --- a/Modules/Detection/ObjectDetection/test/otbStandardMetaImageFunctionBuilder.cxx +++ b/Modules/Detection/ObjectDetection/test/otbStandardMetaImageFunctionBuilder.cxx @@ -32,18 +32,6 @@ #include "otbHaralickTexturesImageFunction.h" -int otbStandardMetaImageFunctionBuilderNew(int itkNotUsed(argc), char* itkNotUsed(argv)[]) -{ - typedef double PrecisionType; - typedef otb::StandardMetaImageFunctionBuilder<PrecisionType> BuilderType; - - // instantiation - BuilderType::Pointer builder = BuilderType::New(); - - std::cout << builder << std::endl; - - return EXIT_SUCCESS; -} int otbStandardMetaImageFunctionBuilder(int itkNotUsed(argc), char* argv[]) { diff --git a/Modules/Detection/RoadExtraction/test/otbVectorDataToRoadDescriptionFilter.cxx b/Modules/Detection/RoadExtraction/test/otbVectorDataToRoadDescriptionFilter.cxx index b670b926073c895f4192991f124c28831c07771e..11648b341a56430fe2ffd3b2c54e77b3ee4eea58 100644 --- a/Modules/Detection/RoadExtraction/test/otbVectorDataToRoadDescriptionFilter.cxx +++ b/Modules/Detection/RoadExtraction/test/otbVectorDataToRoadDescriptionFilter.cxx @@ -33,22 +33,6 @@ -int otbVectorDataToRoadDescriptionFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef double PrecisionType; - typedef otb::VectorData<PrecisionType> VectorDataType; - typedef otb::VectorImage<PrecisionType> ImageType; - - typedef otb::VectorDataToRoadDescriptionFilter<VectorDataType, ImageType> - VectorDataToRoadDescriptionFilterType; - - VectorDataToRoadDescriptionFilterType::Pointer filter = - VectorDataToRoadDescriptionFilterType::New(); - - std::cout<<filter<<std::endl; - - return EXIT_SUCCESS; -} int otbVectorDataToRoadDescriptionFilter(int itkNotUsed(argc), char* argv[]) { diff --git a/Modules/Feature/Corner/test/otbVectorDataToRightAngleVectorDataFilter.cxx b/Modules/Feature/Corner/test/otbVectorDataToRightAngleVectorDataFilter.cxx index f66f1dff140adbd0111d52b738f68edd49fe03db..6a91b54b26de032670278071ae6d2b802d4cf905 100644 --- a/Modules/Feature/Corner/test/otbVectorDataToRightAngleVectorDataFilter.cxx +++ b/Modules/Feature/Corner/test/otbVectorDataToRightAngleVectorDataFilter.cxx @@ -29,19 +29,6 @@ #include "otbImageFileWriter.h" -int otbVectorDataToRightAngleVectorDataFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - /** Typedefs */ - typedef otb::VectorData< > VectorDataType; - typedef otb::VectorDataToRightAngleVectorDataFilter<VectorDataType> - RightAngleFilterType; - - RightAngleFilterType::Pointer filter = RightAngleFilterType::New(); - - std::cout << filter << std::endl; - - return EXIT_SUCCESS; -} int otbVectorDataToRightAngleVectorDataFilter(int itkNotUsed(argc), char * argv[]) diff --git a/Modules/Feature/Descriptors/test/otbFourierMellinDescriptors.cxx b/Modules/Feature/Descriptors/test/otbFourierMellinDescriptors.cxx index 5bfe656e020e182b35e4a71e3411f02599198934..42e0785daf023834f7e3d588bdafc1c28dde60ca 100644 --- a/Modules/Feature/Descriptors/test/otbFourierMellinDescriptors.cxx +++ b/Modules/Feature/Descriptors/test/otbFourierMellinDescriptors.cxx @@ -31,21 +31,6 @@ #include "itkAffineTransform.h" -int otbFourierMellinDescriptorsNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - const unsigned int Dimension = 2; - typedef double InputPixelType; - - typedef otb::Image<InputPixelType, Dimension> ImageType; - typedef otb::FourierMellinDescriptorsImageFunction<ImageType> FunctionType; - - // Instantiating object - FunctionType::Pointer function = FunctionType::New(); - - std::cout << function << std::endl; - - return EXIT_SUCCESS; -} int otbFourierMellinDescriptors(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Feature/Descriptors/test/otbHistogramOfOrientedGradientCovariantImageFunction.cxx b/Modules/Feature/Descriptors/test/otbHistogramOfOrientedGradientCovariantImageFunction.cxx index 1732f66d59f15abdfda9afde43628549d5abc1fa..0a26112ffae0a381c9c909999b9113c3e817929c 100644 --- a/Modules/Feature/Descriptors/test/otbHistogramOfOrientedGradientCovariantImageFunction.cxx +++ b/Modules/Feature/Descriptors/test/otbHistogramOfOrientedGradientCovariantImageFunction.cxx @@ -41,15 +41,6 @@ typedef GradientFilterType::OutputImageType typedef otb::HistogramOfOrientedGradientCovariantImageFunction<CovariantImageType> FunctionType; -int otbHistogramOfOrientedGradientCovariantImageFunctionNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - // Instantiating object - FunctionType::Pointer function = FunctionType::New(); - - std::cout << function << std::endl; - - return EXIT_SUCCESS; -} int otbHistogramOfOrientedGradientCovariantImageFunction(int itkNotUsed(argc), char * argv[]) diff --git a/Modules/Feature/Edge/test/otbLineSegmentDetector.cxx b/Modules/Feature/Edge/test/otbLineSegmentDetector.cxx index 88e3787a850fb7cb4c0ce356932bcf382b6269f4..49ada8777e9a10d57c418332a636ed2fa29bbfa2 100644 --- a/Modules/Feature/Edge/test/otbLineSegmentDetector.cxx +++ b/Modules/Feature/Edge/test/otbLineSegmentDetector.cxx @@ -25,22 +25,6 @@ #include "otbVectorDataFileWriter.h" #include "otbImageFileWriter.h" -int otbLineSegmentDetectorNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - - typedef float InputPixelType; - const unsigned int Dimension = 2; - - /** Typedefs */ - typedef otb::Image<InputPixelType, Dimension> InputImageType; - typedef otb::LineSegmentDetector<InputImageType, InputPixelType> lsdFilterType; - - lsdFilterType::Pointer filter = lsdFilterType::New(); - - std::cout << filter << std::endl; - - return EXIT_SUCCESS; -} int otbLineSegmentDetector(int argc, char * argv[]) { diff --git a/Modules/Feature/Edge/test/otbStreamingLineSegmentDetector.cxx b/Modules/Feature/Edge/test/otbStreamingLineSegmentDetector.cxx index 32f86652691e93291ec6d3cf69049cbcb5a987a8..3c3609ff3bad039375cad0346316caab5945e408 100644 --- a/Modules/Feature/Edge/test/otbStreamingLineSegmentDetector.cxx +++ b/Modules/Feature/Edge/test/otbStreamingLineSegmentDetector.cxx @@ -25,21 +25,6 @@ #include "otbVectorDataFileWriter.h" -int otbStreamingLineSegmentDetectorNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef float InputPixelType; - const unsigned int Dimension = 2; - - /** Typedefs */ - typedef otb::Image<InputPixelType, Dimension> ImageType; - typedef otb::StreamingLineSegmentDetector<ImageType>::FilterType StreamingLSDFilterType; - - StreamingLSDFilterType::Pointer lsdFilter = StreamingLSDFilterType::New(); - - std::cout << lsdFilter << std::endl; - - return EXIT_SUCCESS; -} int otbStreamingLineSegmentDetector(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Feature/Moments/test/otbComplexMomentsImageFunction.cxx b/Modules/Feature/Moments/test/otbComplexMomentsImageFunction.cxx index 32659c339f838c0d2e8027c3002162380f989ddc..040943a9599dfe3f01cb99b0f052ee83e6ae46df 100644 --- a/Modules/Feature/Moments/test/otbComplexMomentsImageFunction.cxx +++ b/Modules/Feature/Moments/test/otbComplexMomentsImageFunction.cxx @@ -32,21 +32,6 @@ #include "otbStreamingResampleImageFilter.h" -int otbComplexMomentsImageFunctionNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - const unsigned int Dimension = 2; - typedef double InputPixelType; - - typedef otb::Image<InputPixelType, Dimension> ImageType; - typedef otb::ComplexMomentsImageFunction<ImageType> FunctionType; - - // Instantiating object - FunctionType::Pointer function = FunctionType::New(); - - std::cout << function << std::endl; - - return EXIT_SUCCESS; -} int otbComplexMomentsImageFunction(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Feature/Moments/test/otbFlusserMomentsImageFunction.cxx b/Modules/Feature/Moments/test/otbFlusserMomentsImageFunction.cxx index 56648d16649bb9e22102d6e6ecd41634df7221f9..9ae98712c1f2578134c695c9f1acfca6779edd19 100644 --- a/Modules/Feature/Moments/test/otbFlusserMomentsImageFunction.cxx +++ b/Modules/Feature/Moments/test/otbFlusserMomentsImageFunction.cxx @@ -34,21 +34,6 @@ #include "itkAffineTransform.h" -int otbFlusserMomentsImageFunctionNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef unsigned char InputPixelType; - const unsigned int Dimension = 2; - - typedef otb::Image<InputPixelType, Dimension> InputImageType; - typedef otb::FlusserMomentsImageFunction<InputImageType> FunctionType; - - // Instantiating object - FunctionType::Pointer function = FunctionType::New(); - - std::cout << function << std::endl; - - return EXIT_SUCCESS; -} int otbFlusserMomentsImageFunction(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Feature/Moments/test/otbHuMomentsImageFunction.cxx b/Modules/Feature/Moments/test/otbHuMomentsImageFunction.cxx index f1a2f53d73a909daf6930958144a9313e4db2787..162d3e192a6ecdca7033c071d548bcf2114642a7 100644 --- a/Modules/Feature/Moments/test/otbHuMomentsImageFunction.cxx +++ b/Modules/Feature/Moments/test/otbHuMomentsImageFunction.cxx @@ -34,21 +34,6 @@ #include "itkAffineTransform.h" -int otbHuMomentsImageFunctionNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef unsigned char InputPixelType; - const unsigned int Dimension = 2; - - typedef otb::Image<InputPixelType, Dimension> InputImageType; - typedef otb::HuMomentsImageFunction<InputImageType> FunctionType; - - // Instantiating object - FunctionType::Pointer function = FunctionType::New(); - - std::cout << function << std::endl; - - return EXIT_SUCCESS; -} int otbHuMomentsImageFunction(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Feature/Moments/test/otbRadiometricMomentsImageFilter.cxx b/Modules/Feature/Moments/test/otbRadiometricMomentsImageFilter.cxx index deabbe90f79c5d489582ff6108db3f31a40e22db..7f6413f62ac4f458de9c3fa0d083a250015dcff6 100644 --- a/Modules/Feature/Moments/test/otbRadiometricMomentsImageFilter.cxx +++ b/Modules/Feature/Moments/test/otbRadiometricMomentsImageFilter.cxx @@ -25,23 +25,6 @@ #include "otbImageFileWriter.h" #include "otbRadiometricMomentsImageFilter.h" -int otbRadiometricMomentsImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef float InputPixelType; - const unsigned int Dimension = 2; - - /** Typedefs */ - typedef otb::Image<InputPixelType, Dimension> ImageType; - typedef otb::VectorImage<InputPixelType, Dimension> VectorImageType; - - typedef otb::RadiometricMomentsImageFilter<ImageType, VectorImageType> FilterType; - - FilterType::Pointer filter = FilterType::New(); - - std::cout << filter << std::endl; - - return EXIT_SUCCESS; -} int otbRadiometricMomentsImageFilter(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Feature/Moments/test/otbRadiometricMomentsImageFunction.cxx b/Modules/Feature/Moments/test/otbRadiometricMomentsImageFunction.cxx index 3004cd1b195d8d5ffaa9d95bb44afe46d4d23711..738ba44a435dbfadaebb401577701ae2e9aaba28 100644 --- a/Modules/Feature/Moments/test/otbRadiometricMomentsImageFunction.cxx +++ b/Modules/Feature/Moments/test/otbRadiometricMomentsImageFunction.cxx @@ -30,21 +30,6 @@ #include "otbImageFileReader.h" #include "otbRadiometricMomentsImageFunction.h" -int otbRadiometricMomentsImageFunctionNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef unsigned char InputPixelType; - const unsigned int Dimension = 2; - - typedef otb::Image<InputPixelType, Dimension> InputImageType; - typedef otb::RadiometricMomentsImageFunction<InputImageType> FunctionType; - - // Instantiating object - FunctionType::Pointer function = FunctionType::New(); - - std::cout << function << std::endl; - - return EXIT_SUCCESS; -} int otbRadiometricMomentsImageFunction(int itkNotUsed(argc), char * argv[]) diff --git a/Modules/Feature/Moments/test/otbRealMomentsImageFunction.cxx b/Modules/Feature/Moments/test/otbRealMomentsImageFunction.cxx index 50ded7f2e1bcd36a428809ee33bf5d53f3784111..9b560732c2145cd28f3d5cba3ba2fa5356cc606a 100644 --- a/Modules/Feature/Moments/test/otbRealMomentsImageFunction.cxx +++ b/Modules/Feature/Moments/test/otbRealMomentsImageFunction.cxx @@ -30,21 +30,6 @@ #include "otbImageFileReader.h" #include "otbRealMomentsImageFunction.h" -int otbRealMomentsImageFunctionNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef unsigned char InputPixelType; - const unsigned int Dimension = 2; - - typedef otb::Image<InputPixelType, Dimension> InputImageType; - typedef otb::RealMomentsImageFunction<InputImageType> FunctionType; - - // Instantiating object - FunctionType::Pointer function = FunctionType::New(); - - std::cout << function << std::endl; - - return EXIT_SUCCESS; -} int otbRealMomentsImageFunction(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Feature/Textures/test/otbHaralickTexturesImageFunction.cxx b/Modules/Feature/Textures/test/otbHaralickTexturesImageFunction.cxx index c7bccb00015e7bc00918edc0f503f91d85a52eeb..0cacbc884b1252f862c9aadc4f46b0184d6ca5cf 100644 --- a/Modules/Feature/Textures/test/otbHaralickTexturesImageFunction.cxx +++ b/Modules/Feature/Textures/test/otbHaralickTexturesImageFunction.cxx @@ -35,12 +35,6 @@ typedef otb::HaralickTexturesImageFunction< typedef HaralickTexturesImageFunctionType::PointType PointType; typedef HaralickTexturesImageFunctionType::OutputType OutputType; -int otbHaralickTexturesImageFunctionNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - HaralickTexturesImageFunctionType::Pointer function = HaralickTexturesImageFunctionType::New(); - - return EXIT_SUCCESS; -} int otbHaralickTexturesImageFunction(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Feature/Textures/test/otbScalarImageToHigherOrderTexturesFilter.cxx b/Modules/Feature/Textures/test/otbScalarImageToHigherOrderTexturesFilter.cxx index 8c6a7a2623efb894a46fad5c6fc98e6a00186ae3..1cd9ba022cfe695da8742ed2b02f7299ea96d612 100644 --- a/Modules/Feature/Textures/test/otbScalarImageToHigherOrderTexturesFilter.cxx +++ b/Modules/Feature/Textures/test/otbScalarImageToHigherOrderTexturesFilter.cxx @@ -38,14 +38,6 @@ typedef RunLengthFeaturesFilterType::OffsetType OffsetType; typedef RunLengthFeaturesFilterType::OffsetVector OffsetVector; typedef RunLengthFeaturesFilterType::OffsetVectorPointer OffsetVectorPointer; -int otbScalarImageToHigherOrderTexturesFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - TexturesFilterType::Pointer filter = TexturesFilterType::New(); - - std::cout << filter << std::endl; - - return EXIT_SUCCESS; -} ImageType::Pointer ReadInputImage(const char * filename) { diff --git a/Modules/Filtering/ChangeDetection/test/otbMultivariateAlterationDetectorImageFilter.cxx b/Modules/Filtering/ChangeDetection/test/otbMultivariateAlterationDetectorImageFilter.cxx index 7980a1a727a9e0aa8afc433bc559b161474bbc86..751a720970d5fdc79a8d69ed589c5688213cc54c 100644 --- a/Modules/Filtering/ChangeDetection/test/otbMultivariateAlterationDetectorImageFilter.cxx +++ b/Modules/Filtering/ChangeDetection/test/otbMultivariateAlterationDetectorImageFilter.cxx @@ -30,12 +30,6 @@ typedef otb::ImageFileWriter<OutputImageType> WriterType; typedef otb::MultivariateAlterationDetectorImageFilter<ImageType, OutputImageType> MADFilterType; -int otbMultivariateAlterationDetectorImageFilterNew(int itkNotUsed(argc), char* itkNotUsed(argv)[]) -{ - MADFilterType::Pointer madFilter = MADFilterType::New(); - - return EXIT_SUCCESS; -} int otbMultivariateAlterationDetectorImageFilter(int itkNotUsed(argc), char* argv[]) diff --git a/Modules/Filtering/DimensionalityReduction/test/otbMaximumAutocorrelationFactorImageFilter.cxx b/Modules/Filtering/DimensionalityReduction/test/otbMaximumAutocorrelationFactorImageFilter.cxx index 04e230cb84dd0313ea2a74bb9bc96ceafd91fded..a4d99a12b19a344da1e0ef28631acd3ee9b16502 100644 --- a/Modules/Filtering/DimensionalityReduction/test/otbMaximumAutocorrelationFactorImageFilter.cxx +++ b/Modules/Filtering/DimensionalityReduction/test/otbMaximumAutocorrelationFactorImageFilter.cxx @@ -29,12 +29,6 @@ typedef otb::ImageFileReader<ImageType> ReaderType; typedef otb::ImageFileWriter<OutputImageType> WriterType; typedef otb::MaximumAutocorrelationFactorImageFilter<ImageType, OutputImageType> MADFilterType; -int otbMaximumAutocorrelationFactorImageFilterNew(int itkNotUsed(argc), char* itkNotUsed(argv) []) -{ - MADFilterType::Pointer madFilter = MADFilterType::New(); - - return EXIT_SUCCESS; -} int otbMaximumAutocorrelationFactorImageFilter(int itkNotUsed(argc), char* argv[]) diff --git a/Modules/Filtering/ImageManipulation/test/otbClampImageFilter.cxx b/Modules/Filtering/ImageManipulation/test/otbClampImageFilter.cxx index 29ac5602eacbc38ffda2b5914822024b2a20d0df..86697839c22b02ed25ff830d6a6dc56376096bc9 100644 --- a/Modules/Filtering/ImageManipulation/test/otbClampImageFilter.cxx +++ b/Modules/Filtering/ImageManipulation/test/otbClampImageFilter.cxx @@ -40,13 +40,6 @@ typedef otb::Image<OutputPixelType, Dimension> OutputImageType; typedef otb::ClampImageFilter<InputImageType, OutputImageType> FilterType; -int otbClampImageFilterNew(int itkNotUsed(argc), char* itkNotUsed(argv) []) -{ - /** instantiating the filter */ - FilterType::Pointer filter = FilterType::New(); - - return EXIT_SUCCESS; -} int otbClampImageFilterTest(int itkNotUsed(argc), char* argv[]) { diff --git a/Modules/Filtering/ImageManipulation/test/otbClampVectorImageFilter.cxx b/Modules/Filtering/ImageManipulation/test/otbClampVectorImageFilter.cxx index 8f89a7ea200a3e5a54d610a9ec8e7c5293dd848a..9f58a11190deed688d5bc2a28fde3c8f673c7769 100644 --- a/Modules/Filtering/ImageManipulation/test/otbClampVectorImageFilter.cxx +++ b/Modules/Filtering/ImageManipulation/test/otbClampVectorImageFilter.cxx @@ -36,13 +36,6 @@ typedef otb::VectorImage<OutputPixelType, Dimension> OutputImageType; typedef otb::ClampVectorImageFilter<InputImageType, OutputImageType> FilterType; -int otbClampVectorImageFilterNew(int itkNotUsed(argc), char* itkNotUsed(argv) []) -{ - /** instantiating the filter */ - FilterType::Pointer filter = FilterType::New(); - - return EXIT_SUCCESS; -} int otbClampVectorImageFilterTest(int itkNotUsed(argc), char* argv[]) { diff --git a/Modules/Filtering/ImageManipulation/test/otbConcatenateScalarValueImageFilterTest.cxx b/Modules/Filtering/ImageManipulation/test/otbConcatenateScalarValueImageFilterTest.cxx index 2914b8738578fdf7c565c403aad52311aa5f305f..af25081092d4adaa5f5d4867f1c0bb254574fbed 100644 --- a/Modules/Filtering/ImageManipulation/test/otbConcatenateScalarValueImageFilterTest.cxx +++ b/Modules/Filtering/ImageManipulation/test/otbConcatenateScalarValueImageFilterTest.cxx @@ -32,12 +32,6 @@ typedef double PixelType; typedef otb::VectorImage<PixelType> ImageType; typedef otb::ConcatenateScalarValueImageFilter<ImageType, ImageType> FilterType; -int otbConcatenateScalarValueImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - FilterType::Pointer filter = FilterType::New(); - std::cout << filter << std::endl; - return EXIT_SUCCESS; -} int otbConcatenateScalarValueImageFilterTest(int itkNotUsed(argc), char * itkNotUsed(argv) []) { diff --git a/Modules/Filtering/ImageManipulation/test/otbMaskedIteratorDecorator.cxx b/Modules/Filtering/ImageManipulation/test/otbMaskedIteratorDecorator.cxx index 9f3362d1d43e6a5c2127813b37e567d0bf159a10..f0bdd1adeb9cd226c8ffbf0a67f4d1a9bbe18c05 100644 --- a/Modules/Filtering/ImageManipulation/test/otbMaskedIteratorDecorator.cxx +++ b/Modules/Filtering/ImageManipulation/test/otbMaskedIteratorDecorator.cxx @@ -66,16 +66,6 @@ void FillHalf(typename ImageType::Pointer image, const typename ImageType::Regio } // Test template instantiation -int otbMaskedIteratorDecoratorNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef otb::Image<double, 2> ImageType; - ImageType::Pointer image = GetTestImage<ImageType>(10, 10); - ImageType::Pointer mask = GetTestImage<ImageType>(10, 0); - ImageType::RegionType region(image->GetLargestPossibleRegion()); - - otb::MaskedIteratorDecorator<itk::ImageRegionIterator<ImageType> > it(mask, image, region); - return EXIT_SUCCESS; -} // ---------------------- Initialization code ---------------------------------- template <typename IteratorType> diff --git a/Modules/Filtering/ImageManipulation/test/otbMatrixImageFilterTest.cxx b/Modules/Filtering/ImageManipulation/test/otbMatrixImageFilterTest.cxx index e6afc893cc4e77fbd42841d1f8504540cbdfbce6..2aa9fffaec1c79f997922c5a548a6fef881cd3ca 100644 --- a/Modules/Filtering/ImageManipulation/test/otbMatrixImageFilterTest.cxx +++ b/Modules/Filtering/ImageManipulation/test/otbMatrixImageFilterTest.cxx @@ -27,17 +27,6 @@ #include "otbImageFileWriter.h" #include <complex> -int otbMatrixImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef std::complex<double> PixelType; - - typedef otb::VectorImage<PixelType> ImageType; - typedef otb::MatrixImageFilter<ImageType, ImageType> FilterType; - - FilterType::Pointer filter = FilterType::New(); - - return EXIT_SUCCESS; -} int otbMatrixImageFilterTest(int itkNotUsed(argc), char * argv[]) diff --git a/Modules/Filtering/ImageManipulation/test/otbThresholdVectorImageFilter.cxx b/Modules/Filtering/ImageManipulation/test/otbThresholdVectorImageFilter.cxx index c7b584cfde73436a9ac78b05e8f51650f229732f..0dc1c83e582da73970c54862749bf1165fde710b 100644 --- a/Modules/Filtering/ImageManipulation/test/otbThresholdVectorImageFilter.cxx +++ b/Modules/Filtering/ImageManipulation/test/otbThresholdVectorImageFilter.cxx @@ -36,13 +36,6 @@ typedef otb::VectorImage<OutputPixelType, Dimension> OutputImageType; typedef otb::ThresholdVectorImageFilter<InputImageType, OutputImageType> FilterType; -int otbThresholdVectorImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - /** instantiating the filter */ - FilterType::Pointer filter = FilterType::New(); - - return EXIT_SUCCESS; -} int otbThresholdVectorImageFilterTest(int itkNotUsed(argc), char* argv[]) { diff --git a/Modules/Filtering/ImageManipulation/test/otbTileImageFilter.cxx b/Modules/Filtering/ImageManipulation/test/otbTileImageFilter.cxx index 1864f8fefd66d0e8cc5b230dab2fb8c50ee50784..9ac1d38d8c23ac594834c9b6a03e6286998c0992 100644 --- a/Modules/Filtering/ImageManipulation/test/otbTileImageFilter.cxx +++ b/Modules/Filtering/ImageManipulation/test/otbTileImageFilter.cxx @@ -32,13 +32,6 @@ typedef otb::ImageFileReader<VectorImageType> VectorImageReaderType; typedef otb::ImageFileWriter<VectorImageType> VectorImageWriterType; -int otbTileImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - TileImageFilterType::Pointer tileFilter = TileImageFilterType::New(); - TileVectorImageFilterType::Pointer tileVectorFilter = TileVectorImageFilterType::New(); - - return EXIT_SUCCESS; -} int otbTileImageFilter(int argc, char * argv[]) { diff --git a/Modules/Filtering/MathParser/test/otbBandMathImageFilter.cxx b/Modules/Filtering/MathParser/test/otbBandMathImageFilter.cxx index 69d452b1f47e5d451ae9ec1f5b0361babe20286a..19f77c609dd0386f9b76a1d37ccb10db514dc8d1 100644 --- a/Modules/Filtering/MathParser/test/otbBandMathImageFilter.cxx +++ b/Modules/Filtering/MathParser/test/otbBandMathImageFilter.cxx @@ -29,17 +29,6 @@ #include "otbBandMathImageFilter.h" #include "otbImageFileWriter.h" -int otbBandMathImageFilterNew( int itkNotUsed(argc), char* itkNotUsed(argv) []) -{ - typedef double PixelType; - //typedef float PixelType; - typedef otb::Image<PixelType, 2> ImageType; - typedef otb::BandMathImageFilter<ImageType> FilterType; - - FilterType::Pointer filter = FilterType::New(); - - return EXIT_SUCCESS; -} int otbBandMathImageFilter( int itkNotUsed(argc), char* itkNotUsed(argv) []) { diff --git a/Modules/Filtering/MathParser/test/otbImageListToSingleImageFilterTest.cxx b/Modules/Filtering/MathParser/test/otbImageListToSingleImageFilterTest.cxx index b6033f22019f5df2975816a7d623705ce8711571..5360bb2f57355271cd39842331cbfa33bfc5f352 100644 --- a/Modules/Filtering/MathParser/test/otbImageListToSingleImageFilterTest.cxx +++ b/Modules/Filtering/MathParser/test/otbImageListToSingleImageFilterTest.cxx @@ -28,23 +28,6 @@ #include "otbImageFileWriter.h" #include "otbBandMathImageFilter.h" -int otbImageListToSingleImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - const unsigned int Dimension = 2; - - typedef unsigned char PixelType; - typedef otb::Image<PixelType, Dimension> ImageType; - typedef otb::ImageList<ImageType> ImageListType; - - typedef otb::ImageListToSingleImageFilter<ImageListType::ImageType> ImageListToSingleImageFilter; - - // Instantiating object - ImageListToSingleImageFilter::Pointer filter = ImageListToSingleImageFilter::New(); - - std::cout << filter << std::endl; - - return EXIT_SUCCESS; -} diff --git a/Modules/Filtering/MathParser/test/otbParserConditionDataNodeFeatureFunction.cxx b/Modules/Filtering/MathParser/test/otbParserConditionDataNodeFeatureFunction.cxx index 5c0f0a8b3f1836be95456bfef0f8f99d6da36fcb..1d50eae99d725b56468a6f906f1ead6e9de23d91 100644 --- a/Modules/Filtering/MathParser/test/otbParserConditionDataNodeFeatureFunction.cxx +++ b/Modules/Filtering/MathParser/test/otbParserConditionDataNodeFeatureFunction.cxx @@ -29,21 +29,6 @@ #include "otbVectorDataFileWriter.h" #include "itkPreOrderTreeIterator.h" -int otbParserConditionDataNodeFeatureFunctionNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef double CoordRepType; - typedef double PrecisionType; - typedef otb::VectorImage<double, 2> ImageType; - typedef otb::ParserConditionDataNodeFeatureFunction<ImageType, CoordRepType, PrecisionType> - ParserConditionDataNodeFeaturefunctionType; - - ParserConditionDataNodeFeaturefunctionType::Pointer - ParserConditionFeature = ParserConditionDataNodeFeaturefunctionType::New(); - - std::cout << ParserConditionFeature << std::endl; - - return EXIT_SUCCESS; -} int otbParserConditionDataNodeFeatureFunction(int itkNotUsed(argc), char* argv[]) { diff --git a/Modules/Filtering/MathParser/test/otbParserTest.cxx b/Modules/Filtering/MathParser/test/otbParserTest.cxx index 256aa0368c3fdf5a56e865dccb53d44ee098f6a5..19198dbfe1fe2d9db6ac4fc21884910a693c0548 100644 --- a/Modules/Filtering/MathParser/test/otbParserTest.cxx +++ b/Modules/Filtering/MathParser/test/otbParserTest.cxx @@ -23,13 +23,6 @@ typedef otb::Parser ParserType; -int otbParserTestNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - // Instantiating object - ParserType::Pointer parser = ParserType::New(); - std::cout << parser << std::endl; - return EXIT_SUCCESS; -} void otbParserTest_ThrowIfNotEqual(double output, double ref, std::string testname, double epsilon = 1.0E-12) { diff --git a/Modules/Filtering/MathParserX/test/otbBandMathXImageFilter.cxx b/Modules/Filtering/MathParserX/test/otbBandMathXImageFilter.cxx index bc69c6b19fcbf9008903f8253b2e3a42be477e07..ca031cb6aa1f424ce641f8d3c15b43fc14e7909e 100644 --- a/Modules/Filtering/MathParserX/test/otbBandMathXImageFilter.cxx +++ b/Modules/Filtering/MathParserX/test/otbBandMathXImageFilter.cxx @@ -31,16 +31,6 @@ #include "itkImageRegionIteratorWithIndex.h" -int otbBandMathXImageFilterNew( int itkNotUsed(argc), char* itkNotUsed(argv) []) -{ - typedef double PixelType; - typedef otb::VectorImage<PixelType, 2> ImageType; - typedef otb::BandMathXImageFilter<ImageType> FilterType; - - FilterType::Pointer filter = FilterType::New(); - - return EXIT_SUCCESS; -} int otbBandMathXImageFilter( int itkNotUsed(argc), char* itkNotUsed(argv) []) diff --git a/Modules/Filtering/Polarimetry/test/otbPolarimetricData.cxx b/Modules/Filtering/Polarimetry/test/otbPolarimetricData.cxx index 39e012e28eab760893112da85ed7baedab24cdbf..453f8803a8face99cc031ba682bb617290c8cbd2 100644 --- a/Modules/Filtering/Polarimetry/test/otbPolarimetricData.cxx +++ b/Modules/Filtering/Polarimetry/test/otbPolarimetricData.cxx @@ -24,12 +24,6 @@ #include "otbPolarimetricData.h" -int otbPolarimetricDataNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - otb::PolarimetricData::Pointer data = otb::PolarimetricData::New(); - - return EXIT_SUCCESS; -} diff --git a/Modules/Filtering/Polarimetry/test/otbReciprocalBarnesDecomp.cxx b/Modules/Filtering/Polarimetry/test/otbReciprocalBarnesDecomp.cxx index db54c3e5649a9a826cfeaee4fe271a9e687affb0..989d79ca367c1f57872faae4251e282af49e8bf6 100644 --- a/Modules/Filtering/Polarimetry/test/otbReciprocalBarnesDecomp.cxx +++ b/Modules/Filtering/Polarimetry/test/otbReciprocalBarnesDecomp.cxx @@ -32,19 +32,6 @@ #include "otbSinclairReciprocalImageFilter.h" #include "otbSinclairToReciprocalCoherencyMatrixFunctor.h" -int otbReciprocalBarnesDecompImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - const unsigned int Dimension = 2; - - typedef std::complex<double> PixelType; - typedef otb::VectorImage<PixelType, Dimension> ImageType; - - typedef otb::ReciprocalBarnesDecompImageFilter<ImageType, ImageType> FilterType; - - FilterType::Pointer filter = FilterType::New(); - - return EXIT_SUCCESS; -} int otbReciprocalBarnesDecompImageFilter(int itkNotUsed(argc), char * argv[]) diff --git a/Modules/Filtering/Polarimetry/test/otbReciprocalHuynenDecomp.cxx b/Modules/Filtering/Polarimetry/test/otbReciprocalHuynenDecomp.cxx index 96c97e972c850f40772bdfb1246f1b138a858386..9561c7b48cc1dbe3f49568603718fd92c2ba781e 100644 --- a/Modules/Filtering/Polarimetry/test/otbReciprocalHuynenDecomp.cxx +++ b/Modules/Filtering/Polarimetry/test/otbReciprocalHuynenDecomp.cxx @@ -32,19 +32,6 @@ #include "otbSinclairReciprocalImageFilter.h" #include "otbSinclairToReciprocalCoherencyMatrixFunctor.h" -int otbReciprocalHuynenDecompImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - const unsigned int Dimension = 2; - - typedef std::complex<double> PixelType; - typedef otb::VectorImage<PixelType, Dimension> ImageType; - - typedef otb::ReciprocalHuynenDecompImageFilter<ImageType, ImageType> FilterType; - - FilterType::Pointer filter = FilterType::New(); - - return EXIT_SUCCESS; -} int otbReciprocalHuynenDecompImageFilter(int itkNotUsed(argc), char * argv[]) diff --git a/Modules/Filtering/Polarimetry/test/otbReciprocalPauliDecomp.cxx b/Modules/Filtering/Polarimetry/test/otbReciprocalPauliDecomp.cxx index b82622c51ef478c16f391db0b1dcc3e2d297fdf4..587a33ef650ba410fe03e669b033af6929387180 100644 --- a/Modules/Filtering/Polarimetry/test/otbReciprocalPauliDecomp.cxx +++ b/Modules/Filtering/Polarimetry/test/otbReciprocalPauliDecomp.cxx @@ -29,19 +29,6 @@ #include "otbReciprocalPauliDecompImageFilter.h" #include "otbNRIBandImagesToOneNComplexBandsImage.h" -int otbReciprocalPauliDecompImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - const unsigned int Dimension = 2; - - typedef std::complex<double> PixelType; - typedef otb::VectorImage<PixelType, Dimension> ImageType; - - typedef otb::ReciprocalPauliDecompImageFilter<ImageType, ImageType> FilterType; - - FilterType::Pointer filter = FilterType::New(); - - return EXIT_SUCCESS; -} int otbReciprocalPauliDecompImageFilter(int itkNotUsed(argc), char * argv[]) diff --git a/Modules/Filtering/Polarimetry/test/otbSinclairImageFilter.cxx b/Modules/Filtering/Polarimetry/test/otbSinclairImageFilter.cxx index 07e3fda0f10771104d089407328f18f99df31945..2e2c24245cd6ddcd643f3727f22bde08f3210c63 100644 --- a/Modules/Filtering/Polarimetry/test/otbSinclairImageFilter.cxx +++ b/Modules/Filtering/Polarimetry/test/otbSinclairImageFilter.cxx @@ -33,20 +33,6 @@ #include "otbMultiChannelExtractROI.h" -int otbSinclairImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef std::complex<float> ComplexType; - typedef otb::Image<ComplexType, 2> CplxImageType; - typedef otb::VectorImage<ComplexType, 2> VCplxImageType; - - typedef otb::SinclairImageFilter<CplxImageType, CplxImageType, CplxImageType, CplxImageType, VCplxImageType> FilterType; - - // Instantiating object - FilterType::Pointer filter = FilterType::New(); - - - return EXIT_SUCCESS; -} template<class TInputPixel, class TOutputPixel, class TFunction> diff --git a/Modules/Filtering/Polarimetry/test/otbSinclairReciprocalImageFilter.cxx b/Modules/Filtering/Polarimetry/test/otbSinclairReciprocalImageFilter.cxx index 9091c64726fe8b082067be9a34eb4d01192e73ce..471c300ecf8ec0943648c9398898774b75afa45a 100644 --- a/Modules/Filtering/Polarimetry/test/otbSinclairReciprocalImageFilter.cxx +++ b/Modules/Filtering/Polarimetry/test/otbSinclairReciprocalImageFilter.cxx @@ -32,20 +32,6 @@ #include "otbMultiChannelExtractROI.h" -int otbSinclairReciprocalImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef std::complex<float> ComplexType; - typedef otb::Image<ComplexType, 2> CplxImageType; - typedef otb::VectorImage<ComplexType, 2> VCplxImageType; - - typedef otb::SinclairReciprocalImageFilter<CplxImageType, CplxImageType, CplxImageType, VCplxImageType> FilterType; - - // Instantiating object - FilterType::Pointer filter = FilterType::New(); - - - return EXIT_SUCCESS; -} template<class TInputPixel, class TOutputPixel, class TFunction> diff --git a/Modules/Filtering/Projection/test/otbGenericRSResampleImageFilter.cxx b/Modules/Filtering/Projection/test/otbGenericRSResampleImageFilter.cxx index 0873af5c2424ef4db86896cdbcc9edc5692070ba..ae63c4d8eac60270f60d8193b41fdee2ff770b80 100644 --- a/Modules/Filtering/Projection/test/otbGenericRSResampleImageFilter.cxx +++ b/Modules/Filtering/Projection/test/otbGenericRSResampleImageFilter.cxx @@ -43,13 +43,6 @@ typedef ImageResamplerType::SpacingType SpacingType; typedef otb::ImageFileReader<ImageType> ReaderType; typedef otb::ImageFileWriter<ImageType> WriterType; -int otbGenericRSResampleImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - // SmartPointer instantiation - ImageResamplerType::Pointer resampler = ImageResamplerType::New(); - std::cout << resampler << std::endl; - return EXIT_SUCCESS; -} int otbGenericRSResampleImageFilter(int itkNotUsed(argc), char* argv[]) { diff --git a/Modules/Filtering/Projection/test/otbGeographicalDistance.cxx b/Modules/Filtering/Projection/test/otbGeographicalDistance.cxx index c22069156ffa02f5bf3f512ad72eb76579d74e99..4ccce61ac52f54cac3b2bbb2aca4f7a733e65467 100644 --- a/Modules/Filtering/Projection/test/otbGeographicalDistance.cxx +++ b/Modules/Filtering/Projection/test/otbGeographicalDistance.cxx @@ -21,16 +21,6 @@ #include "itkPoint.h" #include "otbGeographicalDistance.h" -int otbGeographicalDistanceNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef itk::Point<double, 2> PointType; - typedef otb::GeographicalDistance<PointType> DistanceType; - - // Instantiation - DistanceType::Pointer distance = DistanceType::New(); - - return EXIT_SUCCESS; -} int otbGeographicalDistance(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Filtering/Projection/test/otbImageToEnvelopeVectorDataFilter.cxx b/Modules/Filtering/Projection/test/otbImageToEnvelopeVectorDataFilter.cxx index e2b5ccb6f91168d4afc2bd568ef4d61fd6af7485..4969adf7ba141515ba229b4e124c3a829b877b7e 100644 --- a/Modules/Filtering/Projection/test/otbImageToEnvelopeVectorDataFilter.cxx +++ b/Modules/Filtering/Projection/test/otbImageToEnvelopeVectorDataFilter.cxx @@ -33,13 +33,6 @@ typedef otb::VectorDataFileWriter<VectorDataType> WriterType; typedef otb::ImageToEnvelopeVectorDataFilter <ImageType, VectorDataType> FilterType; -int otbImageToEnvelopeVectorDataFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - // Instantiation - FilterType::Pointer filter = FilterType::New(); - - return EXIT_SUCCESS; -} int otbImageToEnvelopeVectorDataFilter(int itkNotUsed(argc), char* argv[]) { diff --git a/Modules/Filtering/Projection/test/otbImageToGenericRSOutputParameters.cxx b/Modules/Filtering/Projection/test/otbImageToGenericRSOutputParameters.cxx index 465aa65bd103f3fc8d156989876e372e90704c3e..913963df6e5f2387f07403f0c49bb79cb77fce1f 100644 --- a/Modules/Filtering/Projection/test/otbImageToGenericRSOutputParameters.cxx +++ b/Modules/Filtering/Projection/test/otbImageToGenericRSOutputParameters.cxx @@ -31,13 +31,6 @@ typedef otb::VectorImage<double, 2> ImageType; typedef otb::ImageToGenericRSOutputParameters<ImageType> FilterType; -int otbImageToGenericRSOutputParametersNew (int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - FilterType::Pointer filter = FilterType::New(); - - return EXIT_SUCCESS; -} - int otbImageToGenericRSOutputParameters (int itkNotUsed(argc), char * argv[]) { const char * infname = argv[1]; diff --git a/Modules/Filtering/Projection/test/otbMapProjectionsNew.cxx b/Modules/Filtering/Projection/test/otbMapProjectionsNew.cxx index f29644125f041f53e74452508beb949a7d929d3c..c88c9bbac816fad20de3f5f11766d93fee884eba 100644 --- a/Modules/Filtering/Projection/test/otbMapProjectionsNew.cxx +++ b/Modules/Filtering/Projection/test/otbMapProjectionsNew.cxx @@ -27,35 +27,6 @@ #include "otbImage.h" #include "otbMapProjections.h" -int otbMapProjectionsNew(int itkNotUsed(argc), char* itkNotUsed(argv)[]) -{ - otb::Eckert4InverseProjection::Pointer lEckert4Projection = otb::Eckert4InverseProjection::New(); - otb::Eckert4ForwardProjection::Pointer lEckert4Projection2 = otb::Eckert4ForwardProjection::New(); - otb::LambertConformalConicInverseProjection::Pointer lLambertConformalConicProjection = - otb::LambertConformalConicInverseProjection::New(); - otb::LambertConformalConicForwardProjection::Pointer lLambertConformalConicProjection2 = - otb::LambertConformalConicForwardProjection::New(); - otb::Lambert2EtenduInverseProjection::Pointer lLambert2Etendu = otb::Lambert2EtenduInverseProjection::New(); - otb::Lambert2EtenduForwardProjection::Pointer lLambert2Etendu2 = otb::Lambert2EtenduForwardProjection::New(); - otb::Lambert3CartoSudInverseProjection::Pointer lLambert3CartoSud = otb::Lambert3CartoSudInverseProjection::New(); - otb::Lambert3CartoSudForwardProjection::Pointer lLambert3CartoSud2 = otb::Lambert3CartoSudForwardProjection::New(); - otb::Lambert93InverseProjection::Pointer lLambert93 = otb::Lambert93InverseProjection::New(); - otb::Lambert93ForwardProjection::Pointer lLambert93_2 = otb::Lambert93ForwardProjection::New(); - otb::MollweidInverseProjection::Pointer lMollweidProjection = otb::MollweidInverseProjection::New(); - otb::MollweidForwardProjection::Pointer lMollweidProjection2 = otb::MollweidForwardProjection::New(); - otb::SinusoidalInverseProjection::Pointer lSinusoidalProjection = otb::SinusoidalInverseProjection::New(); - otb::SinusoidalForwardProjection::Pointer lSinusoidalProjection2 = otb::SinusoidalForwardProjection::New(); - otb::SVY21InverseProjection::Pointer lSVY21 = otb::SVY21InverseProjection::New(); - otb::SVY21ForwardProjection::Pointer lSVY21_2 = otb::SVY21ForwardProjection::New(); - otb::TransMercatorInverseProjection::Pointer lTransMercatorProjection = - otb::TransMercatorInverseProjection::New(); - otb::TransMercatorForwardProjection::Pointer lTransMercatorProjection2 = - otb::TransMercatorForwardProjection::New(); - otb::UtmInverseProjection::Pointer lUtmProjection = otb::UtmInverseProjection::New(); - otb::UtmForwardProjection::Pointer lUtmProjection2 = otb::UtmForwardProjection::New(); - - return EXIT_SUCCESS; -} //Test the specific accessors for some map projection diff --git a/Modules/Filtering/Projection/test/otbRationalTransform.cxx b/Modules/Filtering/Projection/test/otbRationalTransform.cxx index 4838026e57dd446418b83ba810dfc4d11c7cdaea..8126760ba71419fc5f067cd61433b5198416ac71 100644 --- a/Modules/Filtering/Projection/test/otbRationalTransform.cxx +++ b/Modules/Filtering/Projection/test/otbRationalTransform.cxx @@ -23,15 +23,6 @@ #include "otbRationalTransform.h" #include <fstream> -int otbRationalTransformNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef otb::RationalTransform<> RationalTransformType; - - // Instantiation - RationalTransformType::Pointer rt = RationalTransformType::New(); - - return EXIT_SUCCESS; -} int otbRationalTransform(int argc, char* argv[]) { diff --git a/Modules/Filtering/Projection/test/otbSpectralAngleDataNodeFeatureFunction.cxx b/Modules/Filtering/Projection/test/otbSpectralAngleDataNodeFeatureFunction.cxx index 011d5464c3919a3abe42a4fa493b7bef1f179cb1..a38c74e55b9144573e7bbc57e7118fd472e10f1c 100644 --- a/Modules/Filtering/Projection/test/otbSpectralAngleDataNodeFeatureFunction.cxx +++ b/Modules/Filtering/Projection/test/otbSpectralAngleDataNodeFeatureFunction.cxx @@ -30,20 +30,6 @@ #include "otbVectorDataFileWriter.h" #include "itkPreOrderTreeIterator.h" -int otbSpectralAngleDataNodeFeatureFunctionNew(int itkNotUsed(argc), char* itkNotUsed(argv) []) -{ - typedef double CoordRepType; - typedef double PrecisionType; - typedef otb::VectorImage<double, 2> ImageType; - typedef otb::SpectralAngleDataNodeFeatureFunction<ImageType, CoordRepType, PrecisionType> - DataNodeFeaturefunctionType; - - DataNodeFeaturefunctionType::Pointer featureFunction = DataNodeFeaturefunctionType::New(); - - std::cout << featureFunction << std::endl; - - return EXIT_SUCCESS; -} int otbSpectralAngleDataNodeFeatureFunction(int itkNotUsed(argc), char* argv[]) { diff --git a/Modules/Filtering/Projection/test/otbVectorDataTransformFilter.cxx b/Modules/Filtering/Projection/test/otbVectorDataTransformFilter.cxx index e0f5ee5ee81c7c0c1e2e668c610afe13b1b663cf..7d6427ac44bf9ae99fa5b9bc319eea9515fc7671 100644 --- a/Modules/Filtering/Projection/test/otbVectorDataTransformFilter.cxx +++ b/Modules/Filtering/Projection/test/otbVectorDataTransformFilter.cxx @@ -34,12 +34,6 @@ typedef otb::VectorData<> VectorDataType; typedef otb::VectorDataTransformFilter <VectorDataType, VectorDataType> VectorDataTransformType; -int otbVectorDataTransformFilterNew (int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - VectorDataTransformType::Pointer transformFilter = VectorDataTransformType::New(); - return EXIT_SUCCESS; -} - int otbVectorDataTransformFilter (int itkNotUsed(argc), char * argv[]) { typedef otb::VectorImage<double, 2> ImageType; diff --git a/Modules/Filtering/Statistics/test/otbConcatenateSampleListFilter.cxx b/Modules/Filtering/Statistics/test/otbConcatenateSampleListFilter.cxx index b089928fadd60b90975e76470a34419cdb898912..74ab3bdf800fde5ecb2ef6e00a164958fe312d71 100644 --- a/Modules/Filtering/Statistics/test/otbConcatenateSampleListFilter.cxx +++ b/Modules/Filtering/Statistics/test/otbConcatenateSampleListFilter.cxx @@ -30,12 +30,6 @@ typedef itk::Statistics::ListSample<DoubleSampleType> DoubleSampleListType; typedef otb::Statistics::ConcatenateSampleListFilter<DoubleSampleListType> ConcatenateFilterType; -int otbConcatenateSampleListFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - ConcatenateFilterType::Pointer instance = ConcatenateFilterType::New(); - - return EXIT_SUCCESS; -} int otbConcatenateSampleListFilter(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Filtering/Statistics/test/otbGaussianAdditiveNoiseSampleListFilter.cxx b/Modules/Filtering/Statistics/test/otbGaussianAdditiveNoiseSampleListFilter.cxx index 4bb03a7c9963eb49504ac03e0a5a3357f6d3d719..69ed37c22bf22f556753befad5bd42415b0927ca 100644 --- a/Modules/Filtering/Statistics/test/otbGaussianAdditiveNoiseSampleListFilter.cxx +++ b/Modules/Filtering/Statistics/test/otbGaussianAdditiveNoiseSampleListFilter.cxx @@ -34,11 +34,6 @@ typedef otb::Statistics::GaussianAdditiveNoiseSampleListFilter <FloatSampleListType, DoubleSampleListType> GaussianFilterType; -int otbGaussianAdditiveNoiseSampleListFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - GaussianFilterType::Pointer filter = GaussianFilterType::New(); - return EXIT_SUCCESS; -} int otbGaussianAdditiveNoiseSampleListFilter(int argc, char * argv[]) { diff --git a/Modules/Filtering/Statistics/test/otbListSampleGeneratorTest.cxx b/Modules/Filtering/Statistics/test/otbListSampleGeneratorTest.cxx index 9aa8097bfb5b871aeaacefd2d525d387d4481e08..7ebb5c8cfe2155d390aa73cee930c2927eb53e10 100644 --- a/Modules/Filtering/Statistics/test/otbListSampleGeneratorTest.cxx +++ b/Modules/Filtering/Statistics/test/otbListSampleGeneratorTest.cxx @@ -27,17 +27,6 @@ #include "otbListSampleGenerator.h" -int otbListSampleGeneratorNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef otb::VectorImage<float, 2> ImageType; - typedef otb::VectorData<double, 2> VectorDataType; - typedef otb::ListSampleGenerator<ImageType, VectorDataType> ListSampleGeneratorType; - ListSampleGeneratorType::Pointer generator = ListSampleGeneratorType::New(); - - std::cout << generator << std::endl; - - return EXIT_SUCCESS; -} int otbListSampleGenerator(int argc, char* argv[]) { diff --git a/Modules/Filtering/Statistics/test/otbListSampleToBalancedListSampleFilter.cxx b/Modules/Filtering/Statistics/test/otbListSampleToBalancedListSampleFilter.cxx index e11ac632892534bd00a6c10335ed315e8ed36de0..2c2565256a47231ac7efe756471a6c4d959a59cc 100644 --- a/Modules/Filtering/Statistics/test/otbListSampleToBalancedListSampleFilter.cxx +++ b/Modules/Filtering/Statistics/test/otbListSampleToBalancedListSampleFilter.cxx @@ -38,11 +38,6 @@ typedef otb::Statistics::ListSampleToBalancedListSampleFilter <FloatSampleListType, IntegerSampleListType, DoubleSampleListType> BalancingFilterType; -int otbListSampleToBalancedListSampleFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - BalancingFilterType::Pointer filter = BalancingFilterType::New(); - return EXIT_SUCCESS; -} int otbListSampleToBalancedListSampleFilter(int argc, char * argv[]) { diff --git a/Modules/Filtering/Statistics/test/otbProjectiveProjection.cxx b/Modules/Filtering/Statistics/test/otbProjectiveProjection.cxx index 8c5ce355605d4bdb0b18441aa7193c4c5eef6ed1..8d9354b5f451695fb7fe565b06be815735fbc7de 100644 --- a/Modules/Filtering/Statistics/test/otbProjectiveProjection.cxx +++ b/Modules/Filtering/Statistics/test/otbProjectiveProjection.cxx @@ -47,12 +47,6 @@ typedef otb::StreamingStatisticsImageFilter<ImageType> StreamingStatisticsImageF typedef StreamingStatisticsVectorImageFilterType::MatrixType MatrixType; -int otbProjectiveProjectionNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - ProjectiveProjectionImageFilterType::Pointer filter = ProjectiveProjectionImageFilterType::New(); - std::cout << filter << std::endl; - return EXIT_SUCCESS; -} int otbProjectiveProjectionTestHighSNR(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Filtering/Statistics/test/otbShiftScaleSampleListFilter.cxx b/Modules/Filtering/Statistics/test/otbShiftScaleSampleListFilter.cxx index 6e4f25677861f8f385f50efa71925e6b68e17061..bb9d44d2b724b24e40829854204b17a40e189953 100644 --- a/Modules/Filtering/Statistics/test/otbShiftScaleSampleListFilter.cxx +++ b/Modules/Filtering/Statistics/test/otbShiftScaleSampleListFilter.cxx @@ -35,12 +35,6 @@ typedef itk::Statistics::ListSample<FloatSampleType> FloatSampleListType; typedef otb::Statistics::ShiftScaleSampleListFilter<FloatSampleListType, DoubleSampleListType> ShiftScaleFilterType; -int otbShiftScaleSampleListFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - ShiftScaleFilterType::Pointer instance = ShiftScaleFilterType::New(); - - return EXIT_SUCCESS; -} int otbShiftScaleSampleListFilter(int argc, char * argv[]) { diff --git a/Modules/Filtering/Statistics/test/otbStreamingCompareImageFilter.cxx b/Modules/Filtering/Statistics/test/otbStreamingCompareImageFilter.cxx index 69bdfbd9a35a9dc0910f4be2a4e4686e136e2342..45ff54a1c969a6932898c7b51f9470f8aa01463b 100644 --- a/Modules/Filtering/Statistics/test/otbStreamingCompareImageFilter.cxx +++ b/Modules/Filtering/Statistics/test/otbStreamingCompareImageFilter.cxx @@ -27,21 +27,6 @@ #include <fstream> #include "otbStreamingTraits.h" -int otbStreamingCompareImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - const unsigned int Dimension = 2; - typedef unsigned char PixelType; - - typedef otb::Image<PixelType, Dimension> ImageType; - typedef otb::StreamingCompareImageFilter<ImageType> StreamingCompareImageFilterType; - - // Instantiating object - StreamingCompareImageFilterType::Pointer filter = StreamingCompareImageFilterType::New(); - - std::cout << filter << std::endl; - - return EXIT_SUCCESS; -} int otbStreamingCompareImageFilter(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Filtering/Statistics/test/otbStreamingHistogramVectorImageFilter.cxx b/Modules/Filtering/Statistics/test/otbStreamingHistogramVectorImageFilter.cxx index fed119904237886e6093714d01817bc5dbebf93d..f5f9262988d3781e52f7decb19a70196a5371a69 100644 --- a/Modules/Filtering/Statistics/test/otbStreamingHistogramVectorImageFilter.cxx +++ b/Modules/Filtering/Statistics/test/otbStreamingHistogramVectorImageFilter.cxx @@ -33,15 +33,6 @@ typedef itk::Statistics::Histogram< MeasurementType > Histogram; typedef otb::ObjectList< Histogram > HistogramList; -int otbStreamingHistogramVectorImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - - SHVIFType::Pointer SHVIFFilter = SHVIFType::New(); - - std::cout << SHVIFFilter << std::endl; - - return EXIT_SUCCESS; -} int otbStreamingHistogramVectorImageFilterTest(int itkNotUsed(argc), char * itkNotUsed(argv) []) { diff --git a/Modules/Filtering/VectorDataManipulation/test/otbConcatenateVectorDataFilter.cxx b/Modules/Filtering/VectorDataManipulation/test/otbConcatenateVectorDataFilter.cxx index 876adf4f726dd88562b4b4e95bb2ac49c8209603..15dc24398650c9fb5d5677fe39d7ec38b8a5e563 100644 --- a/Modules/Filtering/VectorDataManipulation/test/otbConcatenateVectorDataFilter.cxx +++ b/Modules/Filtering/VectorDataManipulation/test/otbConcatenateVectorDataFilter.cxx @@ -34,12 +34,6 @@ typedef otb::VectorDataFileReader<VectorDataType> ReaderType; typedef otb::VectorDataFileWriter<VectorDataType> WriterType; typedef otb::ConcatenateVectorDataFilter<VectorDataType> ConcatenateFilterType; -int otbConcatenateVectorDataFilterNew (int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - ConcatenateFilterType::Pointer concatenate = ConcatenateFilterType::New(); - return EXIT_SUCCESS; -} - int otbConcatenateVectorDataFilter (int argc, char * argv[]) { // Parse command line parameters diff --git a/Modules/Filtering/VectorDataManipulation/test/otbDBOverlapDataNodeFeatureFunction.cxx b/Modules/Filtering/VectorDataManipulation/test/otbDBOverlapDataNodeFeatureFunction.cxx index 19328d8d2a2b27adf4c7346b4e36df8f2f122297..091ff84e6e40078c7de32211091fbfe8bdb488a4 100644 --- a/Modules/Filtering/VectorDataManipulation/test/otbDBOverlapDataNodeFeatureFunction.cxx +++ b/Modules/Filtering/VectorDataManipulation/test/otbDBOverlapDataNodeFeatureFunction.cxx @@ -26,19 +26,6 @@ #include "otbVectorDataFileReader.h" #include "otbVectorDataFileWriter.h" -int otbDBOverlapDataNodeFeatureFunctionNew(int itkNotUsed(argc), char* itkNotUsed(argv) []) -{ - typedef double CoordRepType; - typedef double PrecisionType; - typedef otb::DBOverlapDataNodeFeatureFunction<CoordRepType, PrecisionType> - DataNodeFeaturefunctionType; - - DataNodeFeaturefunctionType::Pointer DBOverlapFeature = DataNodeFeaturefunctionType::New(); - - std::cout << DBOverlapFeature<< std::endl; - - return EXIT_SUCCESS; -} int otbDBOverlapDataNodeFeatureFunction(int itkNotUsed(argc), char* argv[]) { diff --git a/Modules/Filtering/VectorDataManipulation/test/otbRadiometryHomogenousWithNeighborhoodDataNodeFeatureFunction.cxx b/Modules/Filtering/VectorDataManipulation/test/otbRadiometryHomogenousWithNeighborhoodDataNodeFeatureFunction.cxx index c97a529e10a7b3b54cd02cb70a91ff381d719862..b3b9eff5e35216f7bf24cedc01b2191081aaa0ac 100644 --- a/Modules/Filtering/VectorDataManipulation/test/otbRadiometryHomogenousWithNeighborhoodDataNodeFeatureFunction.cxx +++ b/Modules/Filtering/VectorDataManipulation/test/otbRadiometryHomogenousWithNeighborhoodDataNodeFeatureFunction.cxx @@ -28,20 +28,6 @@ #include "otbVectorDataFileWriter.h" #include "itkPreOrderTreeIterator.h" -int otbRadiometryHomogenousWithNeighborhoodDataNodeFeatureFunctionNew(int itkNotUsed(argc), char* itkNotUsed(argv) []) -{ - typedef double CoordRepType; - typedef double PrecisionType; - typedef otb::VectorImage<double, 2> ImageType; - typedef otb::RadiometryHomogenousWithNeighborhoodDataNodeFeatureFunction<ImageType, CoordRepType, PrecisionType> - DataNodeFeaturefunctionType; - - DataNodeFeaturefunctionType::Pointer featureFunction = DataNodeFeaturefunctionType::New(); - - std::cout << featureFunction << std::endl; - - return EXIT_SUCCESS; -} int otbRadiometryHomogenousWithNeighborhoodDataNodeFeatureFunction(int itkNotUsed(argc), char* argv[]) { diff --git a/Modules/Filtering/VectorDataManipulation/test/otbVectorDataToRandomLineGenerator.cxx b/Modules/Filtering/VectorDataManipulation/test/otbVectorDataToRandomLineGenerator.cxx index 181dbb11a20f91d0b98f91cdfb9469ea2d8db97d..30ad67f6a16ef2d5390ba00774507025f08fe0cd 100644 --- a/Modules/Filtering/VectorDataManipulation/test/otbVectorDataToRandomLineGenerator.cxx +++ b/Modules/Filtering/VectorDataManipulation/test/otbVectorDataToRandomLineGenerator.cxx @@ -24,18 +24,6 @@ #include "otbVectorDataFileWriter.h" #include "otbVectorDataToRandomLineGenerator.h" -int otbVectorDataToRandomLineGeneratorNew(int itkNotUsed(argc), char* itkNotUsed(argv) []) -{ - typedef otb::VectorData<> VectorDataType; - typedef otb::VectorDataToRandomLineGenerator<VectorDataType> GeneratorType; - - // instantiation - GeneratorType::Pointer generator = GeneratorType::New(); - - std::cout << generator << std::endl; - - return EXIT_SUCCESS; -} int otbVectorDataToRandomLineGenerator(int itkNotUsed(argc), char* argv[]) { diff --git a/Modules/Filtering/VectorDataManipulation/test/otbVectorDataToSpecificDescriptionFilterBase.cxx b/Modules/Filtering/VectorDataManipulation/test/otbVectorDataToSpecificDescriptionFilterBase.cxx index 596c4484b5d3b72cd127ca4b9eb19a1eb9639b83..13407bbe97785c9a2ca2de559a371908eb440bf5 100644 --- a/Modules/Filtering/VectorDataManipulation/test/otbVectorDataToSpecificDescriptionFilterBase.cxx +++ b/Modules/Filtering/VectorDataManipulation/test/otbVectorDataToSpecificDescriptionFilterBase.cxx @@ -24,17 +24,3 @@ #include "otbVectorData.h" -int otbVectorDataToSpecificDescriptionFilterBaseNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef float PrecisionType; - typedef otb::VectorData<PrecisionType> VectorDataType; - typedef otb::VectorDataToSpecificDescriptionFilterBase<VectorDataType> - VectorDataToSpecificDescriptionFilterType; - - VectorDataToSpecificDescriptionFilterType::Pointer filter = - VectorDataToSpecificDescriptionFilterType::New(); - - std::cout<<filter<<std::endl; - - return EXIT_SUCCESS; -} diff --git a/Modules/Fusion/Fuzzy/test/otbFuzzyDescriptorsModelManager.cxx b/Modules/Fusion/Fuzzy/test/otbFuzzyDescriptorsModelManager.cxx index 315fc10fc47b578365b2d80f04464924a6976625..f24ac62631cfa810636f12d6943a4d16caa0ddca 100644 --- a/Modules/Fusion/Fuzzy/test/otbFuzzyDescriptorsModelManager.cxx +++ b/Modules/Fusion/Fuzzy/test/otbFuzzyDescriptorsModelManager.cxx @@ -25,11 +25,6 @@ #include <stdlib.h> #include "itkMacro.h" -int otbFuzzyDescriptorsModelManagerNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - otb::FuzzyDescriptorsModelManager mng; - return EXIT_SUCCESS; -} int otbFuzzyDescriptorsModelManagerTest(int itkNotUsed(argc), char* argv[]) diff --git a/Modules/Hyperspectral/EndmembersExtraction/test/otbVCAImageFilter.cxx b/Modules/Hyperspectral/EndmembersExtraction/test/otbVCAImageFilter.cxx index 369d74ecc952e64227ece32d6c455b15b8d8644e..83b97642869b3934469dd550d75e8f3fffbdbce1 100644 --- a/Modules/Hyperspectral/EndmembersExtraction/test/otbVCAImageFilter.cxx +++ b/Modules/Hyperspectral/EndmembersExtraction/test/otbVCAImageFilter.cxx @@ -35,12 +35,6 @@ typedef otb::VCAImageFilter<VectorImageType> VCAFilterType; typedef otb::ImageFileReader<VectorImageType> ReaderType; typedef otb::ImageFileWriter<VectorImageType> WriterType; -int otbVCAImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - VCAFilterType::Pointer vca = VCAFilterType::New(); - std::cout << vca << std::endl; - return EXIT_SUCCESS; -} int otbVCAImageFilterTestHighSNR(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/IO/Carto/test/otbImageToOSMVectorDataGenerator.cxx b/Modules/IO/Carto/test/otbImageToOSMVectorDataGenerator.cxx index 7fc5f9991e4373da6ca1b9c0b13b1acfe5a45b5d..2f1291139c4bf28b3a8c36f320439f3608dfce6f 100644 --- a/Modules/IO/Carto/test/otbImageToOSMVectorDataGenerator.cxx +++ b/Modules/IO/Carto/test/otbImageToOSMVectorDataGenerator.cxx @@ -38,13 +38,6 @@ typedef otb::ImageFileReader<ImageType> ReaderType; typedef otb::VectorDataFileWriter<VectorDataType> VectorDataFileWriterType; -int otbImageToOSMVectorDataGeneratorNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - FilterType::Pointer vdgenerator = FilterType::New(); - - - return EXIT_SUCCESS; -} int otbImageToOSMVectorDataGenerator(int argc, char * argv[]) diff --git a/Modules/IO/Carto/test/otbOSMDataToVectorDataTests.cxx b/Modules/IO/Carto/test/otbOSMDataToVectorDataTests.cxx index 580bfee58f0925ac0e54f36437b6a5d6cbc662da..8e646f60c6e5c48b3e4cdfb9fc8c0caf30eb9eaf 100644 --- a/Modules/IO/Carto/test/otbOSMDataToVectorDataTests.cxx +++ b/Modules/IO/Carto/test/otbOSMDataToVectorDataTests.cxx @@ -27,13 +27,6 @@ typedef otb::OSMDataToVectorDataGenerator FilterType; typedef otb::VectorDataFileWriter<FilterType::VectorDataType> VectorDataFileWriterType; -int otbOSMToVectorDataGeneratorNew (int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - FilterType::Pointer filter = FilterType::New(); - - return EXIT_SUCCESS; -} - int otbOSMToVectorDataGeneratorTest (int itkNotUsed(argc), char * argv[]) { FilterType::Pointer filter = FilterType::New(); diff --git a/Modules/IO/IOGDAL/test/otbGDALOverviewsBuilder.cxx b/Modules/IO/IOGDAL/test/otbGDALOverviewsBuilder.cxx index f2dd4836ec8182649bde46b23061d53d763f9a54..0209a1aa8ff00abfdef7e0580093f9d53e09eef1 100644 --- a/Modules/IO/IOGDAL/test/otbGDALOverviewsBuilder.cxx +++ b/Modules/IO/IOGDAL/test/otbGDALOverviewsBuilder.cxx @@ -25,15 +25,6 @@ using namespace otb; -int otbGDALOverviewsBuilderNew(int itkNotUsed(argc), char* itkNotUsed(argv) []) -{ - typedef otb::GDALOverviewsBuilder GDALOverviewsBuilderType; - GDALOverviewsBuilderType::Pointer object = GDALOverviewsBuilderType::New(); - - std::cout << object << std::endl; - - return EXIT_SUCCESS; -} int otbGDALOverviewsBuilder(int itkNotUsed(argc), char* argv[]) { diff --git a/Modules/IO/IOTileMap/test/otbTileMapImageIOHelperTest.cxx b/Modules/IO/IOTileMap/test/otbTileMapImageIOHelperTest.cxx index 10589a0a54739414cfae1fcf10947e5c104fe584..e6ca622d96906418b0910ab2b0606ba5f9ecf519 100644 --- a/Modules/IO/IOTileMap/test/otbTileMapImageIOHelperTest.cxx +++ b/Modules/IO/IOTileMap/test/otbTileMapImageIOHelperTest.cxx @@ -22,13 +22,6 @@ #include <fstream> #include "otbTileMapImageIOHelper.h" -int otbTileMapImageIOHelperNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - - otb::TileMapImageIOHelper::Pointer myTileMapImageIOHelper; - myTileMapImageIOHelper = otb::TileMapImageIOHelper::New(); - return EXIT_SUCCESS; -} int otbTileMapImageIOHelperTest(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/IO/ImageIO/test/otbComplexImageTests.cxx b/Modules/IO/ImageIO/test/otbComplexImageTests.cxx index 78042bd620eac33b9306222e1b8dc4ed64705f18..9822b0444da5327c1a59a1e41ac06e256b003c33 100644 --- a/Modules/IO/ImageIO/test/otbComplexImageTests.cxx +++ b/Modules/IO/ImageIO/test/otbComplexImageTests.cxx @@ -30,15 +30,6 @@ #include "otbVectorImage.h" #include "otbImageFileReader.h" -int otbVectorImageComplexNew(int itkNotUsed(argc), char* itkNotUsed(argv) []) -{ - typedef std::complex<float> PixelType; - typedef otb::VectorImage<PixelType, 2> ImageType; - ImageType::Pointer image = ImageType::New(); - image->Initialize(); - - return EXIT_SUCCESS; -} template<class InternalType> diff --git a/Modules/IO/KMZWriter/test/otbKmzProductWriter.cxx b/Modules/IO/KMZWriter/test/otbKmzProductWriter.cxx index 01dfac92d2fe0ae12cce6c4dae78e867aecc26e7..6ebc4c8872c9b608a1415f4b4855a13cfcc32a3e 100644 --- a/Modules/IO/KMZWriter/test/otbKmzProductWriter.cxx +++ b/Modules/IO/KMZWriter/test/otbKmzProductWriter.cxx @@ -33,11 +33,6 @@ typedef GCPsToSensorModelFilterType::Point2DType Point2DType; typedef GCPsToSensorModelFilterType::Point3DType Point3DType; -int otbKmzProductWriterNew(int itkNotUsed(argc), char* itkNotUsed(argv) []) -{ - KmzProductWriterType::Pointer kmzWriter = KmzProductWriterType::New(); - return EXIT_SUCCESS; -} int otbKmzProductWriter(int argc, char* argv[]) { diff --git a/Modules/Learning/DempsterShafer/test/otbConfusionMatrixToMassOfBeliefTest.cxx b/Modules/Learning/DempsterShafer/test/otbConfusionMatrixToMassOfBeliefTest.cxx index 09e6c90d5025bbcc36b8640a87d12e3dbe46a044..01d64a9b2286618fc22dc63f830b1e51308a9cbd 100644 --- a/Modules/Learning/DempsterShafer/test/otbConfusionMatrixToMassOfBeliefTest.cxx +++ b/Modules/Learning/DempsterShafer/test/otbConfusionMatrixToMassOfBeliefTest.cxx @@ -23,35 +23,6 @@ #include "otbConfusionMatrixToMassOfBelief.h" -int otbConfusionMatrixToMassOfBeliefNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef unsigned long ConfusionMatrixEltType; - typedef itk::VariableSizeMatrix<ConfusionMatrixEltType> ConfusionMatrixType; - typedef int LabelType; - - // filter types - typedef otb::ConfusionMatrixToMassOfBelief<ConfusionMatrixType, LabelType> - ConfusionMatrixToMassOfBelief2TemplatesType; - typedef otb::ConfusionMatrixToMassOfBelief<ConfusionMatrixType> ConfusionMatrixToMassOfBelief1TemplateType; - typedef otb::ConfusionMatrixToMassOfBelief<> ConfusionMatrixToMassOfBelief0TemplateType; - - // filters - ConfusionMatrixToMassOfBelief2TemplatesType::Pointer - confusionMatrixToMassOfBelief2Templates = ConfusionMatrixToMassOfBelief2TemplatesType::New(); - ConfusionMatrixToMassOfBelief1TemplateType::Pointer - confusionMatrixToMassOfBelief1Template = ConfusionMatrixToMassOfBelief1TemplateType::New(); - ConfusionMatrixToMassOfBelief0TemplateType::Pointer - confusionMatrixToMassOfBelief0Template = ConfusionMatrixToMassOfBelief0TemplateType::New(); - - std::cout << confusionMatrixToMassOfBelief2Templates << std::endl; - std::cout << std::endl; - std::cout << confusionMatrixToMassOfBelief1Template << std::endl; - std::cout << std::endl; - std::cout << confusionMatrixToMassOfBelief0Template << std::endl; - std::cout << std::endl; - - return EXIT_SUCCESS; -} int otbConfusionMatrixToMassOfBeliefTest(int itkNotUsed(argc), char* argv[]) diff --git a/Modules/Learning/DempsterShafer/test/otbDSFusionOfClassifiersImageFilterTest.cxx b/Modules/Learning/DempsterShafer/test/otbDSFusionOfClassifiersImageFilterTest.cxx index 9958e8d9023dab017170bde733a3c552775df98a..7d971c8d1e40f4140614c650664bd647dfdd8ed9 100644 --- a/Modules/Learning/DempsterShafer/test/otbDSFusionOfClassifiersImageFilterTest.cxx +++ b/Modules/Learning/DempsterShafer/test/otbDSFusionOfClassifiersImageFilterTest.cxx @@ -158,33 +158,6 @@ int CSVConfusionMatrixFileReader(const std::string fileName, MapOfClassesType &m -int otbDSFusionOfClassifiersImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - const unsigned int Dimension = 2; - - typedef otb::VectorImage<PixelType, Dimension> VectorImageType; - typedef otb::Image<PixelType, Dimension> OutputImageType; - typedef otb::Image<unsigned int, Dimension> MaskType; - - // filter types - typedef otb::DSFusionOfClassifiersImageFilter<VectorImageType, OutputImageType, MaskType> - DSFusionOfClassifiersImageFilter3TemplatesType; - typedef otb::DSFusionOfClassifiersImageFilter<VectorImageType, OutputImageType> - DSFusionOfClassifiersImageFilter2TemplatesType; - - // filters - DSFusionOfClassifiersImageFilter3TemplatesType::Pointer - dsFusionOfClassifiersImageFilter3Templates = DSFusionOfClassifiersImageFilter3TemplatesType::New(); - DSFusionOfClassifiersImageFilter2TemplatesType::Pointer - dsFusionOfClassifiersImageFilter2Templates = DSFusionOfClassifiersImageFilter2TemplatesType::New(); - - std::cout << dsFusionOfClassifiersImageFilter3Templates << std::endl; - std::cout << std::endl; - std::cout << dsFusionOfClassifiersImageFilter2Templates << std::endl; - std::cout << std::endl; - - return EXIT_SUCCESS; -} diff --git a/Modules/Learning/DempsterShafer/test/otbStandardDSCostFunction.cxx b/Modules/Learning/DempsterShafer/test/otbStandardDSCostFunction.cxx index bdcd2e85ed05b1918b18ffd12e6aea84e0c77d11..a009df637cdeb4267adbbb11b1134af02f4f2f16 100644 --- a/Modules/Learning/DempsterShafer/test/otbStandardDSCostFunction.cxx +++ b/Modules/Learning/DempsterShafer/test/otbStandardDSCostFunction.cxx @@ -23,18 +23,3 @@ #include "otbStandardDSCostFunction.h" -int otbStandardDSCostFunctionNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef double PrecisionType; - typedef otb::VectorData<PrecisionType> VectorDataType; - typedef otb::VectorDataToDSValidatedVectorDataFilter<VectorDataType, PrecisionType> - VectorDataValidationFilterType; - typedef otb::StandardDSCostFunction<VectorDataValidationFilterType> - CostFunctionType; - - CostFunctionType::Pointer costFunction = CostFunctionType::New(); - - std::cout<<costFunction<<std::endl; - - return EXIT_SUCCESS; -} diff --git a/Modules/Learning/DempsterShafer/test/otbVectorDataToDSValidatedVectorDataFilter.cxx b/Modules/Learning/DempsterShafer/test/otbVectorDataToDSValidatedVectorDataFilter.cxx index 27e6ab3c54e08f677d679582e314b1b9a9023e73..a4f1e3b131476132a4d7b4d046e1b0f068dbcdbf 100644 --- a/Modules/Learning/DempsterShafer/test/otbVectorDataToDSValidatedVectorDataFilter.cxx +++ b/Modules/Learning/DempsterShafer/test/otbVectorDataToDSValidatedVectorDataFilter.cxx @@ -25,21 +25,6 @@ #include "otbVectorDataFileReader.h" #include "otbVectorDataFileWriter.h" -int otbVectorDataToDSValidatedVectorDataFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef float PrecisionType; - typedef otb::VectorData<PrecisionType> VectorDataType; - - typedef otb::VectorDataToDSValidatedVectorDataFilter<VectorDataType, PrecisionType> - VectorDataValidationFilterType; - - VectorDataValidationFilterType::Pointer filter = - VectorDataValidationFilterType::New(); - - std::cout << filter << std::endl; - - return EXIT_SUCCESS; -} int otbVectorDataToDSValidatedVectorDataFilter(int itkNotUsed(argc), char* argv[]) { diff --git a/Modules/Learning/DimensionalityReductionLearning/test/otbAutoencoderModelTest.cxx b/Modules/Learning/DimensionalityReductionLearning/test/otbAutoencoderModelTest.cxx index ad3880f6f54b9e4fb234d4d3a9297a2918c02d27..0dddc42111214b3ed13bb1d1cb41aee0e8d7d52a 100644 --- a/Modules/Learning/DimensionalityReductionLearning/test/otbAutoencoderModelTest.cxx +++ b/Modules/Learning/DimensionalityReductionLearning/test/otbAutoencoderModelTest.cxx @@ -26,12 +26,6 @@ typedef otb::AutoencoderModel<double, shark::LogisticNeuron> LogAutoencoderModel typedef LogAutoencoderModel::InputListSampleType InputListSampleType; typedef LogAutoencoderModel::TargetListSampleType TargetListSampleType; -int otbAutoencoderModelNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - LogAutoencoderModel::Pointer model = LogAutoencoderModel::New(); - - return EXIT_SUCCESS; -} int otbAutoencoderModelCanRead(int argc, char * argv []) { diff --git a/Modules/Learning/DimensionalityReductionLearning/test/otbPCAModelTest.cxx b/Modules/Learning/DimensionalityReductionLearning/test/otbPCAModelTest.cxx index 6fe3945e43729e464de4f264025dd78fb8610e16..6c0ff3dbf03b6457d5a2d2fa14e04316e104dc95 100644 --- a/Modules/Learning/DimensionalityReductionLearning/test/otbPCAModelTest.cxx +++ b/Modules/Learning/DimensionalityReductionLearning/test/otbPCAModelTest.cxx @@ -25,12 +25,6 @@ typedef otb::PCAModel<double> PCAModelType; typedef PCAModelType::InputListSampleType InputListSampleType; typedef PCAModelType::TargetListSampleType TargetListSampleType; -int otbPCAModelNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - PCAModelType::Pointer model = PCAModelType::New(); - - return EXIT_SUCCESS; -} int otbPCAModelCanRead(int argc, char * argv []) { diff --git a/Modules/Learning/DimensionalityReductionLearning/test/otbSOMModelTest.cxx b/Modules/Learning/DimensionalityReductionLearning/test/otbSOMModelTest.cxx index 092cac8404ced25b8a106e5ac5037bbaa06ced71..819a3e1e755ae1d85b12a4c581d22cb38b0a6208 100644 --- a/Modules/Learning/DimensionalityReductionLearning/test/otbSOMModelTest.cxx +++ b/Modules/Learning/DimensionalityReductionLearning/test/otbSOMModelTest.cxx @@ -29,15 +29,6 @@ typedef otb::SOMModel<double,5> SOMModel5D; typedef SOMModel2D::InputListSampleType InputListSampleType; typedef SOMModel2D::TargetListSampleType TargetListSampleType; -int otbSOMModelNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - SOMModel2D::Pointer model2D = SOMModel2D::New(); - SOMModel3D::Pointer model3D = SOMModel3D::New(); - SOMModel4D::Pointer model4D = SOMModel4D::New(); - SOMModel5D::Pointer model5D = SOMModel5D::New(); - - return EXIT_SUCCESS; -} int otbSOMModelCanRead(int argc, char * argv []) { diff --git a/Modules/Learning/LearningBase/test/otbGaussianModelComponent.cxx b/Modules/Learning/LearningBase/test/otbGaussianModelComponent.cxx index 1ce190b800c546c5320d88fc482f1c3b5d40368a..c01b1e7fc9c02f98651f1cfd01717748d19ed795 100644 --- a/Modules/Learning/LearningBase/test/otbGaussianModelComponent.cxx +++ b/Modules/Learning/LearningBase/test/otbGaussianModelComponent.cxx @@ -24,15 +24,3 @@ #include "otbGaussianModelComponent.h" #include "itkVariableLengthVector.h" -int otbGaussianModelComponentNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - - typedef itk::Statistics::ListSample<itk::VariableLengthVector<double> > SampleType; - typedef itk::Statistics::Subsample< SampleType > ClassSampleType; - typedef otb::Statistics::GaussianModelComponent<ClassSampleType> GaussianModelType; - - GaussianModelType::Pointer filter = GaussianModelType::New(); - - return EXIT_SUCCESS; - -} diff --git a/Modules/Learning/Markov/test/otbMRFEnergyFisherClassification.cxx b/Modules/Learning/Markov/test/otbMRFEnergyFisherClassification.cxx index d79ebe4ccd0f03312cadbad2675330c4b85a3030..0b346a3f0ce72c63534413fa1a7f6caf1dbee4a1 100644 --- a/Modules/Learning/Markov/test/otbMRFEnergyFisherClassification.cxx +++ b/Modules/Learning/Markov/test/otbMRFEnergyFisherClassification.cxx @@ -24,21 +24,6 @@ #include "otbImage.h" #include <fstream> -int otbMRFEnergyFisherClassificationNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef double PixelTypeInput; - typedef int PixelTypeLabel; - typedef otb::Image<PixelTypeInput, 2> ImageType; - typedef otb::Image<PixelTypeLabel, 2> LabelType; - - typedef otb::MRFEnergyFisherClassification<ImageType, LabelType> MRFFisherType; - - MRFFisherType::Pointer classif = MRFFisherType::New(); - - std::cout << classif << std::endl; - - return EXIT_SUCCESS; -} int otbMRFEnergyFisherClassification(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Learning/Sampling/test/otbImageSampleExtractorFilterTest.cxx b/Modules/Learning/Sampling/test/otbImageSampleExtractorFilterTest.cxx index 414a7730276e95d4f41392d04c458d9f3af80035..a9c1d2a00ea9defd1a200c210e2c7979260f33f1 100644 --- a/Modules/Learning/Sampling/test/otbImageSampleExtractorFilterTest.cxx +++ b/Modules/Learning/Sampling/test/otbImageSampleExtractorFilterTest.cxx @@ -26,15 +26,6 @@ #include "itkPhysicalPointImageSource.h" #include <fstream> -int otbImageSampleExtractorFilterNew(int itkNotUsed(argc), char* itkNotUsed(argv) []) -{ - typedef otb::VectorImage<float> InputImageType; - typedef otb::ImageSampleExtractorFilter<InputImageType> FilterType; - - FilterType::Pointer filter = FilterType::New(); - std::cout << filter << std::endl; - return EXIT_SUCCESS; -} int otbImageSampleExtractorFilter(int argc, char* argv[]) { diff --git a/Modules/Learning/Sampling/test/otbOGRDataToClassStatisticsFilterTest.cxx b/Modules/Learning/Sampling/test/otbOGRDataToClassStatisticsFilterTest.cxx index 47da4c0553e90b795d09f6d8f959033573b1429e..9b1f37bd657a8d7a234e1ba5024128e74b36e9a0 100644 --- a/Modules/Learning/Sampling/test/otbOGRDataToClassStatisticsFilterTest.cxx +++ b/Modules/Learning/Sampling/test/otbOGRDataToClassStatisticsFilterTest.cxx @@ -24,16 +24,6 @@ #include "otbImage.h" #include <fstream> -int otbOGRDataToClassStatisticsFilterNew(int itkNotUsed(argc), char* itkNotUsed(argv) []) -{ - typedef otb::VectorImage<float> InputImageType; - typedef otb::Image<unsigned char> MaskImageType; - typedef otb::OGRDataToClassStatisticsFilter<InputImageType,MaskImageType> FilterType; - - FilterType::Pointer filter = FilterType::New(); - std::cout << filter << std::endl; - return EXIT_SUCCESS; -} int otbOGRDataToClassStatisticsFilter(int argc, char* argv[]) { diff --git a/Modules/Learning/Sampling/test/otbOGRDataToSamplePositionFilterTest.cxx b/Modules/Learning/Sampling/test/otbOGRDataToSamplePositionFilterTest.cxx index 91994335eacc01e13db9269632815a368b59ffe7..c3fcad89a5afab1121751c26f46077b1ab29c964 100644 --- a/Modules/Learning/Sampling/test/otbOGRDataToSamplePositionFilterTest.cxx +++ b/Modules/Learning/Sampling/test/otbOGRDataToSamplePositionFilterTest.cxx @@ -132,16 +132,6 @@ int TestPositionContainers(otb::ogr::DataSource *output, otb::ogr::DataSource *b return EXIT_SUCCESS; } -int otbOGRDataToSamplePositionFilterNew(int itkNotUsed(argc), char* itkNotUsed(argv) []) -{ - typedef otb::VectorImage<float> InputImageType; - typedef otb::Image<unsigned char> MaskImageType; - typedef otb::OGRDataToSamplePositionFilter<InputImageType , MaskImageType> FilterType; - - FilterType::Pointer filter = FilterType::New(); - std::cout << filter << std::endl; - return EXIT_SUCCESS; -} int otbOGRDataToSamplePositionFilter(int argc, char* argv[]) { diff --git a/Modules/Learning/Sampling/test/otbSamplingRateCalculatorListTest.cxx b/Modules/Learning/Sampling/test/otbSamplingRateCalculatorListTest.cxx index e3e2a32239864dfd096792f3c0e59eb79f418d72..3db59b25374251b57b4ed39f2fe1ee563a928321 100644 --- a/Modules/Learning/Sampling/test/otbSamplingRateCalculatorListTest.cxx +++ b/Modules/Learning/Sampling/test/otbSamplingRateCalculatorListTest.cxx @@ -25,14 +25,6 @@ #include "itkVariableLengthVector.h" #include <fstream> -int otbSamplingRateCalculatorListNew(int itkNotUsed(argc), char* itkNotUsed(argv) []) -{ - typedef otb::SamplingRateCalculatorList RateCalculatorListType; - - RateCalculatorListType::Pointer rateCalculator = RateCalculatorListType::New(); - std::cout << rateCalculator << std::endl; - return EXIT_SUCCESS; -} int otbSamplingRateCalculatorList(int itkNotUsed(argc), char* argv[]) { diff --git a/Modules/Learning/Sampling/test/otbSamplingRateCalculatorTest.cxx b/Modules/Learning/Sampling/test/otbSamplingRateCalculatorTest.cxx index 9ad4ffb586bb6d1ea2b458f8b6e21b6b2406bb63..24dc6e655eb1a90e96e3ea429c7aa8d4a09ff1f5 100644 --- a/Modules/Learning/Sampling/test/otbSamplingRateCalculatorTest.cxx +++ b/Modules/Learning/Sampling/test/otbSamplingRateCalculatorTest.cxx @@ -24,14 +24,6 @@ #include "otbStatisticsXMLFileReader.h" #include "itkVariableLengthVector.h" -int otbSamplingRateCalculatorNew(int itkNotUsed(argc), char* itkNotUsed(argv) []) -{ - typedef otb::SamplingRateCalculator RateCalculatorype; - - RateCalculatorype::Pointer rateCalculator = RateCalculatorype::New(); - std::cout << rateCalculator << std::endl; - return EXIT_SUCCESS; -} int otbSamplingRateCalculator(int itkNotUsed(argc), char* argv[]) { diff --git a/Modules/Learning/Supervised/test/otbConfusionMatrixCalculatorTest.cxx b/Modules/Learning/Supervised/test/otbConfusionMatrixCalculatorTest.cxx index 3c1102d8bffe4ec042085107763adb45aaa2c843..ec824bc45e7eaa3c2a00876546b493590f9658ef 100644 --- a/Modules/Learning/Supervised/test/otbConfusionMatrixCalculatorTest.cxx +++ b/Modules/Learning/Supervised/test/otbConfusionMatrixCalculatorTest.cxx @@ -22,22 +22,6 @@ #include "itkListSample.h" #include "otbConfusionMatrixCalculator.h" -int otbConfusionMatrixCalculatorNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - - typedef itk::VariableLengthVector<int> PLabelType; - typedef itk::Statistics::ListSample<PLabelType> PListLabelType; - typedef itk::FixedArray<int, 1> RLabelType; - typedef itk::Statistics::ListSample<RLabelType> RListLabelType; - typedef otb::ConfusionMatrixCalculator<RListLabelType, - PListLabelType> CalculatorType; - - CalculatorType::Pointer calculator = CalculatorType::New(); - - std::cout << calculator << std::endl; - - return EXIT_SUCCESS; -} int otbConfusionMatrixCalculatorSetListSamples(int argc, char* argv[]) { diff --git a/Modules/Learning/Supervised/test/otbConfusionMatrixMeasurementsTest.cxx b/Modules/Learning/Supervised/test/otbConfusionMatrixMeasurementsTest.cxx index 1b8acc872d11a802e11b5a3bf3c7577deb8cbb81..a56118b707c78a5043a230a435b0d3739f19a6ec 100644 --- a/Modules/Learning/Supervised/test/otbConfusionMatrixMeasurementsTest.cxx +++ b/Modules/Learning/Supervised/test/otbConfusionMatrixMeasurementsTest.cxx @@ -145,34 +145,6 @@ int CSVConfusionMatrixFileReader(const std::string fileName, MapOfClassesType &m -int otbConfusionMatrixMeasurementsNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - /*typedef unsigned long ConfusionMatrixEltType; - typedef itk::VariableSizeMatrix<ConfusionMatrixEltType> ConfusionMatrixType; - typedef unsigned char LabelType; */ - - // filter types - typedef otb::ConfusionMatrixMeasurements<ConfusionMatrixType, ClassLabelType> ConfusionMatrixMeasurements2TemplatesType; - typedef otb::ConfusionMatrixMeasurements<ConfusionMatrixType> ConfusionMatrixMeasurements1TemplateType; - typedef otb::ConfusionMatrixMeasurements<> ConfusionMatrixMeasurements0TemplateType; - - // filters - ConfusionMatrixMeasurements2TemplatesType::Pointer - confusionMatrixMeasurements2Templates = ConfusionMatrixMeasurements2TemplatesType::New(); - ConfusionMatrixMeasurements1TemplateType::Pointer - confusionMatrixMeasurements1Template = ConfusionMatrixMeasurements1TemplateType::New(); - ConfusionMatrixMeasurements0TemplateType::Pointer - confusionMatrixMeasurements0Template = ConfusionMatrixMeasurements0TemplateType::New(); - - std::cout << confusionMatrixMeasurements2Templates << std::endl; - std::cout << std::endl; - std::cout << confusionMatrixMeasurements1Template << std::endl; - std::cout << std::endl; - std::cout << confusionMatrixMeasurements0Template << std::endl; - std::cout << std::endl; - - return EXIT_SUCCESS; -} int otbConfusionMatrixMeasurementsTest(int itkNotUsed(argc), char* itkNotUsed(argv) []) diff --git a/Modules/Learning/Supervised/test/otbImageClassificationFilter.cxx b/Modules/Learning/Supervised/test/otbImageClassificationFilter.cxx index 7f7ad85ad9b0c5d370fcd45ab3323c60b15caa9e..76a31e2e9f262b0cce77044aebd359f5d7b5de18 100644 --- a/Modules/Learning/Supervised/test/otbImageClassificationFilter.cxx +++ b/Modules/Learning/Supervised/test/otbImageClassificationFilter.cxx @@ -39,11 +39,6 @@ typedef otb::MachineLearningModelFactory<ValueType, LabelType> MachineLearningMo typedef otb::ImageFileReader<ImageType> ReaderType; typedef otb::ImageFileWriter<LabeledImageType> WriterType; -int otbImageClassificationFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - ClassificationFilterType::Pointer filter = ClassificationFilterType::New(); - return EXIT_SUCCESS; -} int otbImageClassificationFilterLoadModel(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Learning/Supervised/test/otbLabelMapClassifier.cxx b/Modules/Learning/Supervised/test/otbLabelMapClassifier.cxx index 094e3e3a23256ad05a6708ccd234469eae5dbeba..e41355b23582af87cfafb6b8df7091b76f228763 100644 --- a/Modules/Learning/Supervised/test/otbLabelMapClassifier.cxx +++ b/Modules/Learning/Supervised/test/otbLabelMapClassifier.cxx @@ -75,11 +75,6 @@ LabelObjectType::Pointer makeTrainingSample(LabelMapType* labelMap, LabelType la return newLabelObject; } -int otbLabelMapClassifierNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - ClassifierType::Pointer classifier = ClassifierType::New(); - return EXIT_SUCCESS; -} int otbLabelMapClassifier(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Learning/Supervised/test/otbSVMMarginSampler.cxx b/Modules/Learning/Supervised/test/otbSVMMarginSampler.cxx index f70bb88332dcd2adbf04ddb7140c63094fb2e916..e004ca02291ca73a142ea617cd88a3739272b106 100644 --- a/Modules/Learning/Supervised/test/otbSVMMarginSampler.cxx +++ b/Modules/Learning/Supervised/test/otbSVMMarginSampler.cxx @@ -27,16 +27,3 @@ #include "otbSVMMarginSampler.h" #include "otbLibSVMMachineLearningModel.h" -int otbSVMMarginSamplerNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef itk::VariableLengthVector<double> SampleType; - typedef itk::Statistics::ListSample<SampleType> SampleListType; - typedef otb::LibSVMMachineLearningModel<double,unsigned int> SVMModelType; - typedef otb::SVMMarginSampler<SampleListType,SVMModelType> MarginSamplerType; - - MarginSamplerType::Pointer marginSampler = MarginSamplerType::New(); - - std::cout << marginSampler << std::endl; - - return EXIT_SUCCESS; -} diff --git a/Modules/Learning/Supervised/test/otbTrainMachineLearningModel.cxx b/Modules/Learning/Supervised/test/otbTrainMachineLearningModel.cxx index 319169c79e0df7439712bf8c591d68a74e94f601..f6d6061df9716031651b781e3d77192822ddbeef 100644 --- a/Modules/Learning/Supervised/test/otbTrainMachineLearningModel.cxx +++ b/Modules/Learning/Supervised/test/otbTrainMachineLearningModel.cxx @@ -50,12 +50,6 @@ typedef otb::ConfusionMatrixCalculator<TargetListSampleType, TargetListSampleTyp #ifdef OTB_USE_LIBSVM #include "otbLibSVMMachineLearningModel.h" -int otbLibSVMMachineLearningModelNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef otb::LibSVMMachineLearningModel<InputValueType, TargetValueType> SVMType; - SVMType::Pointer svmclassifier = SVMType::New(); - return EXIT_SUCCESS; -} int otbLibSVMMachineLearningModel(int argc, char * argv[]) { @@ -139,12 +133,6 @@ int otbLibSVMMachineLearningModel(int argc, char * argv[]) #include "otbGradientBoostedTreeMachineLearningModel.h" #include "otbKNearestNeighborsMachineLearningModel.h" -int otbSVMMachineLearningModelNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef otb::SVMMachineLearningModel<InputValueType,TargetValueType> SVMType; - SVMType::Pointer svmclassifier = SVMType::New(); - return EXIT_SUCCESS; -} int otbSVMMachineLearningModel(int argc, char * argv[]) { @@ -285,12 +273,6 @@ int otbSVMMachineLearningRegressionModel(int argc, char * argv[]) } } -int otbKNearestNeighborsMachineLearningModelNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef otb::KNearestNeighborsMachineLearningModel<InputValueType,TargetValueType> KNearestNeighborsType; - KNearestNeighborsType::Pointer knnclassifier = KNearestNeighborsType::New(); - return EXIT_SUCCESS; -} int otbKNearestNeighborsMachineLearningModel(int argc, char * argv[]) { @@ -362,12 +344,6 @@ int otbKNearestNeighborsMachineLearningModel(int argc, char * argv[]) } } -int otbRandomForestsMachineLearningModelNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef otb::RandomForestsMachineLearningModel<InputValueType,TargetValueType> RandomForestType; - RandomForestType::Pointer rfclassifier = RandomForestType::New(); - return EXIT_SUCCESS; -} int otbRandomForestsMachineLearningModel(int argc, char * argv[]) { @@ -448,12 +424,6 @@ int otbRandomForestsMachineLearningModel(int argc, char * argv[]) } } -int otbBoostMachineLearningModelNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef otb::BoostMachineLearningModel<InputValueType,TargetValueType> BoostType; - BoostType::Pointer classifier = BoostType::New(); - return EXIT_SUCCESS; -} int otbBoostMachineLearningModel(int argc, char * argv[]) { @@ -534,12 +504,6 @@ int otbBoostMachineLearningModel(int argc, char * argv[]) } } -int otbANNMachineLearningModelNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef otb::NeuralNetworkMachineLearningModel<InputValueType, TargetValueType> ANNType; - ANNType::Pointer classifier = ANNType::New(); - return EXIT_SUCCESS; -} int otbANNMachineLearningModel(int argc, char * argv[]) { @@ -624,12 +588,6 @@ int otbANNMachineLearningModel(int argc, char * argv[]) } } -int otbNormalBayesMachineLearningModelNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef otb::NormalBayesMachineLearningModel<InputValueType,TargetValueType> NormalBayesType; - NormalBayesType::Pointer classifier = NormalBayesType::New(); - return EXIT_SUCCESS; -} int otbNormalBayesMachineLearningModel(int argc, char * argv[]) { @@ -701,12 +659,6 @@ int otbNormalBayesMachineLearningModel(int argc, char * argv[]) } } -int otbDecisionTreeMachineLearningModelNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef otb::DecisionTreeMachineLearningModel<InputValueType,TargetValueType> DecisionTreeType; - DecisionTreeType::Pointer classifier = DecisionTreeType::New(); - return EXIT_SUCCESS; -} int otbDecisionTreeMachineLearningModel(int argc, char * argv[]) { @@ -779,12 +731,6 @@ int otbDecisionTreeMachineLearningModel(int argc, char * argv[]) } #ifndef OTB_OPENCV_3 -int otbGradientBoostedTreeMachineLearningModelNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef otb::GradientBoostedTreeMachineLearningModel<InputValueType,TargetValueType> GBTreeType; - GBTreeType::Pointer classifier = GBTreeType::New(); - return EXIT_SUCCESS; -} int otbGradientBoostedTreeMachineLearningModel(int argc, char * argv[]) { @@ -862,12 +808,6 @@ int otbGradientBoostedTreeMachineLearningModel(int argc, char * argv[]) #include <chrono> // If shark is on, then we are using c++11 #include "otbSharkRandomForestsMachineLearningModel.h" -int otbSharkRFMachineLearningModelNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - typedef otb::SharkRandomForestsMachineLearningModel<InputValueType,TargetValueType> SharkRFType; - SharkRFType::Pointer classifier = SharkRFType::New(); - return EXIT_SUCCESS; -} int otbSharkRFMachineLearningModel(int argc, char * argv[]) { diff --git a/Modules/Learning/Unsupervised/test/otbContingencyTableCalculatorTest.cxx b/Modules/Learning/Unsupervised/test/otbContingencyTableCalculatorTest.cxx index 1660c17574e143ef4bd2e0e4101d8992ecb5f52a..25f6e11373df5302404a86c77d49641a1b2976ef 100644 --- a/Modules/Learning/Unsupervised/test/otbContingencyTableCalculatorTest.cxx +++ b/Modules/Learning/Unsupervised/test/otbContingencyTableCalculatorTest.cxx @@ -21,16 +21,6 @@ #include "itkListSample.h" #include "otbContingencyTableCalculator.h" -int otbContingencyTableCalculatorNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - - typedef int ClassLabelType; - typedef otb::ContingencyTableCalculator<ClassLabelType> CalculatorType; - - CalculatorType::Pointer calculator = CalculatorType::New(); - - return EXIT_SUCCESS; -} diff --git a/Modules/Learning/Unsupervised/test/otbTrainMachineLearningUnsupervisedModel.cxx b/Modules/Learning/Unsupervised/test/otbTrainMachineLearningUnsupervisedModel.cxx index a0805c29fb38defb049a9588a26e10167cb5920b..3b309229137dbdc5391dfad66453233aff799f88 100644 --- a/Modules/Learning/Unsupervised/test/otbTrainMachineLearningUnsupervisedModel.cxx +++ b/Modules/Learning/Unsupervised/test/otbTrainMachineLearningUnsupervisedModel.cxx @@ -111,12 +111,6 @@ bool SharkReadDataFile(const std::string & infname, InputListSampleType * sample } -int otbSharkKMeansMachineLearningModelNew(int itkNotUsed( argc ), char *itkNotUsed( argv )[]) -{ - typedef otb::SharkKMeansMachineLearningModel<InputValueType, TargetValueType> SharkRFType; - SharkRFType::Pointer classifier = SharkRFType::New(); - return EXIT_SUCCESS; -} int otbSharkKMeansMachineLearningModelTrain(int argc, char *argv[]) { diff --git a/Modules/Radiometry/Indices/test/otbNDVIDataNodeFeatureFunction.cxx b/Modules/Radiometry/Indices/test/otbNDVIDataNodeFeatureFunction.cxx index 545827b1b8d70600c44b7e71b745b502cd1b0351..fcf9e38db78b80acb545e9e1adc9b84321892411 100644 --- a/Modules/Radiometry/Indices/test/otbNDVIDataNodeFeatureFunction.cxx +++ b/Modules/Radiometry/Indices/test/otbNDVIDataNodeFeatureFunction.cxx @@ -30,20 +30,6 @@ #include "otbVectorDataFileWriter.h" #include "itkPreOrderTreeIterator.h" -int otbNDVIDataNodeFeatureFunctionNew(int itkNotUsed(argc), char* itkNotUsed(argv) []) -{ - typedef double CoordRepType; - typedef double PrecisionType; - typedef otb::VectorImage<double, 2> ImageType; - typedef otb::NDVIDataNodeFeatureFunction<ImageType, CoordRepType, PrecisionType> - NDVIDataNodeFeaturefunctionType; - - NDVIDataNodeFeaturefunctionType::Pointer NDVIFeature = NDVIDataNodeFeaturefunctionType::New(); - - std::cout << NDVIFeature << std::endl; - - return EXIT_SUCCESS; -} int otbNDVIDataNodeFeatureFunction(int itkNotUsed(argc), char* argv[]) { diff --git a/Modules/Radiometry/OpticalCalibration/test/otbAtmosphericRadiativeTermsTest.cxx b/Modules/Radiometry/OpticalCalibration/test/otbAtmosphericRadiativeTermsTest.cxx index 128050a03f77572b188cf65c10cb98c8808f88da..5b1a06e74de31831b5856f762d206da315e26e63 100644 --- a/Modules/Radiometry/OpticalCalibration/test/otbAtmosphericRadiativeTermsTest.cxx +++ b/Modules/Radiometry/OpticalCalibration/test/otbAtmosphericRadiativeTermsTest.cxx @@ -25,26 +25,7 @@ #include "otbAtmosphericRadiativeTerms.h" #include <cstdlib> -int otbAtmosphericRadiativeTermsNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef otb::AtmosphericRadiativeTerms AtmosphericRadiativeTermsType; - - // Instantiating object - AtmosphericRadiativeTermsType::Pointer object = AtmosphericRadiativeTermsType::New(); - - return EXIT_SUCCESS; -} -int otbAtmosphericRadiativeTermsSingleChannelNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef otb::AtmosphericRadiativeTermsSingleChannel AtmosphericRadiativeTermsType; - - // Instantiating object - AtmosphericRadiativeTermsType::Pointer object = AtmosphericRadiativeTermsType::New(); - - std::cout << object << std::endl; - return EXIT_SUCCESS; -} std::ostream& operator<<(std::ostream& os, const otb::AtmosphericRadiativeTerms::DataVectorType& values) { diff --git a/Modules/Radiometry/OpticalCalibration/test/otbReflectanceToSurfaceReflectanceImageFilterTest.cxx b/Modules/Radiometry/OpticalCalibration/test/otbReflectanceToSurfaceReflectanceImageFilterTest.cxx index f2e265b66c35ef179041584b641b8cb6498ab2bb..3d5ca13a7888649f56efdd7a63ba57d3914f3682 100644 --- a/Modules/Radiometry/OpticalCalibration/test/otbReflectanceToSurfaceReflectanceImageFilterTest.cxx +++ b/Modules/Radiometry/OpticalCalibration/test/otbReflectanceToSurfaceReflectanceImageFilterTest.cxx @@ -29,22 +29,6 @@ #include "otbOpticalImageMetadataInterfaceFactory.h" -int otbReflectanceToSurfaceReflectanceImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - const unsigned int Dimension = 2; - typedef double PixelType; - typedef otb::VectorImage<PixelType, Dimension> InputImageType; - - typedef otb::ReflectanceToSurfaceReflectanceImageFilter<InputImageType, - InputImageType> - ReflectanceToSurfaceReflectanceImageFilterType; - - // Instantiating object - ReflectanceToSurfaceReflectanceImageFilterType::Pointer filter - = ReflectanceToSurfaceReflectanceImageFilterType::New(); - - return EXIT_SUCCESS; -} int otbReflectanceToSurfaceReflectanceImageFilterTest(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Radiometry/OpticalCalibration/test/otbSpectralSensitivityReaderTest.cxx b/Modules/Radiometry/OpticalCalibration/test/otbSpectralSensitivityReaderTest.cxx index 1cc824d85c70b8e35e695548be51fd9d85722470..c9cad25d26bbac29023f57bcea67d077289fa2d6 100644 --- a/Modules/Radiometry/OpticalCalibration/test/otbSpectralSensitivityReaderTest.cxx +++ b/Modules/Radiometry/OpticalCalibration/test/otbSpectralSensitivityReaderTest.cxx @@ -26,15 +26,6 @@ using namespace otb; -int otbSpectralSensitivityReaderNew(int itkNotUsed(argc), char* itkNotUsed(argv) []) -{ - - SpectralSensitivityReader::Pointer spectSen = SpectralSensitivityReader::New(); - - std::cout << spectSen << std::endl; - - return EXIT_SUCCESS; -} int otbSpectralSensitivityReaderTest(int itkNotUsed(argc), char* argv[]) { diff --git a/Modules/Radiometry/OpticalCalibration/test/otbWavelengthSpectralBandsTest.cxx b/Modules/Radiometry/OpticalCalibration/test/otbWavelengthSpectralBandsTest.cxx index 72854252ef909d413b4a15b77c6dd1c492b86f97..f1a0c911b68250b4b46e5d9079a1e18a9195aadd 100644 --- a/Modules/Radiometry/OpticalCalibration/test/otbWavelengthSpectralBandsTest.cxx +++ b/Modules/Radiometry/OpticalCalibration/test/otbWavelengthSpectralBandsTest.cxx @@ -23,18 +23,4 @@ using namespace otb; -int otbFilterFunctionValuesNew(int itkNotUsed(argc), char* itkNotUsed(argv) []) -{ - FilterFunctionValues::Pointer spectSen = FilterFunctionValues::New(); - - return EXIT_SUCCESS; -} - -int otbWavelengthSpectralBandsNew(int itkNotUsed(argc), char* itkNotUsed(argv) []) -{ - - WavelengthSpectralBands::Pointer spectSen = WavelengthSpectralBands::New(); - - return EXIT_SUCCESS; -} diff --git a/Modules/Radiometry/Simulation/test/otbSurfaceReflectanceToReflectanceFilterNew.cxx b/Modules/Radiometry/Simulation/test/otbSurfaceReflectanceToReflectanceFilterNew.cxx index 022298a36baf0fe8ebd68b2e41cda5f2b79aa0fe..9fb778abdd9493899f236dc26a045740e7afbe76 100644 --- a/Modules/Radiometry/Simulation/test/otbSurfaceReflectanceToReflectanceFilterNew.cxx +++ b/Modules/Radiometry/Simulation/test/otbSurfaceReflectanceToReflectanceFilterNew.cxx @@ -24,21 +24,6 @@ #include "otbSurfaceReflectanceToReflectanceFilter.h" -int otbSurfaceReflectanceToReflectanceFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - const unsigned int Dimension = 2; - typedef double PixelType; - typedef otb::VectorImage<PixelType, Dimension> ImageType; - typedef otb::SurfaceReflectanceToReflectanceFilter< ImageType, ImageType> SurfaceReflectanceToReflectanceFilterType; - typedef SurfaceReflectanceToReflectanceFilterType::Pointer SurfaceReflectanceToReflectanceFilterPointerType; - - //Instantiation - SurfaceReflectanceToReflectanceFilterPointerType object=SurfaceReflectanceToReflectanceFilterType::New(); - - std::cout << object << std::endl; - - return EXIT_SUCCESS; -} int otbSurfaceReflectanceToReflectanceFilterTest(int argc, char * argv[]) { if ( argc != 7 ) diff --git a/Modules/Registration/DisparityMap/test/otbDisparityMapMedianFilter.cxx b/Modules/Registration/DisparityMap/test/otbDisparityMapMedianFilter.cxx index a120fdf41b52ee8b96e657a7f0c65a3c222a45fc..d7475ed3c8e28391fe32155718aabd153c676990 100644 --- a/Modules/Registration/DisparityMap/test/otbDisparityMapMedianFilter.cxx +++ b/Modules/Registration/DisparityMap/test/otbDisparityMapMedianFilter.cxx @@ -32,13 +32,6 @@ typedef otb::DisparityMapMedianFilter<FloatImageType,FloatImageType,FloatImageType> DisparityMapMedianFilterType; -int otbDisparityMapMedianFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - // Instantiation - DisparityMapMedianFilterType::Pointer filter = DisparityMapMedianFilterType::New(); - - return EXIT_SUCCESS; -} int otbDisparityMapMedianFilter(int argc, char* argv[]) { diff --git a/Modules/Registration/DisparityMap/test/otbDisparityMapTo3DFilter.cxx b/Modules/Registration/DisparityMap/test/otbDisparityMapTo3DFilter.cxx index 61db008a6eefa8f8a6c0b2e95c79b79198fd24ad..ba832e83dbb253d8622fc8f0971bd500cddcd5e6 100644 --- a/Modules/Registration/DisparityMap/test/otbDisparityMapTo3DFilter.cxx +++ b/Modules/Registration/DisparityMap/test/otbDisparityMapTo3DFilter.cxx @@ -34,13 +34,6 @@ typedef otb::DisparityMapTo3DFilter FloatVectorImageType, FloatImageType> StereoFilterType; -int otbDisparityMapTo3DFilterNew(int itkNotUsed(argc), char* itkNotUsed(argv) []) -{ - // Instantiation - StereoFilterType::Pointer filter = StereoFilterType::New(); - - return EXIT_SUCCESS; -} int otbDisparityMapTo3DFilter(int argc, char* argv[]) { diff --git a/Modules/Registration/DisparityMap/test/otbDisparityMapToDEMFilter.cxx b/Modules/Registration/DisparityMap/test/otbDisparityMapToDEMFilter.cxx index d39dd47643f38f9cda3da552a820d285ca1a03d4..2a076a2041ec302d7304e5a881cf269293ff5bba 100644 --- a/Modules/Registration/DisparityMap/test/otbDisparityMapToDEMFilter.cxx +++ b/Modules/Registration/DisparityMap/test/otbDisparityMapToDEMFilter.cxx @@ -47,14 +47,6 @@ typedef otb::DisparityMapToDEMFilter <FloatImageType, FloatVectorImageType> DisparityToElevationFilterType; -int otbDisparityMapToDEMFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - - // Instantiation - DisparityToElevationFilterType::Pointer filter = DisparityToElevationFilterType::New(); - - return EXIT_SUCCESS; -} int otbDisparityMapToDEMFilter(int argc, char* argv[]) { diff --git a/Modules/Registration/DisparityMap/test/otbDisparityTranslateFilter.cxx b/Modules/Registration/DisparityMap/test/otbDisparityTranslateFilter.cxx index b7122751645810448b7878437e4a51c8edb700b7..8240a89954c71ab1a62ef5433d25f11f90165b4e 100644 --- a/Modules/Registration/DisparityMap/test/otbDisparityTranslateFilter.cxx +++ b/Modules/Registration/DisparityMap/test/otbDisparityTranslateFilter.cxx @@ -56,12 +56,6 @@ typedef otb::DisparityTranslateFilter FloatImageType> TranslateFilter; -int otbDisparityTranslateFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - // Instantiation - TranslateFilter::Pointer filter = TranslateFilter::New(); - return EXIT_SUCCESS; -} int otbDisparityTranslateFilter(int argc, char* argv[]) { diff --git a/Modules/Registration/DisparityMap/test/otbMultiDisparityMapTo3DFilter.cxx b/Modules/Registration/DisparityMap/test/otbMultiDisparityMapTo3DFilter.cxx index aac35191433418cb5082ad854a7ccd0352aa526d..455c2e7a0a1511ef1c4e2f9c4395c3b95df14cd7 100644 --- a/Modules/Registration/DisparityMap/test/otbMultiDisparityMapTo3DFilter.cxx +++ b/Modules/Registration/DisparityMap/test/otbMultiDisparityMapTo3DFilter.cxx @@ -34,13 +34,6 @@ typedef otb::MultiDisparityMapTo3DFilter FloatImageType> Multi3DFilterType; -int otbMultiDisparityMapTo3DFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - // Instantiation - Multi3DFilterType::Pointer multiFilter = Multi3DFilterType::New(); - - return EXIT_SUCCESS; -} int otbMultiDisparityMapTo3DFilter(int argc, char* argv[]) { diff --git a/Modules/Registration/DisparityMap/test/otbPixelWiseBlockMatchingImageFilter.cxx b/Modules/Registration/DisparityMap/test/otbPixelWiseBlockMatchingImageFilter.cxx index 076cffe720468b0d21d5835d883e292d24703d76..7493bd2d84ecd87b602084be8f46ef37b8b61171 100644 --- a/Modules/Registration/DisparityMap/test/otbPixelWiseBlockMatchingImageFilter.cxx +++ b/Modules/Registration/DisparityMap/test/otbPixelWiseBlockMatchingImageFilter.cxx @@ -35,13 +35,6 @@ typedef otb::Functor::NCCBlockMatching<ImageType,FloatImageType> NCCBlockMatchin typedef otb::PixelWiseBlockMatchingImageFilter<ImageType,FloatImageType,FloatImageType,ImageType, NCCBlockMatchingFunctorType> PixelWiseNCCBlockMatchingImageFilterType; -int otbPixelWiseBlockMatchingImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - // Instantiation - PixelWiseBlockMatchingImageFilterType::Pointer bmFilter = PixelWiseBlockMatchingImageFilterType::New(); - - return EXIT_SUCCESS; -} int otbPixelWiseBlockMatchingImageFilter(int argc, char * argv[]) { diff --git a/Modules/Registration/DisparityMap/test/otbSubPixelDisparityImageFilter.cxx b/Modules/Registration/DisparityMap/test/otbSubPixelDisparityImageFilter.cxx index aac2587c1b603c9dc8b6d1aefa595e02f629472a..cf911f4645b84b95d733f9a685ba088c2d5e5606 100644 --- a/Modules/Registration/DisparityMap/test/otbSubPixelDisparityImageFilter.cxx +++ b/Modules/Registration/DisparityMap/test/otbSubPixelDisparityImageFilter.cxx @@ -58,14 +58,6 @@ typedef otb::ImageFileReader<FloatImageType> ReaderType; typedef otb::ImageFileWriter<FloatImageType> WriterType; -int otbSubPixelDisparityImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - - // Instantiation - SSDSubPixelDisparityFilterType::Pointer filter = SSDSubPixelDisparityFilterType::New(); - - return EXIT_SUCCESS; -} template<class TImage,class TFunctorType> int ProcessAndWriteOutput(otb::SubPixelDisparityImageFilter<TImage, TImage,TImage,TImage,TFunctorType> * subPixFilter,int argc,char* argv[]) diff --git a/Modules/Registration/Stereo/test/otbAdhesionCorrectionFilter.cxx b/Modules/Registration/Stereo/test/otbAdhesionCorrectionFilter.cxx index 074221855c2717e717762cafcc9091fb036a2070..e7cd788db950cf6215f6d456df3a7bb02e73b956 100644 --- a/Modules/Registration/Stereo/test/otbAdhesionCorrectionFilter.cxx +++ b/Modules/Registration/Stereo/test/otbAdhesionCorrectionFilter.cxx @@ -38,14 +38,6 @@ typedef otb::ImageFileWriter<MaskImageType> MaskWriterType; typedef otb::AdhesionCorrectionFilter<ImageType, MaskImageType> AdhesionCorrectionFilterType; -int otbAdhesionCorrectionFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - - // Instantiation - AdhesionCorrectionFilterType::Pointer filter = AdhesionCorrectionFilterType::New(); - - return EXIT_SUCCESS; -} int otbAdhesionCorrectionFilter(int argc, char* argv[]) { diff --git a/Modules/Registration/Stereo/test/otbBijectionCoherencyFilter.cxx b/Modules/Registration/Stereo/test/otbBijectionCoherencyFilter.cxx index 00556a446bdb572562ce6add4f9b3ba130180a64..1ec245c232a5f20fa8b11f437ed4c782f84eaecc 100644 --- a/Modules/Registration/Stereo/test/otbBijectionCoherencyFilter.cxx +++ b/Modules/Registration/Stereo/test/otbBijectionCoherencyFilter.cxx @@ -34,13 +34,6 @@ typedef otb::BijectionCoherencyFilter FloatImageType> BijectionFilterType; -int otbBijectionCoherencyFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - // Instantiation - BijectionFilterType::Pointer bijectFilter = BijectionFilterType::New(); - - return EXIT_SUCCESS; -} int otbBijectionCoherencyFilter(int argc, char* argv[]) { diff --git a/Modules/Registration/Stereo/test/otbMulti3DMapToDEMFilter.cxx b/Modules/Registration/Stereo/test/otbMulti3DMapToDEMFilter.cxx index 0480556ffd1d99d6f0ae93ebdf3fecff29f37f03..d9ac47d00d01e1dad751c62453f565a72e5b3e9d 100644 --- a/Modules/Registration/Stereo/test/otbMulti3DMapToDEMFilter.cxx +++ b/Modules/Registration/Stereo/test/otbMulti3DMapToDEMFilter.cxx @@ -36,13 +36,6 @@ typedef otb::Multi3DMapToDEMFilter ImageType> Multi3DFilterType; -int otbMulti3DMapToDEMFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - // Instantiation - Multi3DFilterType::Pointer multiFilter = Multi3DFilterType::New(); - - return EXIT_SUCCESS; -} int otbMulti3DMapToDEMFilterEPSG(int argc, char* argv[]) { diff --git a/Modules/Registration/Stereo/test/otbStereoSensorModelToElevationMapFilter.cxx b/Modules/Registration/Stereo/test/otbStereoSensorModelToElevationMapFilter.cxx index 5b712b557cd6c4a38afac84694472ec05eb024ae..6ac2cae87cba7ee51fe4441d99fbc0157c9e7b4a 100644 --- a/Modules/Registration/Stereo/test/otbStereoSensorModelToElevationMapFilter.cxx +++ b/Modules/Registration/Stereo/test/otbStereoSensorModelToElevationMapFilter.cxx @@ -47,14 +47,6 @@ typedef itk::MedianImageFilter<HeightImageType, HeightImageType> MedianFilterTyp typedef otb::ImageFileWriter<HeightImageType> WriterType; -int otbStereoSensorModelToElevationMapFilterNew( int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - // Instantiation - StereoFilterType::Pointer stereoFilter = StereoFilterType::New(); - - - return EXIT_SUCCESS; -} int otbStereoSensorModelToElevationMapFilter( int itkNotUsed(argc), char * argv[] ) diff --git a/Modules/Registration/Stereo/test/otbStereorectificationDisplacementFieldSource.cxx b/Modules/Registration/Stereo/test/otbStereorectificationDisplacementFieldSource.cxx index ab75dce14670e47c03ad05e0b38c90abcdb57966..65a17072606bba1473f7b1fcb77da3d1414bc1ab 100644 --- a/Modules/Registration/Stereo/test/otbStereorectificationDisplacementFieldSource.cxx +++ b/Modules/Registration/Stereo/test/otbStereorectificationDisplacementFieldSource.cxx @@ -31,13 +31,6 @@ typedef otb::StereorectificationDisplacementFieldSource typedef otb::ImageFileReader<ImageType> ReaderType; typedef otb::ImageFileWriter<DisplacementFieldType> WriterType; -int otbStereorectificationDisplacementFieldSourceNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - // Instantiation - DisplacementFieldSourceType::Pointer dfSource = DisplacementFieldSourceType::New(); - - return EXIT_SUCCESS; -} int otbStereorectificationDisplacementFieldSource(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Segmentation/CCOBIA/test/otbStreamingConnectedComponentOBIATest.cxx b/Modules/Segmentation/CCOBIA/test/otbStreamingConnectedComponentOBIATest.cxx index 874fe9f9987c969b0eed38a47f2155b7f738c47a..c48597c40e593d8cc3837c05c449454de7e03740 100644 --- a/Modules/Segmentation/CCOBIA/test/otbStreamingConnectedComponentOBIATest.cxx +++ b/Modules/Segmentation/CCOBIA/test/otbStreamingConnectedComponentOBIATest.cxx @@ -43,14 +43,6 @@ typedef otb::StreamingConnectedComponentSegmentationOBIAToVectorDataFilter MaskImageType, VectorDataType > ConnectedComponentSegmentationOBIAToVectorDataFilterType; -int otbStreamingConnectedComponentSegmentationOBIAToVectorDataFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - ConnectedComponentSegmentationOBIAToVectorDataFilterType::FilterType::Pointer connected - = ConnectedComponentSegmentationOBIAToVectorDataFilterType::FilterType::New(); - std::cout << connected << std::endl; - - return EXIT_SUCCESS; -} int otbStreamingConnectedComponentSegmentationOBIAToVectorDataFilter(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Segmentation/Conversion/test/otbLabelImageToOGRDataSourceFilter.cxx b/Modules/Segmentation/Conversion/test/otbLabelImageToOGRDataSourceFilter.cxx index a9fa92cd720d919475539135fc26fd84592c7c0d..2da8b6a795a771c8293b6e2df6b403cae440a926 100644 --- a/Modules/Segmentation/Conversion/test/otbLabelImageToOGRDataSourceFilter.cxx +++ b/Modules/Segmentation/Conversion/test/otbLabelImageToOGRDataSourceFilter.cxx @@ -25,19 +25,6 @@ #include "otbImageFileReader.h" #include "otbVectorDataFileWriter.h" -int otbLabelImageToOGRDataSourceFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - const unsigned int Dimension = 2; - typedef unsigned short LabelType; - typedef otb::Image<LabelType, Dimension> InputLabelImageType; - - typedef otb::LabelImageToOGRDataSourceFilter<InputLabelImageType> FilterType; - - FilterType::Pointer filter = FilterType::New(); - - - return EXIT_SUCCESS; -} int otbLabelImageToOGRDataSourceFilter(int argc, char * argv[]) diff --git a/Modules/Segmentation/Conversion/test/otbOGRDataSourceToLabelImageFilter.cxx b/Modules/Segmentation/Conversion/test/otbOGRDataSourceToLabelImageFilter.cxx index 28e1a800a7088252df0a686b286e7bb2488b608c..efc70f79c26686b6dfffcc6d48c4d79739d5389f 100644 --- a/Modules/Segmentation/Conversion/test/otbOGRDataSourceToLabelImageFilter.cxx +++ b/Modules/Segmentation/Conversion/test/otbOGRDataSourceToLabelImageFilter.cxx @@ -32,11 +32,6 @@ typedef otb::ImageFileReader<ImageType> ReaderType; typedef otb::ImageFileWriter<ImageType> WriterType; typedef otb::OGRDataSourceToLabelImageFilter<ImageType> RasterizationFilterType; -int otbOGRDataSourceToLabelImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - RasterizationFilterType::Pointer rasterization = RasterizationFilterType::New(); - return EXIT_SUCCESS; -} int otbOGRDataSourceToLabelImageFilter(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Segmentation/Conversion/test/otbVectorDataRasterizeFilter.cxx b/Modules/Segmentation/Conversion/test/otbVectorDataRasterizeFilter.cxx index f94e14981ae9af608f24fec9ac4bc14b4d5ab0f2..b6728b40b7429d0a8fde60c93776e68fb49ccc25 100644 --- a/Modules/Segmentation/Conversion/test/otbVectorDataRasterizeFilter.cxx +++ b/Modules/Segmentation/Conversion/test/otbVectorDataRasterizeFilter.cxx @@ -39,11 +39,6 @@ typedef otb::RasterizeVectorDataFilter<VectorDataType, ImageType, ImageType> RasterizationFilterType; -int otbVectorDataRasterizeFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - RasterizationFilterType::Pointer rasterization = RasterizationFilterType::New(); - return EXIT_SUCCESS; -} int otbVectorDataRasterizeFilter(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Segmentation/Conversion/test/otbVectorDataToLabelImageFilter.cxx b/Modules/Segmentation/Conversion/test/otbVectorDataToLabelImageFilter.cxx index f9462f22dc01404487e04cd7d1b7007a238b1c7b..466be1580c834a36c73e52025f7ad8dd91aebf70 100644 --- a/Modules/Segmentation/Conversion/test/otbVectorDataToLabelImageFilter.cxx +++ b/Modules/Segmentation/Conversion/test/otbVectorDataToLabelImageFilter.cxx @@ -38,11 +38,6 @@ typedef otb::ImageFileWriter<ImageType> WriterType; typedef otb::VectorDataToLabelImageFilter<VectorDataType, ImageType> RasterizationFilterType; -int otbVectorDataToLabelImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv) []) -{ - RasterizationFilterType::Pointer rasterization = RasterizationFilterType::New(); - return EXIT_SUCCESS; -} int otbVectorDataToLabelImageFilter(int itkNotUsed(argc), char * argv[]) { diff --git a/Modules/Wrappers/ApplicationEngine/test/otbWrapperApplicationHtmlDocGeneratorTest.cxx b/Modules/Wrappers/ApplicationEngine/test/otbWrapperApplicationHtmlDocGeneratorTest.cxx index 6a5a6a346c333774559dd836d995ae661816ea2f..e562c6acbb50201532595809a0aff99f3077ffa4 100644 --- a/Modules/Wrappers/ApplicationEngine/test/otbWrapperApplicationHtmlDocGeneratorTest.cxx +++ b/Modules/Wrappers/ApplicationEngine/test/otbWrapperApplicationHtmlDocGeneratorTest.cxx @@ -25,13 +25,6 @@ #include "otbWrapperApplicationHtmlDocGenerator.h" #include "otbWrapperApplicationRegistry.h" -int otbWrapperApplicationHtmlDocGeneratorNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef otb::Wrapper::ApplicationHtmlDocGenerator DocGeneratorType; - DocGeneratorType generator; - - return EXIT_SUCCESS; -} int otbWrapperApplicationHtmlDocGeneratorTest1(int argc, char * argv[]) { diff --git a/Modules/Wrappers/ApplicationEngine/test/otbWrapperApplicationTest.cxx b/Modules/Wrappers/ApplicationEngine/test/otbWrapperApplicationTest.cxx index f338e58f5f3b8d8c82802629bc9b54c1cb215a96..e21158c05a661198b5f7d06c8c3d8659723c299d 100644 --- a/Modules/Wrappers/ApplicationEngine/test/otbWrapperApplicationTest.cxx +++ b/Modules/Wrappers/ApplicationEngine/test/otbWrapperApplicationTest.cxx @@ -24,9 +24,3 @@ #include "otbWrapperApplication.h" -int otbWrapperApplicationNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ -// typedef otb::Wrapper::Application ApplicationType; -// ApplicationType application = ApplicationType::New(); - return EXIT_SUCCESS; -} diff --git a/Modules/Wrappers/ApplicationEngine/test/otbWrapperChoiceParameterTest.cxx b/Modules/Wrappers/ApplicationEngine/test/otbWrapperChoiceParameterTest.cxx index 2a44eade12b3d2d7d1e3ed23ebf6a3335c4b5b5a..9dd36fb158d9a01ff895a00945f2aaf9c90dd4ec 100644 --- a/Modules/Wrappers/ApplicationEngine/test/otbWrapperChoiceParameterTest.cxx +++ b/Modules/Wrappers/ApplicationEngine/test/otbWrapperChoiceParameterTest.cxx @@ -24,13 +24,6 @@ #include "otbWrapperChoiceParameter.h" -int otbWrapperChoiceParameterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef otb::Wrapper::ChoiceParameter ChoiceParameterType; - ChoiceParameterType::Pointer parameter = ChoiceParameterType::New(); - - return EXIT_SUCCESS; -} int otbWrapperChoiceParameterTest1(int itkNotUsed(argc), char * itkNotUsed(argv)[]) { diff --git a/Modules/Wrappers/ApplicationEngine/test/otbWrapperDocExampleStructureTest.cxx b/Modules/Wrappers/ApplicationEngine/test/otbWrapperDocExampleStructureTest.cxx index bf69b0281367949be88313daabc07b13ad837fc2..e95afe08724d8713d968fce71b0398a68e440cc4 100644 --- a/Modules/Wrappers/ApplicationEngine/test/otbWrapperDocExampleStructureTest.cxx +++ b/Modules/Wrappers/ApplicationEngine/test/otbWrapperDocExampleStructureTest.cxx @@ -26,13 +26,6 @@ #include "itksys/SystemTools.hxx" #include <fstream> -int otbWrapperDocExampleStructureNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef otb::Wrapper::DocExampleStructure DocExampleStructureType; - DocExampleStructureType::Pointer docStruct = DocExampleStructureType::New(); - - return EXIT_SUCCESS; -} int otbWrapperDocExampleStructureTest(int itkNotUsed(argc), char* argv[]) diff --git a/Modules/Wrappers/ApplicationEngine/test/otbWrapperEmptyParameterTest.cxx b/Modules/Wrappers/ApplicationEngine/test/otbWrapperEmptyParameterTest.cxx index 466062356ba119109fafe5668d149f7ed2709848..2b484a0128ea137f0150f75e17c20010ca46d5b3 100644 --- a/Modules/Wrappers/ApplicationEngine/test/otbWrapperEmptyParameterTest.cxx +++ b/Modules/Wrappers/ApplicationEngine/test/otbWrapperEmptyParameterTest.cxx @@ -24,12 +24,3 @@ #include "otbWrapperEmptyParameter.h" -int otbWrapperEmptyParameterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef otb::Wrapper::EmptyParameter EmptyParameterType; - EmptyParameterType::Pointer parameter = EmptyParameterType::New(); - - //std::cout << parameter << std::endl; - - return EXIT_SUCCESS; -} diff --git a/Modules/Wrappers/ApplicationEngine/test/otbWrapperInputImageListParameterTest.cxx b/Modules/Wrappers/ApplicationEngine/test/otbWrapperInputImageListParameterTest.cxx index f2a4b2930f084592f8198c234afefa2747f630f9..00b6d9fe09e0885651c6addafa07e5cfbd94b67c 100644 --- a/Modules/Wrappers/ApplicationEngine/test/otbWrapperInputImageListParameterTest.cxx +++ b/Modules/Wrappers/ApplicationEngine/test/otbWrapperInputImageListParameterTest.cxx @@ -24,13 +24,6 @@ #include "otbWrapperInputImageListParameter.h" -int otbWrapperInputImageListParameterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef otb::Wrapper::InputImageListParameter ParameterType; - ParameterType::Pointer parameter = ParameterType::New(); - - return EXIT_SUCCESS; -} int otbWrapperInputImageListParameterTest1(int itkNotUsed(argc), char* argv[]) diff --git a/Modules/Wrappers/ApplicationEngine/test/otbWrapperInputImageParameterTest.cxx b/Modules/Wrappers/ApplicationEngine/test/otbWrapperInputImageParameterTest.cxx index 01718d15c60c9ae1ba404de84b7dda1865165d8e..eab4996459d1b559351be745861473fdd4c6fcb8 100644 --- a/Modules/Wrappers/ApplicationEngine/test/otbWrapperInputImageParameterTest.cxx +++ b/Modules/Wrappers/ApplicationEngine/test/otbWrapperInputImageParameterTest.cxx @@ -24,13 +24,6 @@ #include "otbWrapperInputImageParameter.h" -int otbWrapperInputImageParameterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef otb::Wrapper::InputImageParameter InputImageParameterType; - InputImageParameterType::Pointer parameter = InputImageParameterType::New(); - - return EXIT_SUCCESS; -} int otbWrapperInputImageParameterTest1(int itkNotUsed(argc), char* argv[]) { diff --git a/Modules/Wrappers/ApplicationEngine/test/otbWrapperInputVectorDataListParameterTest.cxx b/Modules/Wrappers/ApplicationEngine/test/otbWrapperInputVectorDataListParameterTest.cxx index 6a9087d3b2a481161c8899ef8f3bfb008477caf9..4ef4d131790819730a4ad4ae76d47fcacf6e9872 100644 --- a/Modules/Wrappers/ApplicationEngine/test/otbWrapperInputVectorDataListParameterTest.cxx +++ b/Modules/Wrappers/ApplicationEngine/test/otbWrapperInputVectorDataListParameterTest.cxx @@ -24,13 +24,6 @@ #include "otbWrapperInputVectorDataListParameter.h" -int otbWrapperInputVectorDataListParameterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef otb::Wrapper::InputVectorDataListParameter ParameterType; - ParameterType::Pointer parameter = ParameterType::New(); - - return EXIT_SUCCESS; -} int otbWrapperInputVectorDataListParameterTest1(int itkNotUsed(argc), char* argv[]) diff --git a/Modules/Wrappers/ApplicationEngine/test/otbWrapperInputVectorDataParameterTest.cxx b/Modules/Wrappers/ApplicationEngine/test/otbWrapperInputVectorDataParameterTest.cxx index b1029dd068895d100f0f229919a0929237433c1f..7c8f4b3c52f2f9617d545aee8d668b2f2d25a066 100644 --- a/Modules/Wrappers/ApplicationEngine/test/otbWrapperInputVectorDataParameterTest.cxx +++ b/Modules/Wrappers/ApplicationEngine/test/otbWrapperInputVectorDataParameterTest.cxx @@ -24,10 +24,3 @@ #include "otbWrapperInputVectorDataParameter.h" -int otbWrapperInputVectorDataParameterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef otb::Wrapper::InputVectorDataParameter InputVectorDataParameterType; - InputVectorDataParameterType::Pointer parameter = InputVectorDataParameterType::New(); - - return EXIT_SUCCESS; -} diff --git a/Modules/Wrappers/ApplicationEngine/test/otbWrapperNumericalParameterTest.cxx b/Modules/Wrappers/ApplicationEngine/test/otbWrapperNumericalParameterTest.cxx index c68994333676fa9f0fddf3d3eece89ddb20fbe81..f7358b5fdf45ecade1c56649204063dd96edde03 100644 --- a/Modules/Wrappers/ApplicationEngine/test/otbWrapperNumericalParameterTest.cxx +++ b/Modules/Wrappers/ApplicationEngine/test/otbWrapperNumericalParameterTest.cxx @@ -24,13 +24,6 @@ #include "otbWrapperNumericalParameter.h" -int otbWrapperNumericalParameterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef otb::Wrapper::NumericalParameter <int> NumericalParameterType; - NumericalParameterType::Pointer parameter = NumericalParameterType::New(); - - return EXIT_SUCCESS; -} int otbWrapperNumericalParameterTest1(int itkNotUsed(argc), char* argv[]) diff --git a/Modules/Wrappers/ApplicationEngine/test/otbWrapperOutputImageParameterTest.cxx b/Modules/Wrappers/ApplicationEngine/test/otbWrapperOutputImageParameterTest.cxx index ea8899b8e0d50685f8e0973f17e1a50081dde7f5..238a8f982d3b3023d2b129102a29c62ea5076ae5 100644 --- a/Modules/Wrappers/ApplicationEngine/test/otbWrapperOutputImageParameterTest.cxx +++ b/Modules/Wrappers/ApplicationEngine/test/otbWrapperOutputImageParameterTest.cxx @@ -28,13 +28,6 @@ #include "otbWrapperTypes.h" #include <vector> -int otbWrapperOutputImageParameterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef otb::Wrapper::OutputImageParameter OutputImageParameterType; - OutputImageParameterType::Pointer parameter = OutputImageParameterType::New(); - - return EXIT_SUCCESS; -} int otbWrapperOutputImageParameterTest1(int itkNotUsed(argc), char* argv[]) { diff --git a/Modules/Wrappers/ApplicationEngine/test/otbWrapperParameterListTest.cxx b/Modules/Wrappers/ApplicationEngine/test/otbWrapperParameterListTest.cxx index 238903ad3500157c0e29631267ea81e65d1c2ada..8d2c39363ea70a026b04bafb6566cd71bd250da5 100644 --- a/Modules/Wrappers/ApplicationEngine/test/otbWrapperParameterListTest.cxx +++ b/Modules/Wrappers/ApplicationEngine/test/otbWrapperParameterListTest.cxx @@ -27,15 +27,6 @@ #include "otbWrapperNumericalParameter.h" #include "otbWrapperProxyParameter.h" -int otbWrapperParameterListNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - using otb::Wrapper::ParameterGroup; - ParameterGroup::Pointer parameters = ParameterGroup::New(); - - //std::cout << parameter << std::endl; - - return EXIT_SUCCESS; -} int otbWrapperParameterList(int itkNotUsed(argc), char * itkNotUsed(argv)[]) { diff --git a/Modules/Wrappers/ApplicationEngine/test/otbWrapperStringListParameterTest.cxx b/Modules/Wrappers/ApplicationEngine/test/otbWrapperStringListParameterTest.cxx index 9810c0e32a1d3ec10c6271fc8e988102fdb56d12..a9162f7f3b2c3c8985d9b676a1f2ec6c36408884 100644 --- a/Modules/Wrappers/ApplicationEngine/test/otbWrapperStringListParameterTest.cxx +++ b/Modules/Wrappers/ApplicationEngine/test/otbWrapperStringListParameterTest.cxx @@ -24,13 +24,6 @@ #include "otbWrapperStringListParameter.h" -int otbWrapperStringListParameterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef otb::Wrapper::StringListParameter StringListParameterType; - StringListParameterType::Pointer parameter = StringListParameterType::New(); - - return EXIT_SUCCESS; -} int otbWrapperStringListParameterTest1(int itkNotUsed(argc), char* argv[]) diff --git a/Modules/Wrappers/ApplicationEngine/test/otbWrapperStringParameterTest.cxx b/Modules/Wrappers/ApplicationEngine/test/otbWrapperStringParameterTest.cxx index b0acdba0ef871739f608791ba1a1325151edc672..e56e6a8c3bbea326ad8f9a1ca39f9e86189a72c7 100644 --- a/Modules/Wrappers/ApplicationEngine/test/otbWrapperStringParameterTest.cxx +++ b/Modules/Wrappers/ApplicationEngine/test/otbWrapperStringParameterTest.cxx @@ -24,13 +24,6 @@ #include "otbWrapperStringParameter.h" -int otbWrapperStringParameterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[]) -{ - typedef otb::Wrapper::StringParameter StringParameterType; - StringParameterType::Pointer parameter = StringParameterType::New(); - - return EXIT_SUCCESS; -} int otbWrapperStringParameterTest1(int itkNotUsed(argc), char* argv[]) diff --git a/Modules/Wrappers/CommandLine/test/otbWrapperCommandLineLauncherTests.cxx b/Modules/Wrappers/CommandLine/test/otbWrapperCommandLineLauncherTests.cxx index f8ff6bff622a1ade3677064b99e5250bfdaefe16..5338976b3f6529c9aacb5b8ff85730b3f0764623 100644 --- a/Modules/Wrappers/CommandLine/test/otbWrapperCommandLineLauncherTests.cxx +++ b/Modules/Wrappers/CommandLine/test/otbWrapperCommandLineLauncherTests.cxx @@ -25,13 +25,6 @@ #include "otbWrapperCommandLineLauncher.h" -int otbWrapperCommandLineLauncherNew(int itkNotUsed(argc), char* itkNotUsed(argv)[]) -{ - typedef otb::Wrapper::CommandLineLauncher LauncherType; - LauncherType::Pointer launcher = LauncherType::New(); - - return EXIT_SUCCESS; -} diff --git a/Modules/Wrappers/CommandLine/test/otbWrapperCommandLineParserTests.cxx b/Modules/Wrappers/CommandLine/test/otbWrapperCommandLineParserTests.cxx index 784d77f341514b496a5b1fee41555f1e300f9a8e..a409b167986108266116338b67d262d819d5dd64 100644 --- a/Modules/Wrappers/CommandLine/test/otbWrapperCommandLineParserTests.cxx +++ b/Modules/Wrappers/CommandLine/test/otbWrapperCommandLineParserTests.cxx @@ -26,12 +26,6 @@ typedef otb::Wrapper::CommandLineParser ParserType; -int otbWrapperCommandLineParserNew(int itkNotUsed(argc), char* itkNotUsed(argv)[]) -{ - ParserType::Pointer parser = ParserType::New(); - - return EXIT_SUCCESS; -} int CheckReturn(ParserType::ParseResultType res) { diff --git a/Modules/Wrappers/QtWidget/test/otbQtLogOutputTests.cxx b/Modules/Wrappers/QtWidget/test/otbQtLogOutputTests.cxx index 24eb5eccd25e791e3e5e718b648d008e13ef70c8..e3c229150f9f96e52bb71c207c30a0c27f8d9648 100644 --- a/Modules/Wrappers/QtWidget/test/otbQtLogOutputTests.cxx +++ b/Modules/Wrappers/QtWidget/test/otbQtLogOutputTests.cxx @@ -25,8 +25,3 @@ #include "otbQtLogOutput.h" -int otbQtLogOutputNew(int /*argc*/, char* /*argv*/ []) -{ - otb::QtLogOutput::Pointer log = otb::QtLogOutput::New(); - return EXIT_SUCCESS; -}