diff --git a/Code/IO/otbGDALDriverManagerWrapper.cxx b/Code/IO/otbGDALDriverManagerWrapper.cxx index cf58c106b3b72469e8ea402abdf59d3227440aff..2ca24ca357bdf7af3bc873c0aee2f8a7d8a0425c 100644 --- a/Code/IO/otbGDALDriverManagerWrapper.cxx +++ b/Code/IO/otbGDALDriverManagerWrapper.cxx @@ -67,8 +67,6 @@ GDALDriverManagerWrapper::GDALDriverManagerWrapper() { GDALAllRegister(); - GDALDriver* driver = 0; - // Ignore incompatible Jpeg2000 drivers (Jasper) /* driver = GetGDALDriverManager()->GetDriverByName( "JPEG2000" ); @@ -77,6 +75,9 @@ GDALDriverManagerWrapper::GDALDriverManagerWrapper() */ #ifndef CHECK_HDF4OPEN_SYMBOL + + GDALDriver* driver = 0; + // Get rid of the HDF4 driver when it is buggy driver = GetGDALDriverManager()->GetDriverByName( "hdf4" ); if (driver) diff --git a/Code/UtilitiesAdapters/OGRAdapters/otbGeometriesToGeometriesFilter.txx b/Code/UtilitiesAdapters/OGRAdapters/otbGeometriesToGeometriesFilter.txx index dddc59bfdc995f97654d2f47360c46df1a574d26..cfbacea9db8c2ffdc502e561caea6fad3f39ace1 100644 --- a/Code/UtilitiesAdapters/OGRAdapters/otbGeometriesToGeometriesFilter.txx +++ b/Code/UtilitiesAdapters/OGRAdapters/otbGeometriesToGeometriesFilter.txx @@ -98,7 +98,7 @@ inline void otb::TransformationFunctorDispatcher<TransformationFunctor,OGRGeometry,FieldTransformationPolicy>::operator()( otb::ogr::Layer & inout) const { - OGRFeatureDefn & defn = inout.GetLayerDefn(); +// OGRFeatureDefn & defn = inout.GetLayerDefn(); // NB: We can't iterate with begin()/end() as SetFeature may invalidate the // iterators depending of the underlying drivers // => we use start_at(), i.e. SetNextByIndex() diff --git a/Code/UtilitiesAdapters/OpenCVAdapters/otbBoostMachineLearningModel.txx b/Code/UtilitiesAdapters/OpenCVAdapters/otbBoostMachineLearningModel.txx index d0b1cd9dc4532f9493fdd68536dd45b6432adc9b..98c69b5b6abf533062a9b796c5bb8d9ac4166e24 100644 --- a/Code/UtilitiesAdapters/OpenCVAdapters/otbBoostMachineLearningModel.txx +++ b/Code/UtilitiesAdapters/OpenCVAdapters/otbBoostMachineLearningModel.txx @@ -148,7 +148,7 @@ BoostMachineLearningModel<TInputValue,TOutputValue> template <class TInputValue, class TOutputValue> bool BoostMachineLearningModel<TInputValue,TOutputValue> -::CanWriteFile(const std::string & file) +::CanWriteFile(const std::string & itkNotUsed(file)) { return false; } diff --git a/Code/UtilitiesAdapters/OpenCVAdapters/otbDecisionTreeMachineLearningModel.txx b/Code/UtilitiesAdapters/OpenCVAdapters/otbDecisionTreeMachineLearningModel.txx index 0fab7fdaa4e60063709d260caaa6282d1799025c..ffbc434506ebec8a2379724058ba53117dcb3085 100644 --- a/Code/UtilitiesAdapters/OpenCVAdapters/otbDecisionTreeMachineLearningModel.txx +++ b/Code/UtilitiesAdapters/OpenCVAdapters/otbDecisionTreeMachineLearningModel.txx @@ -153,7 +153,7 @@ DecisionTreeMachineLearningModel<TInputValue,TOutputValue> template <class TInputValue, class TOutputValue> bool DecisionTreeMachineLearningModel<TInputValue,TOutputValue> -::CanWriteFile(const std::string & file) +::CanWriteFile(const std::string & itkNotUsed(file)) { return false; } diff --git a/Code/UtilitiesAdapters/OpenCVAdapters/otbGradientBoostedTreeMachineLearningModel.txx b/Code/UtilitiesAdapters/OpenCVAdapters/otbGradientBoostedTreeMachineLearningModel.txx index cf7bfc8d2dec9b5390536281a90e615a518cdc3c..cc0d20eb75112ce5e194b8583e49f80ce83b6a5e 100644 --- a/Code/UtilitiesAdapters/OpenCVAdapters/otbGradientBoostedTreeMachineLearningModel.txx +++ b/Code/UtilitiesAdapters/OpenCVAdapters/otbGradientBoostedTreeMachineLearningModel.txx @@ -150,7 +150,7 @@ GradientBoostedTreeMachineLearningModel<TInputValue,TOutputValue> template <class TInputValue, class TOutputValue> bool GradientBoostedTreeMachineLearningModel<TInputValue,TOutputValue> -::CanWriteFile(const std::string & file) +::CanWriteFile(const std::string & itkNotUsed(file)) { return false; } diff --git a/Code/UtilitiesAdapters/OpenCVAdapters/otbKNearestNeighborsMachineLearningModel.txx b/Code/UtilitiesAdapters/OpenCVAdapters/otbKNearestNeighborsMachineLearningModel.txx index 2a41d4ccd183a3a66459e44b46fd2949f8fe7692..d3132205dc27e1de82a567a40817346aa2e04159 100644 --- a/Code/UtilitiesAdapters/OpenCVAdapters/otbKNearestNeighborsMachineLearningModel.txx +++ b/Code/UtilitiesAdapters/OpenCVAdapters/otbKNearestNeighborsMachineLearningModel.txx @@ -84,7 +84,7 @@ KNearestNeighborsMachineLearningModel<TInputValue,TTargetValue> template <class TInputValue, class TTargetValue> void KNearestNeighborsMachineLearningModel<TInputValue,TTargetValue> -::Save(const std::string & filename, const std::string & name) +::Save(const std::string & filename, const std::string & itkNotUsed(name)) { //there is no m_KNearestModel->save(filename.c_str(), name.c_str()). //We need to save the K parameter and IsRegression flag used and the samples. @@ -117,7 +117,7 @@ KNearestNeighborsMachineLearningModel<TInputValue,TTargetValue> template <class TInputValue, class TTargetValue> void KNearestNeighborsMachineLearningModel<TInputValue,TTargetValue> -::Load(const std::string & filename, const std::string & name) +::Load(const std::string & filename, const std::string & itkNotUsed(name)) { //there is no m_KNearestModel->load(filename.c_str(), name.c_str()); std::ifstream ifs(filename.c_str()); @@ -203,7 +203,7 @@ KNearestNeighborsMachineLearningModel<TInputValue,TTargetValue> template <class TInputValue, class TTargetValue> bool KNearestNeighborsMachineLearningModel<TInputValue,TTargetValue> -::CanWriteFile(const std::string & file) +::CanWriteFile(const std::string & itkNotUsed(file)) { return false; } diff --git a/Code/UtilitiesAdapters/OpenCVAdapters/otbNeuralNetworkMachineLearningModel.txx b/Code/UtilitiesAdapters/OpenCVAdapters/otbNeuralNetworkMachineLearningModel.txx index 01cffff3cd4fa7152fe0716705636078c74cfb6a..9cb9b486f8a175c743edcafc75a1bf678fc134f4 100644 --- a/Code/UtilitiesAdapters/OpenCVAdapters/otbNeuralNetworkMachineLearningModel.txx +++ b/Code/UtilitiesAdapters/OpenCVAdapters/otbNeuralNetworkMachineLearningModel.txx @@ -278,7 +278,7 @@ bool NeuralNetworkMachineLearningModel<TInputValue, TOutputValue>::CanReadFile(c } template<class TInputValue, class TOutputValue> -bool NeuralNetworkMachineLearningModel<TInputValue, TOutputValue>::CanWriteFile(const std::string & file) +bool NeuralNetworkMachineLearningModel<TInputValue, TOutputValue>::CanWriteFile(const std::string & itkNotUsed(file)) { return false; } diff --git a/Code/UtilitiesAdapters/OpenCVAdapters/otbNormalBayesMachineLearningModel.txx b/Code/UtilitiesAdapters/OpenCVAdapters/otbNormalBayesMachineLearningModel.txx index 576be672880b3a8a4da6510e398ce7123ea7e4e6..863020c36c716ccec31cf87afe8732ee9764550f 100644 --- a/Code/UtilitiesAdapters/OpenCVAdapters/otbNormalBayesMachineLearningModel.txx +++ b/Code/UtilitiesAdapters/OpenCVAdapters/otbNormalBayesMachineLearningModel.txx @@ -133,7 +133,7 @@ NormalBayesMachineLearningModel<TInputValue,TOutputValue> template <class TInputValue, class TOutputValue> bool NormalBayesMachineLearningModel<TInputValue,TOutputValue> -::CanWriteFile(const std::string & file) +::CanWriteFile(const std::string & itkNotUsed(file)) { return false; } diff --git a/Code/UtilitiesAdapters/OpenCVAdapters/otbRandomForestsMachineLearningModel.txx b/Code/UtilitiesAdapters/OpenCVAdapters/otbRandomForestsMachineLearningModel.txx index 0bb66b72033f1e7a4dc39ca3f926cf579c0322b5..5654b2ba602e151c12d62aaead79a682f534090c 100644 --- a/Code/UtilitiesAdapters/OpenCVAdapters/otbRandomForestsMachineLearningModel.txx +++ b/Code/UtilitiesAdapters/OpenCVAdapters/otbRandomForestsMachineLearningModel.txx @@ -178,7 +178,7 @@ RandomForestsMachineLearningModel<TInputValue,TOutputValue> template <class TInputValue, class TOutputValue> bool RandomForestsMachineLearningModel<TInputValue,TOutputValue> -::CanWriteFile(const std::string & file) +::CanWriteFile(const std::string & itkNotUsed(file)) { return false; } diff --git a/Code/UtilitiesAdapters/OpenCVAdapters/otbSVMMachineLearningModel.txx b/Code/UtilitiesAdapters/OpenCVAdapters/otbSVMMachineLearningModel.txx index 6757d7ea9077c8fc7cc464f87bedc8e96191f869..2d219ef802d2b27ef413d9e03b57b13452b04a54 100644 --- a/Code/UtilitiesAdapters/OpenCVAdapters/otbSVMMachineLearningModel.txx +++ b/Code/UtilitiesAdapters/OpenCVAdapters/otbSVMMachineLearningModel.txx @@ -179,7 +179,7 @@ SVMMachineLearningModel<TInputValue,TOutputValue> template <class TInputValue, class TOutputValue> bool SVMMachineLearningModel<TInputValue,TOutputValue> -::CanWriteFile(const std::string & file) +::CanWriteFile(const std::string & itkNotUsed(file)) { return false; } diff --git a/Code/Wrappers/QtWidget/otbWrapperQtWidgetParameterBase.cxx b/Code/Wrappers/QtWidget/otbWrapperQtWidgetParameterBase.cxx index e7c843ba9dff9490f52fb1571c7431aff3cc612e..b4c3496a214a410031729db2fba24bbf5cb3e5bd 100644 --- a/Code/Wrappers/QtWidget/otbWrapperQtWidgetParameterBase.cxx +++ b/Code/Wrappers/QtWidget/otbWrapperQtWidgetParameterBase.cxx @@ -63,7 +63,7 @@ void QtWidgetParameterBase::UpdateGUI() } } -void QtWidgetParameterBase::ParameterChanged(const QString& key) +void QtWidgetParameterBase::ParameterChanged(const QString& itkNotUsed(key)) { m_Param->SetUserValue(true); } diff --git a/Code/Wrappers/QtWidget/otbWrapperQtWidgetProgressReport.cxx b/Code/Wrappers/QtWidget/otbWrapperQtWidgetProgressReport.cxx index 5e67e0490b9754e59e6e0a128c75b745b50abfdf..2fff9e1540452a8a3e6157e0042ea02f105f9c63 100644 --- a/Code/Wrappers/QtWidget/otbWrapperQtWidgetProgressReport.cxx +++ b/Code/Wrappers/QtWidget/otbWrapperQtWidgetProgressReport.cxx @@ -56,7 +56,7 @@ void QtWidgetProgressReport::SetApplication(Application::Pointer app) } void -QtWidgetProgressReport::ProcessEvent( itk::Object * caller, +QtWidgetProgressReport::ProcessEvent( itk::Object * itkNotUsed(caller), const itk::EventObject & event ) { if( typeid( otb::Wrapper::AddProcessToWatchEvent ) == typeid( event ) ) diff --git a/Code/Wrappers/QtWidget/otbWrapperQtWidgetSimpleProgressReport.cxx b/Code/Wrappers/QtWidget/otbWrapperQtWidgetSimpleProgressReport.cxx index 2cd8d1145e4f5ebdace3501515e0cfb722a84dca..3394487685aa6312f3cda623ec44622a5e7f3993 100644 --- a/Code/Wrappers/QtWidget/otbWrapperQtWidgetSimpleProgressReport.cxx +++ b/Code/Wrappers/QtWidget/otbWrapperQtWidgetSimpleProgressReport.cxx @@ -63,7 +63,7 @@ void QtWidgetSimpleProgressReport::SetApplication(Application::Pointer app) } void -QtWidgetSimpleProgressReport::ProcessEvent( itk::Object * caller, +QtWidgetSimpleProgressReport::ProcessEvent( itk::Object * itkNotUsed(caller), const itk::EventObject & event ) { if( typeid( otb::Wrapper::AddProcessToWatchEvent ) == typeid( event ) ) diff --git a/Examples/BasicFilters/BandMathFilterExample.cxx b/Examples/BasicFilters/BandMathFilterExample.cxx index d775d1383897c44d07942b38c4abc6ed1121d02a..47a2920ee614117cc2d158981461c879a50b9573 100644 --- a/Examples/BasicFilters/BandMathFilterExample.cxx +++ b/Examples/BasicFilters/BandMathFilterExample.cxx @@ -88,7 +88,6 @@ int main( int argc, char* argv[]) typedef otb::VectorImage<PixelType, 2> InputImageType; typedef otb::Image<PixelType, 2> OutputImageType; typedef otb::ImageList<OutputImageType> ImageListType; - typedef OutputImageType::PixelType VPixelType; typedef otb::VectorImageToImageListFilter<InputImageType, ImageListType> VectorImageToImageListType; typedef otb::ImageFileReader<InputImageType> ReaderType; diff --git a/Examples/Classification/ClassificationMapRegularizationExample.cxx b/Examples/Classification/ClassificationMapRegularizationExample.cxx index 3a62e45c0066a0024f22258e9fd6561e8ceb5f96..87af11d381bf9959e2c22ca547af1905b6e0b89f 100644 --- a/Examples/Classification/ClassificationMapRegularizationExample.cxx +++ b/Examples/Classification/ClassificationMapRegularizationExample.cxx @@ -46,7 +46,7 @@ #include "itkTimeProbe.h" -int main(int argc, char * argv[]) +int main(int itkNotUsed(argc), char * argv[]) { // Software Guide : BeginLatex // diff --git a/Examples/Classification/KMeansImageClassificationExample.cxx b/Examples/Classification/KMeansImageClassificationExample.cxx index 96fe8c3c94189aa2310afb7adedd84fc3fd62b65..cd017491c04904102eba89ea4993d40f38f52750 100644 --- a/Examples/Classification/KMeansImageClassificationExample.cxx +++ b/Examples/Classification/KMeansImageClassificationExample.cxx @@ -34,7 +34,7 @@ #include "otbImageFileReader.h" #include "otbImageFileWriter.h" -int main(int argc, char * argv[]) +int main(int itkNotUsed(argc), char * argv[]) { const char * infname = argv[1]; const char * outfname = argv[2]; diff --git a/Examples/Classification/SOMImageClassificationExample.cxx b/Examples/Classification/SOMImageClassificationExample.cxx index 14e0d79c786917e6a12b8eb606dd65f063938551..fb00fb76e81a34e1d1fec8e74f7129c1867b98e0 100644 --- a/Examples/Classification/SOMImageClassificationExample.cxx +++ b/Examples/Classification/SOMImageClassificationExample.cxx @@ -38,7 +38,7 @@ #include "otbImageFileReader.h" #include "otbImageFileWriter.h" -int main(int argc, char * argv[]) +int main(int itkNotUsed(argc), char * argv[]) { const char * infname = argv[1]; const char * somfname = argv[2]; diff --git a/Examples/Classification/ScalarImageKmeansModelEstimator.cxx b/Examples/Classification/ScalarImageKmeansModelEstimator.cxx index 0f6bef4de92652f9d10eb95fe0f3163cb83abb1d..b48f6e64ae2e552bd2494f913972ef560e755511 100644 --- a/Examples/Classification/ScalarImageKmeansModelEstimator.cxx +++ b/Examples/Classification/ScalarImageKmeansModelEstimator.cxx @@ -91,7 +91,6 @@ int main(int argc, char * argv[]) adaptor->SetImage(reader->GetOutput()); // Define the Measurement vector type from the AdaptorType - typedef AdaptorType::MeasurementVectorType MeasurementVectorType; // Create the K-d tree structure typedef itk::Statistics::WeightedCentroidKdTreeGenerator< diff --git a/Examples/Classification/SupervisedImageClassificationExample.cxx b/Examples/Classification/SupervisedImageClassificationExample.cxx index ff5f57fb9c217f12861ffe9bbafeb5753a550605..f4bee8994e6348e74c9f71f82454434192be859d 100644 --- a/Examples/Classification/SupervisedImageClassificationExample.cxx +++ b/Examples/Classification/SupervisedImageClassificationExample.cxx @@ -44,7 +44,7 @@ #include "otbImageFileReader.h" #include "otbImageFileWriter.h" -int main(int argc, char * argv[]) +int main(int itkNotUsed(argc), char * argv[]) { const char * infname = argv[1]; const char * modelfname = argv[2]; diff --git a/Examples/DataRepresentation/Image/ImageListExample.cxx b/Examples/DataRepresentation/Image/ImageListExample.cxx index 6181a7af4708ba39d8dce8caad721759bf0ad315..18a4576d01c4a6445fcff3e1c085268fe6dbb4a8 100644 --- a/Examples/DataRepresentation/Image/ImageListExample.cxx +++ b/Examples/DataRepresentation/Image/ImageListExample.cxx @@ -43,7 +43,7 @@ #include "otbImageFileWriter.h" #include "otbImage.h" -int main(int argc, char * argv[]) +int main(int itkNotUsed(argc), char * argv[]) { const char * inputFilename = argv[1]; diff --git a/Examples/DimensionReduction/ICAExample.cxx b/Examples/DimensionReduction/ICAExample.cxx index e3f572ffd31f246b19119ed60e3545ceddbd61fb..e92b8ecfb9f2a7fb828ec8aa54f661bcab3b6224 100644 --- a/Examples/DimensionReduction/ICAExample.cxx +++ b/Examples/DimensionReduction/ICAExample.cxx @@ -53,7 +53,7 @@ // Software Guide : EndCodeSnippet -int main(int argc, char* argv[]) +int main(int itkNotUsed(argc), char* argv[]) { typedef double PixelType; const unsigned int Dimension = 2; diff --git a/Examples/DimensionReduction/MNFExample.cxx b/Examples/DimensionReduction/MNFExample.cxx index 337dfb4fadfb5068fc4cdcbb726b009eb060de6b..07230bc5d4bbf5c1c4d714e1464b55f0ba267e33 100644 --- a/Examples/DimensionReduction/MNFExample.cxx +++ b/Examples/DimensionReduction/MNFExample.cxx @@ -65,7 +65,7 @@ // Software Guide : EndCodeSnippet -int main(int argc, char* argv[]) +int main(int itkNotUsed(argc), char* argv[]) { typedef double PixelType; const unsigned int Dimension = 2; diff --git a/Examples/DimensionReduction/MaximumAutocorrelationFactor.cxx b/Examples/DimensionReduction/MaximumAutocorrelationFactor.cxx index 8b3cf6f0806ab428dce64267314df1c847995a33..48b89ddf40657c8c2ac35d369640f893cd05f4cf 100644 --- a/Examples/DimensionReduction/MaximumAutocorrelationFactor.cxx +++ b/Examples/DimensionReduction/MaximumAutocorrelationFactor.cxx @@ -47,7 +47,7 @@ #include "otbMaximumAutocorrelationFactorImageFilter.h" // Software Guide : EndCodeSnippet -int main(int argc, char* argv[]) +int main(int itkNotUsed(argc), char* argv[]) { char * infname = argv[1]; char * outfname = argv[2]; diff --git a/Examples/DimensionReduction/NAPCAExample.cxx b/Examples/DimensionReduction/NAPCAExample.cxx index 6e85f4bb6823da38ceb93da138cfb4734aacdacb..10a6559af11a2c181b9a95f7876e22443f725dbd 100644 --- a/Examples/DimensionReduction/NAPCAExample.cxx +++ b/Examples/DimensionReduction/NAPCAExample.cxx @@ -66,7 +66,7 @@ // Software Guide : EndCodeSnippet -int main(int argc, char* argv[]) +int main(int itkNotUsed(argc), char* argv[]) { typedef double PixelType; const unsigned int Dimension = 2; diff --git a/Examples/DimensionReduction/PCAExample.cxx b/Examples/DimensionReduction/PCAExample.cxx index 040982fe3b61b4b7bbf99d6fe66ad837583cf564..effc860babd4b2493768dc06d7ff8d29869981fd 100644 --- a/Examples/DimensionReduction/PCAExample.cxx +++ b/Examples/DimensionReduction/PCAExample.cxx @@ -43,7 +43,7 @@ #include "otbPCAImageFilter.h" // Software Guide : EndCodeSnippet -int main(int argc, char* argv[]) +int main(int itkNotUsed(argc), char* argv[]) { typedef double PixelType; const unsigned int Dimension = 2; diff --git a/Examples/DisparityMap/FineRegistrationImageFilterExample.cxx b/Examples/DisparityMap/FineRegistrationImageFilterExample.cxx index 4b4ba8e651ced016d03121723b0c5b58f9c6a51f..d90b9b2c656538c32517436f41cd5953dfb7e57a 100644 --- a/Examples/DisparityMap/FineRegistrationImageFilterExample.cxx +++ b/Examples/DisparityMap/FineRegistrationImageFilterExample.cxx @@ -73,8 +73,6 @@ int main(int argc, char** argv) typedef double PixelType; typedef itk::Vector<double, ImageDimension> DisplacementPixelType; - typedef double CoordinateRepresentationType; - typedef unsigned char OutputPixelType; typedef otb::Image<OutputPixelType, ImageDimension> OutputImageType; diff --git a/Examples/DisparityMap/NCCRegistrationFilterExample.cxx b/Examples/DisparityMap/NCCRegistrationFilterExample.cxx index 6347f3619c0ac7f45f6e678575ced40123ce0388..64e78889df205e9572ea3f7e7be13fda38ce7876 100644 --- a/Examples/DisparityMap/NCCRegistrationFilterExample.cxx +++ b/Examples/DisparityMap/NCCRegistrationFilterExample.cxx @@ -67,8 +67,6 @@ int main(int argc, char** argv) typedef double PixelType; typedef itk::Vector<double, ImageDimension> DisplacementPixelType; - typedef double CoordinateRepresentationType; - typedef unsigned char OutputPixelType; typedef otb::Image<OutputPixelType, ImageDimension> OutputImageType; diff --git a/Examples/DisparityMap/SimpleDisparityMapEstimationExample.cxx b/Examples/DisparityMap/SimpleDisparityMapEstimationExample.cxx index aa2bb92bc8fcfad3de1fa92c438a3c44e4f5d467..36e0fba10408f57343fd19d98189717eb5e745b6 100644 --- a/Examples/DisparityMap/SimpleDisparityMapEstimationExample.cxx +++ b/Examples/DisparityMap/SimpleDisparityMapEstimationExample.cxx @@ -159,10 +159,6 @@ int main(int argc, char* argv[]) // Software Guide : EndCodeSnippet typedef PointSetType::PointType PointType; - typedef PointSetType::PointsContainer::Iterator PointSetIteratorType; - typedef PointSetType::PointsContainer PointsContainerType; - typedef PointSetType::PointDataContainer::Iterator PointDataIteratorType; - typedef PointSetType::PointDataContainer PointDataContainerType; // Software Guide : BeginLatex // diff --git a/Examples/DisparityMap/StereoReconstructionExample.cxx b/Examples/DisparityMap/StereoReconstructionExample.cxx index fa493eeb050dbd0575e0c6e9b8626186a06439b6..c7e92205b35d1e15c204dcfb1ca527fce843155b 100644 --- a/Examples/DisparityMap/StereoReconstructionExample.cxx +++ b/Examples/DisparityMap/StereoReconstructionExample.cxx @@ -76,12 +76,6 @@ int main(int argc, char* argv[]) typedef otb::Image<float,2> FloatImageType; typedef otb::VectorImage<float,2> FloatVectorImageType; - typedef otb::ImageList<FloatImageType> ImageListType; - - typedef otb::ImageListToVectorImageFilter - <ImageListType, - FloatVectorImageType> ImageListToVectorImageFilterType; - typedef otb::ImageFileReader <FloatImageType> ImageReaderType; @@ -274,7 +268,7 @@ int main(int argc, char* argv[]) #else std::string leftExpr = "if(inleft != 0,255,0)"; #endif - + m_LBandMathFilter->SetExpression(leftExpr); BandMathFilterType::Pointer m_RBandMathFilter = BandMathFilterType::New(); diff --git a/Examples/FeatureExtraction/ComplexMomentPathExample.cxx b/Examples/FeatureExtraction/ComplexMomentPathExample.cxx index 867ab4f7aa2d519c3b4fdc3a55e728ed8b45e694..3da44a3a5904f16202d23c4987d30f6655a3c4b3 100644 --- a/Examples/FeatureExtraction/ComplexMomentPathExample.cxx +++ b/Examples/FeatureExtraction/ComplexMomentPathExample.cxx @@ -56,8 +56,6 @@ int main(int argc, char * argv[]) unsigned int P((unsigned char) ::atoi(argv[1])); unsigned int Q((unsigned char) ::atoi(argv[2])); - typedef unsigned char InputPixelType; - // Software Guide : BeginLatex // // The \doxygen{otb}{ComplexMomentPathFunction} is templated over the diff --git a/Examples/FeatureExtraction/EdgeDensityExample.cxx b/Examples/FeatureExtraction/EdgeDensityExample.cxx index cf669686f916a3875a01ae2b6361c4a28ed54f9f..dc3db25a2b4887caf3b82699f11fb3ff06c8db0b 100644 --- a/Examples/FeatureExtraction/EdgeDensityExample.cxx +++ b/Examples/FeatureExtraction/EdgeDensityExample.cxx @@ -59,7 +59,7 @@ #include "otbBinaryImageDensityFunction.h" // Software Guide : EndCodeSnippet -int main(int argc, char* argv[]) +int main(int itkNotUsed(argc), char* argv[]) { const char * infname = argv[1]; diff --git a/Examples/FeatureExtraction/ExtractRoadByStepsExample.cxx b/Examples/FeatureExtraction/ExtractRoadByStepsExample.cxx index b15f27847db3d8688795345f320026bcc853c273..ea3abe7ed61f2bb687c1f5690f3091d8cfa2c9fc 100644 --- a/Examples/FeatureExtraction/ExtractRoadByStepsExample.cxx +++ b/Examples/FeatureExtraction/ExtractRoadByStepsExample.cxx @@ -73,7 +73,7 @@ // 228 316 207 282 0.00005 1.0 // Software Guide : EndCommandLineArgs -int main(int argc, char * argv[]) +int main(int itkNotUsed(argc), char * argv[]) { const unsigned int Dimension = 2; @@ -82,7 +82,6 @@ int main(int argc, char * argv[]) typedef itk::CovariantVector<PixelType, Dimension> VectorPixelType; typedef otb::Image<PixelType, Dimension> InternalImageType; typedef otb::VectorImage<PixelType, Dimension> MultiSpectralImageType; - typedef otb::Image<OutputPixelType, Dimension> OutputImageType; typedef otb::Image<VectorPixelType, Dimension> VectorImageType; typedef otb::PolyLineParametricPathWithValue<double, Dimension> PathType; diff --git a/Examples/FeatureExtraction/ExtractSegmentsByStepsExample.cxx b/Examples/FeatureExtraction/ExtractSegmentsByStepsExample.cxx index ee009126f034fd6077341fbb352d46b469fca5eb..7e9b68102b59608f43eb38e1689f9cf88cd78ca0 100644 --- a/Examples/FeatureExtraction/ExtractSegmentsByStepsExample.cxx +++ b/Examples/FeatureExtraction/ExtractSegmentsByStepsExample.cxx @@ -88,8 +88,6 @@ int main(int argc, char * argv[]) typedef otb::Image<OutputPixelType, 2> OutputImageType; // Software Guide : EndCodeSnippet - typedef otb::LineSpatialObjectList LinesListType; - // Software Guide : BeginLatex // // The filter can be instantiated using the image types defined above. diff --git a/Examples/FeatureExtraction/LocalHoughExample.cxx b/Examples/FeatureExtraction/LocalHoughExample.cxx index 3e02352bf3f89778e9c4fba17e8216b502044399..b350a4bf68ee6f867f8f6ed5ed70720c935673f8 100644 --- a/Examples/FeatureExtraction/LocalHoughExample.cxx +++ b/Examples/FeatureExtraction/LocalHoughExample.cxx @@ -78,8 +78,6 @@ int main(int argc, char * argv[]) typedef otb::Image<OutputPixelType, 2> OutputImageType; // Software Guide : EndCodeSnippet - typedef otb::LineSpatialObjectList LinesListType; - // Software Guide : BeginLatex // // The filter can be instantiated using the image types defined above. diff --git a/Examples/FeatureExtraction/SFSExample.cxx b/Examples/FeatureExtraction/SFSExample.cxx index 07ddd0b965e6c1b818b2014c8af5a11766d0d362..189519709a0257c218c79f83c343ab6bfa564210 100644 --- a/Examples/FeatureExtraction/SFSExample.cxx +++ b/Examples/FeatureExtraction/SFSExample.cxx @@ -45,7 +45,7 @@ #include "otbSFSTexturesImageFilter.h" // Software Guide : EndCodeSnippet -int main(int argc, char * argv[]) +int main(int itkNotUsed(argc), char * argv[]) { typedef double PixelType; const unsigned int Dimension = 2; diff --git a/Examples/FeatureExtraction/SeamCarvingExample.cxx b/Examples/FeatureExtraction/SeamCarvingExample.cxx index ed19ca151c2531cd5c4aa2c9abe4aef59306522b..74b53a9c0a532d1bd515f1d29db1d639a2b6bd22 100644 --- a/Examples/FeatureExtraction/SeamCarvingExample.cxx +++ b/Examples/FeatureExtraction/SeamCarvingExample.cxx @@ -48,7 +48,7 @@ #include "itkImageDuplicator.h" -int main(int argc, char * argv[]) +int main(int itkNotUsed(argc), char * argv[]) { typedef float InputPixelType; diff --git a/Examples/FeatureExtraction/SeamCarvingOtherExample.cxx b/Examples/FeatureExtraction/SeamCarvingOtherExample.cxx index 5384fd08c25008c155d7877d8bdd7bff263ae379..1fdedcc7ee98b3a6bc12cb96b164bbf3f37de857 100644 --- a/Examples/FeatureExtraction/SeamCarvingOtherExample.cxx +++ b/Examples/FeatureExtraction/SeamCarvingOtherExample.cxx @@ -50,7 +50,7 @@ #include "itkImageDuplicator.h" #include "otbObjectList.h" -int main(int argc, char * argv[]) +int main(int itkNotUsed(argc), char * argv[]) { typedef float InputPixelType; diff --git a/Examples/Fusion/BayesianFusionImageFilter.cxx b/Examples/Fusion/BayesianFusionImageFilter.cxx index 0a5d426dc0ab64af0a9e9c9dccf5aa31b1b0d1bc..e5d458cd32e0c63897d1b3bfb4f5327d7f7da111 100644 --- a/Examples/Fusion/BayesianFusionImageFilter.cxx +++ b/Examples/Fusion/BayesianFusionImageFilter.cxx @@ -211,16 +211,11 @@ int main(int argc, char *argv[]) typedef otb::VectorRescaleIntensityImageFilter<OutputImageType, OutputVectorImageType> VectorRescalerBayesianType; - typedef otb::Image<OutputPixelType2, - Dimension> - PanchroOutputImageType; typedef otb::ImageToVectorImageCastFilter<PanchroImageType, MultiSpecImageType> CasterType; typedef otb::MultiChannelExtractROI<OutputPixelType2, OutputPixelType2> ChannelExtractorType; - typedef otb::ImageFileWriter<PanchroOutputImageType> - WriterType2; multiSpectReader->GenerateOutputInformation(); multiSpectInterpReader->GenerateOutputInformation(); diff --git a/Examples/Hyperspectral/HyperspectralUnmixingExample.cxx b/Examples/Hyperspectral/HyperspectralUnmixingExample.cxx index 423acc71e89db0a6143c245d64bd1b1dc60b0a1c..6c4ca29ffe2c4db7f0c97f2baee365777740bfba 100644 --- a/Examples/Hyperspectral/HyperspectralUnmixingExample.cxx +++ b/Examples/Hyperspectral/HyperspectralUnmixingExample.cxx @@ -60,8 +60,6 @@ int main(int argc, char * argv[]) const unsigned int Dimension = 2; typedef double PixelType; - typedef otb::VectorImage<unsigned char, 2> OutputPrettyImageType; - // Software Guide : BeginLatex // // We start by defining the types for the images and the reader and @@ -78,12 +76,8 @@ int main(int argc, char * argv[]) // Software Guide : EndCodeSnippet typedef otb::VectorRescaleIntensityImageFilter<ImageType, ImageType> RescalerType; - typedef otb::StreamingStatisticsVectorImageFilter<ImageType> StreamingStatisticsVectorImageFilterType; typedef otb::VectorImageToMatrixImageFilter<ImageType> VectorImageToMatrixImageFilterType; - typedef vnl_vector<double> VectorType; - typedef vnl_matrix<double> MatrixType; - // Software Guide : BeginLatex // // We instantiate now the image reader and we set the image file name. diff --git a/Examples/IO/HDFReaderExample.cxx b/Examples/IO/HDFReaderExample.cxx index fa6a3516e4f9ef01fa1c4df1ef6c962a60326862..652d8902be93b7b290b337e99a7708bc3efc8967 100644 --- a/Examples/IO/HDFReaderExample.cxx +++ b/Examples/IO/HDFReaderExample.cxx @@ -49,7 +49,7 @@ #include "otbImageFileReader.h" #include "otbImageFileWriter.h" -int main(int argc, char * argv[]) +int main(int itkNotUsed(argc), char * argv[]) { // Software Guide : EndCodeSnippet diff --git a/Examples/IO/MetadataExample.cxx b/Examples/IO/MetadataExample.cxx index 1f5c47b149197de9339e5d17f40fb73cbc7a5a86..bd0ef8f47e561b3d6e9a6e9620906114dae07f72 100644 --- a/Examples/IO/MetadataExample.cxx +++ b/Examples/IO/MetadataExample.cxx @@ -43,7 +43,7 @@ #include "otbImage.h" #include "otbImageFileReader.h" -int main(int argc, char* argv[]) +int main(int itkNotUsed(argc), char* argv[]) { // Verify the number of parameters in the command line diff --git a/Examples/IO/VectorDataIOExample.cxx b/Examples/IO/VectorDataIOExample.cxx index e373bdcbdf6101cbc57198eec4d60387211c5850..6d7be2f7a1bf46e22c71a5f0ef3cb3811b03072a 100644 --- a/Examples/IO/VectorDataIOExample.cxx +++ b/Examples/IO/VectorDataIOExample.cxx @@ -122,11 +122,8 @@ int main(int argc, char * argv[]) // Software Guide : BeginCodeSnippet typedef otb::Polygon<double> PolygonType; - typedef PolygonType::VertexListConstIteratorType PolygonIteratorType; typedef otb::ObjectList<PolygonType> PolygonListType; - typedef PolygonListType::Iterator PolygonListIteratorType; - PolygonListType::Pointer polygonList = PolygonListType::New(); // Software Guide : EndCodeSnippet // Software Guide : BeginLatex diff --git a/Examples/Iterators/ImageLinearIteratorWithIndex2.cxx b/Examples/Iterators/ImageLinearIteratorWithIndex2.cxx index 8ff2da25160dd4a5a8c4490fe1219ed497abaf6f..8fc87a9e9d4bce4bccd6202cbe858253401f3a9b 100644 --- a/Examples/Iterators/ImageLinearIteratorWithIndex2.cxx +++ b/Examples/Iterators/ImageLinearIteratorWithIndex2.cxx @@ -89,7 +89,6 @@ int main(int argc, char *argv[]) typedef Image4DType::IndexType Index4DType; typedef Image4DType::SizeType Size4DType; - typedef Image4DType::RegionType Region4DType; typedef Image4DType::SpacingType Spacing4DType; typedef Image4DType::PointType Origin4DType; diff --git a/Examples/Learning/SOMExample.cxx b/Examples/Learning/SOMExample.cxx index c98708a92eb5078fce215a7422373d2eb7e60385..ce300f9b752d6c314fc53690863ab7a28a2225f9 100644 --- a/Examples/Learning/SOMExample.cxx +++ b/Examples/Learning/SOMExample.cxx @@ -77,7 +77,7 @@ #include "otbImageFileWriter.h" #include "itkListSample.h" -int main(int argc, char* argv[]) +int main(int itkNotUsed(argc), char* argv[]) { const char * inputFileName = argv[1]; const char * outputFileName = argv[2]; diff --git a/Examples/Learning/SVMGenericKernelImageClassificationExample.cxx b/Examples/Learning/SVMGenericKernelImageClassificationExample.cxx index 9f6bd08a9f926b0945e24bd0e800b57b2f0f55e4..c2e7a7737684cf8c9cf2d2a9da5b3f14f684f140 100644 --- a/Examples/Learning/SVMGenericKernelImageClassificationExample.cxx +++ b/Examples/Learning/SVMGenericKernelImageClassificationExample.cxx @@ -64,7 +64,6 @@ int main(int argc, char* argv[]) const char * outputFilename = argv[2]; typedef double PixelType; - typedef std::vector<PixelType> VectorType; typedef int LabelPixelType; const unsigned int Dimension = 2; diff --git a/Examples/Learning/SVMImageClassificationExample.cxx b/Examples/Learning/SVMImageClassificationExample.cxx index d37b97e7b85d987d91dcfa2e6c9f28fa4af3eae1..159091c20c313460dfe19b7239b0a2a60ac48666 100644 --- a/Examples/Learning/SVMImageClassificationExample.cxx +++ b/Examples/Learning/SVMImageClassificationExample.cxx @@ -82,7 +82,6 @@ int main(int argc, char* argv[]) // Software Guide : BeginCodeSnippet typedef double PixelType; - typedef std::vector<PixelType> VectorType; typedef int LabelPixelType; // Software Guide : EndCodeSnippet const unsigned int Dimension = 2; diff --git a/Examples/Learning/SVMImageEstimatorClassificationMultiExample.cxx b/Examples/Learning/SVMImageEstimatorClassificationMultiExample.cxx index 9f71bcc22b26da5071aa65b195ce4a5714f66bb6..a5f59464a16dd72d9d24b2d68d1737640687e928 100644 --- a/Examples/Learning/SVMImageEstimatorClassificationMultiExample.cxx +++ b/Examples/Learning/SVMImageEstimatorClassificationMultiExample.cxx @@ -63,7 +63,7 @@ #include "otbImageFileReader.h" -int main(int argc, char *argv[]) +int main(int itkNotUsed(argc), char *argv[]) { const char* inputImageFileName = argv[1]; diff --git a/Examples/Learning/SVMImageModelEstimatorExample.cxx b/Examples/Learning/SVMImageModelEstimatorExample.cxx index e660da22c29c8a8a35ba25c08d6d17127720bd7e..6dabad090ef78bb40ba04e03512261027fda1f6c 100644 --- a/Examples/Learning/SVMImageModelEstimatorExample.cxx +++ b/Examples/Learning/SVMImageModelEstimatorExample.cxx @@ -53,7 +53,7 @@ #include "otbImageFileReader.h" -int main(int argc, char* argv[]) +int main(int itkNotUsed(argc), char* argv[]) { const char* inputImageFileName = argv[1]; diff --git a/Examples/Learning/SVMPointSetClassificationExample.cxx b/Examples/Learning/SVMPointSetClassificationExample.cxx index 2b92c8072b7f17d937df28f8e4e548c6697a758b..8b3968fb5cdb3aa733f5e5e21acaa08348d58d16 100644 --- a/Examples/Learning/SVMPointSetClassificationExample.cxx +++ b/Examples/Learning/SVMPointSetClassificationExample.cxx @@ -46,7 +46,7 @@ #include "otbSVMClassifier.h" // Software Guide : EndCodeSnippet -int main(int argc, char* argv[]) +int main(int itkNotUsed(argc), char* argv[]) { // Software Guide : BeginLatex // @@ -76,8 +76,6 @@ int main(int argc, char* argv[]) // Software Guide : BeginCodeSnippet typedef itk::PointSet<InputVectorType, Dimension> MeasurePointSetType; - - typedef itk::PointSet<LabelPixelType, Dimension> LabelPointSetType; // Software Guide : EndCodeSnippet // Software Guide : BeginLatex @@ -91,10 +89,7 @@ int main(int argc, char* argv[]) // Software Guide : BeginCodeSnippet typedef MeasurePointSetType::PointType MeasurePointType; - typedef LabelPointSetType::PointType LabelPointType; - typedef MeasurePointSetType::PointsContainer MeasurePointsContainer; - typedef LabelPointSetType::PointsContainer LabelPointsContainer; MeasurePointSetType::Pointer tPSet = MeasurePointSetType::New(); MeasurePointsContainer::Pointer tCont = MeasurePointsContainer::New(); diff --git a/Examples/Learning/SVMPointSetExample.cxx b/Examples/Learning/SVMPointSetExample.cxx index b73d1c20530b80ca82d3addfbefe365dda50b0f7..95086099edf98e9b43fe2ea03b2dcbb48e117de1 100644 --- a/Examples/Learning/SVMPointSetExample.cxx +++ b/Examples/Learning/SVMPointSetExample.cxx @@ -27,7 +27,7 @@ #include "itkListSample.h" #include "otbSVMClassifier.h" -int main(int argc, char* argv[]) +int main(int itkNotUsed(argc), char* itkNotUsed(argv)[]) { typedef float InputPixelType; diff --git a/Examples/Learning/SVMPointSetModelEstimatorExample.cxx b/Examples/Learning/SVMPointSetModelEstimatorExample.cxx index 86cdaa2afb56f219361701530c68a4f4d3c5d5b6..453e04e67b6e98a65efef1717cc37b077af0f391 100644 --- a/Examples/Learning/SVMPointSetModelEstimatorExample.cxx +++ b/Examples/Learning/SVMPointSetModelEstimatorExample.cxx @@ -36,7 +36,7 @@ #include "otbSVMPointSetModelEstimator.h" // Software Guide : EndCodeSnippet -int main(int argc, char* argv[]) +int main(int itkNotUsed(argc), char* itkNotUsed(argv)[]) { // Software Guide : BeginLatex diff --git a/Examples/Learning/TrainMachineLearningModelFromImagesExample.cxx b/Examples/Learning/TrainMachineLearningModelFromImagesExample.cxx index 9c76b681778b5f4eed813e2887f2b5832e19c253..7392cfd08871143348a359b6044efbb870ceaa98 100644 --- a/Examples/Learning/TrainMachineLearningModelFromImagesExample.cxx +++ b/Examples/Learning/TrainMachineLearningModelFromImagesExample.cxx @@ -52,7 +52,7 @@ //#include "otbShiftScaleSampleListFilter.h" -int main(int argc, char* argv[]) +int main(int itkNotUsed(argc), char* argv[]) { const char* inputImageFileName = argv[1]; const char* trainingShpFileName = argv[2]; @@ -60,13 +60,8 @@ int main(int argc, char* argv[]) typedef unsigned int InputPixelType; const unsigned int Dimension = 2; - - typedef otb::VectorImage<InputPixelType, Dimension> InputImageType; - typedef otb::Image<InputImageType::InternalPixelType, 2> ImageType; - typedef otb::VectorData<double, 2> VectorDataType; - typedef otb::ImageFileReader<InputImageType> InputReaderType; typedef otb::VectorDataFileReader<VectorDataType> VectorDataReaderType; @@ -189,4 +184,3 @@ int main(int argc, char* argv[]) // Software Guide : EndLatex } - diff --git a/Examples/Learning/TrainMachineLearningModelFromSamplesExample.cxx b/Examples/Learning/TrainMachineLearningModelFromSamplesExample.cxx index ecfc1bf0411ca0abf38c293e7906e70e800d4716..8f248ef79f1129d8f65a3e4099be44ac81e38815 100644 --- a/Examples/Learning/TrainMachineLearningModelFromSamplesExample.cxx +++ b/Examples/Learning/TrainMachineLearningModelFromSamplesExample.cxx @@ -76,7 +76,7 @@ int main(int argc, char* argv[]) int nbClasses = 4; // Software Guide : EndCodeSnippet - unsigned int inputSeed = 121212; +// unsigned int inputSeed = 121212; const char* outputModelFileName = argv[1]; //argv[5]; @@ -180,4 +180,3 @@ int main(int argc, char* argv[]) // Software Guide : EndCodeSnippet } - diff --git a/Examples/MultiScale/MorphologicalPyramidSegmentationExample.cxx b/Examples/MultiScale/MorphologicalPyramidSegmentationExample.cxx index 5bdcf75398dffa44b422801ef272c8c3c408e5bf..1933d77a1f81062d03b90f11bf65d3eae8df588b 100644 --- a/Examples/MultiScale/MorphologicalPyramidSegmentationExample.cxx +++ b/Examples/MultiScale/MorphologicalPyramidSegmentationExample.cxx @@ -73,7 +73,7 @@ #include "otbImage.h" #include "itkMacro.h" -int main(int argc, char * argv[]) +int main(int itkNotUsed(argc), char * argv[]) { const char* inputFilename = argv[1]; diff --git a/Examples/MultiScale/MorphologicalPyramidSegmenterExample.cxx b/Examples/MultiScale/MorphologicalPyramidSegmenterExample.cxx index 2d012c46fb085da9a4f2095002ae588c0b5c4367..612222c2d28bd715bf263a8307940029b8c0d71a 100644 --- a/Examples/MultiScale/MorphologicalPyramidSegmenterExample.cxx +++ b/Examples/MultiScale/MorphologicalPyramidSegmenterExample.cxx @@ -49,7 +49,7 @@ #include "itkUnaryFunctorImageFilter.h" #include "itkScalarToRGBPixelFunctor.h" -int main(int argc, char * argv[]) +int main(int itkNotUsed(argc), char * argv[]) { const char* inputFilename = argv[1]; diff --git a/Examples/OBIA/KeepNObjects.cxx b/Examples/OBIA/KeepNObjects.cxx index d3e5463440fc51261a0c01f713567146902bba5c..6e0bfc81083ce33847420059db1cd756719da897 100644 --- a/Examples/OBIA/KeepNObjects.cxx +++ b/Examples/OBIA/KeepNObjects.cxx @@ -71,8 +71,6 @@ int main(int argc, char * argv[]) typedef itk::StatisticsLabelMapFilter<LabelMapType, IType> LabelObjectValuatorType; - typedef LabelObjectType::AttributeType - AttributeType; typedef itk::StatisticsKeepNObjectsLabelMapFilter<LabelMapType> KeepNObjectsType; typedef itk::LabelMapToLabelImageFilter<LabelMapType, diff --git a/Examples/OBIA/LabelMapToVectorData.cxx b/Examples/OBIA/LabelMapToVectorData.cxx index 4e13b90c7a24e79e2e587a055462d9ca5a08e0ef..1546ed9e1dc60dded29e1702feb86497baa353a1 100644 --- a/Examples/OBIA/LabelMapToVectorData.cxx +++ b/Examples/OBIA/LabelMapToVectorData.cxx @@ -106,15 +106,7 @@ int main(int argc, char * argv[]) typedef itk::LabelImageToLabelMapFilter<LabeledImageType, LabelMapType> LabelMapFilterType; - typedef otb::Polygon<double> - PolygonType; - typedef otb::Functor::LabelObjectToPolygonFunctor<LabelObjectType, - PolygonType> FunctorType; - // Software Guide : EndCodeSnippet - typedef VectorDataType::DataNodeType DataNodeType; - - typedef otb::VectorDataProjectionFilter<VectorDataType, - VectorDataType> VectorDataFilterType; + // Software Guide : EndCodeSnippet LabeledReaderType::Pointer lreader = LabeledReaderType::New(); WriterType::Pointer writer = WriterType::New(); diff --git a/Examples/OBIA/RadiometricAttributesLabelMapFilterExample.cxx b/Examples/OBIA/RadiometricAttributesLabelMapFilterExample.cxx index d53ba47d0ea8be37e9d6438913f02b00aceceb43..2e625f4cf56954a37112af617ec039f5f874ddae 100644 --- a/Examples/OBIA/RadiometricAttributesLabelMapFilterExample.cxx +++ b/Examples/OBIA/RadiometricAttributesLabelMapFilterExample.cxx @@ -113,9 +113,6 @@ int main(int argc, char * argv[]) LabelMapFilterType; typedef otb::ShapeAttributesLabelMapFilter<LabelMapType> ShapeLabelMapFilterType; - typedef otb::BandsStatisticsAttributesLabelMapFilter<LabelMapType, - ImageType> - StatisticsLabelMapFilterType; typedef otb::BandsStatisticsAttributesLabelMapFilter<LabelMapType, VectorImageType> RadiometricLabelMapFilterType; diff --git a/Examples/Simulation/LAIAndPROSAILToSensorResponse.cxx b/Examples/Simulation/LAIAndPROSAILToSensorResponse.cxx index 39e63e20fa4d0abb1e134c92cbcd2d54e70fdb04..145384e74fa717cd154db807f14bb8233ca991ad 100644 --- a/Examples/Simulation/LAIAndPROSAILToSensorResponse.cxx +++ b/Examples/Simulation/LAIAndPROSAILToSensorResponse.cxx @@ -109,8 +109,6 @@ public: ArrayType GetUniqueValues() const { - typedef typename ImageType::IndexType IndexType; - if( !m_Image ) { itkExceptionMacro(<<"GetUniqueValues(): Null input image pointer."); @@ -345,7 +343,7 @@ public: ReduceResponseTypePointerType reduceResponse = ReduceResponseType::New(); reduceResponse->SetInputSatRSR(m_SatRSR); reduceResponse->SetInputSpectralResponse(aResponse); - + reduceResponse->SetReflectanceMode(true); reduceResponse->CalculateResponse(); @@ -923,5 +921,3 @@ int main(int argc, char *argv[]) return EXIT_SUCCESS; } - - diff --git a/Examples/Tutorials/HelloWorldOTB.cxx b/Examples/Tutorials/HelloWorldOTB.cxx index 09e1750d4d7c19ede903936ad67a70e4f6bb2c40..8a3f06c4a08dc7e402dccdc8e0a7ad1ec8d9a0ae 100644 --- a/Examples/Tutorials/HelloWorldOTB.cxx +++ b/Examples/Tutorials/HelloWorldOTB.cxx @@ -28,7 +28,7 @@ #include "otbImage.h" #include <iostream> -int main(int argc, char * argv[]) +int main(int itkNotUsed(argc), char * itkNotUsed(argv)[]) { typedef otb::Image<unsigned short, 2> ImageType; diff --git a/Testing/Code/Learning/otbImageClassificationFilter.cxx b/Testing/Code/Learning/otbImageClassificationFilter.cxx index ab7c364a770546111e5171e6efac3ea091a6d629..f2e37b8ab5c77d3e0490368c2e47b782c84cd162 100644 --- a/Testing/Code/Learning/otbImageClassificationFilter.cxx +++ b/Testing/Code/Learning/otbImageClassificationFilter.cxx @@ -42,7 +42,7 @@ int otbImageClassificationFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv return EXIT_SUCCESS; } -int otbImageClassificationFilter(int argc, char * argv[]) +int otbImageClassificationFilter(int itkNotUsed(argc), char * argv[]) { const char * infname = argv[1]; const char * modelfname = argv[2];