Commit e5a0230c authored by Rashad Kanavath's avatar Rashad Kanavath

WRG: cleared wunsed-parameter and wunused-localtypedefs in Code/Testing/

parent a5177bd8
......@@ -78,7 +78,7 @@ public:
this->Modified();
}
virtual double GetSingleValue(const InputImagePixelType& value1, const LabelledImagePixelType& value2)
virtual double GetSingleValue(const InputImagePixelType& itkNotUsed(value1), const LabelledImagePixelType& itkNotUsed(value2))
{
itkExceptionMacro(<< "GetSingleValue() has to be declared in child classes.");
}
......@@ -181,7 +181,7 @@ public:
this->Modified();
}
virtual double GetSingleValue(const LabelledImagePixelType& value1, const LabelledImagePixelType& value2)
virtual double GetSingleValue(const LabelledImagePixelType& itkNotUsed(value1), const LabelledImagePixelType& itkNotUsed(value2))
{
itkExceptionMacro(<< "GetSingleValue() has to be declared in child classes.");
}
......
......@@ -43,7 +43,7 @@ template <class TInputLabelMap, class TOutputListSample, class TMeasurementFunct
typename LabelMapToSampleListFilter<TInputLabelMap,TOutputListSample,TMeasurementFunctor>
::DataObjectPointerType
LabelMapToSampleListFilter<TInputLabelMap,TOutputListSample,TMeasurementFunctor>
::MakeOutput(unsigned int idx)
::MakeOutput(unsigned int itkNotUsed(idx))
{
DataObjectPointerType output;
output = static_cast<itk::DataObject*>(OutputSampleListType::New().GetPointer());
......
......@@ -245,8 +245,6 @@ PersistentObjectDetectionClassifier<TInputImage, TOutputVectorData, TLabel, TFun
SVMModelType* model = static_cast<SVMModelType*>(this->itk::ProcessObject::GetInput(1));
typedef typename RegionType::IndexType IndexType;
typedef typename RegionType::IndexValueType IndexValueType;
IndexType begin = outputRegionForThread.GetIndex();
IndexType end = begin;
end[0] += outputRegionForThread.GetSize(0);
......
......@@ -23,7 +23,7 @@
#include "otbWrapperApplicationRegistry.h"
#include "otbWrapperApplication.h"
int otbWrapperApplicationHtmlDocGeneratorNew(int argc, char* argv[])
int otbWrapperApplicationHtmlDocGeneratorNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
typedef otb::Wrapper::ApplicationHtmlDocGenerator DocGeneratorType;
DocGeneratorType generator;
......@@ -31,7 +31,7 @@ int otbWrapperApplicationHtmlDocGeneratorNew(int argc, char* argv[])
return EXIT_SUCCESS;
}
int otbWrapperApplicationHtmlDocGeneratorTest1(int argc, char* argv[])
int otbWrapperApplicationHtmlDocGeneratorTest1(int argc, char * argv[])
{
if (argc != 5)
{
......
......@@ -21,7 +21,7 @@
#include "otbWrapperApplicationRegistry.h"
int otbWrapperApplicationRegistry(int argc, char* argv[])
int otbWrapperApplicationRegistry(int itkNotUsed(argc), char* itkNotUsed(argv)[])
{
using otb::Wrapper::ApplicationRegistry;
std::vector<std::string> list = ApplicationRegistry::GetAvailableApplications();
......
......@@ -21,9 +21,9 @@
#include "otbWrapperApplication.h"
int otbWrapperApplicationNew(int argc, char* argv[])
int otbWrapperApplicationNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
typedef otb::Wrapper::Application ApplicationType;
// typedef otb::Wrapper::Application ApplicationType;
// ApplicationType application = ApplicationType::New();
return EXIT_SUCCESS;
}
......@@ -21,7 +21,7 @@
#include "otbWrapperChoiceParameter.h"
int otbWrapperChoiceParameterNew(int argc, char* argv[])
int otbWrapperChoiceParameterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
typedef otb::Wrapper::ChoiceParameter ChoiceParameterType;
ChoiceParameterType::Pointer parameter = ChoiceParameterType::New();
......@@ -29,7 +29,7 @@ int otbWrapperChoiceParameterNew(int argc, char* argv[])
return EXIT_SUCCESS;
}
int otbWrapperChoiceParameterTest1(int argc, char* argv[])
int otbWrapperChoiceParameterTest1(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
// TODO
return EXIT_FAILURE;
......
......@@ -23,7 +23,7 @@
#include "itksys/SystemTools.hxx"
#include <fstream>
int otbWrapperDocExampleStructureNew(int argc, char* argv[])
int otbWrapperDocExampleStructureNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
typedef otb::Wrapper::DocExampleStructure DocExampleStructureType;
DocExampleStructureType::Pointer docStruct = DocExampleStructureType::New();
......@@ -32,7 +32,7 @@ int otbWrapperDocExampleStructureNew(int argc, char* argv[])
}
int otbWrapperDocExampleStructureTest(int argc, char* argv[])
int otbWrapperDocExampleStructureTest(int itkNotUsed(argc), char* argv[])
{
typedef otb::Wrapper::DocExampleStructure DocExampleStructureType;
DocExampleStructureType::Pointer docStruct = DocExampleStructureType::New();
......
......@@ -21,7 +21,7 @@
#include "otbWrapperEmptyParameter.h"
int otbWrapperEmptyParameterNew(int argc, char* argv[])
int otbWrapperEmptyParameterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
typedef otb::Wrapper::EmptyParameter EmptyParameterType;
EmptyParameterType::Pointer parameter = EmptyParameterType::New();
......
......@@ -21,7 +21,7 @@
#include "otbWrapperInputImageListParameter.h"
int otbWrapperInputImageListParameterNew(int argc, char* argv[])
int otbWrapperInputImageListParameterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
typedef otb::Wrapper::InputImageListParameter ParameterType;
ParameterType::Pointer parameter = ParameterType::New();
......@@ -30,7 +30,7 @@ int otbWrapperInputImageListParameterNew(int argc, char* argv[])
}
int otbWrapperInputImageListParameterTest1(int argc, char* argv[])
int otbWrapperInputImageListParameterTest1(int itkNotUsed(argc), char* argv[])
{
typedef otb::Wrapper::InputImageListParameter ParameterType;
ParameterType::Pointer param = ParameterType::New();
......
......@@ -21,7 +21,7 @@
#include "otbWrapperInputImageParameter.h"
int otbWrapperInputImageParameterNew(int argc, char* argv[])
int otbWrapperInputImageParameterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
typedef otb::Wrapper::InputImageParameter InputImageParameterType;
InputImageParameterType::Pointer parameter = InputImageParameterType::New();
......@@ -29,7 +29,7 @@ int otbWrapperInputImageParameterNew(int argc, char* argv[])
return EXIT_SUCCESS;
}
int otbWrapperInputImageParameterTest1(int argc, char* argv[])
int otbWrapperInputImageParameterTest1(int itkNotUsed(argc), char* argv[])
{
typedef otb::Wrapper::InputImageParameter InputImageParameterType;
InputImageParameterType::Pointer param = InputImageParameterType::New();
......
......@@ -21,7 +21,7 @@
#include "otbWrapperInputVectorDataListParameter.h"
int otbWrapperInputVectorDataListParameterNew(int argc, char* argv[])
int otbWrapperInputVectorDataListParameterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
typedef otb::Wrapper::InputVectorDataListParameter ParameterType;
ParameterType::Pointer parameter = ParameterType::New();
......@@ -30,7 +30,7 @@ int otbWrapperInputVectorDataListParameterNew(int argc, char* argv[])
}
int otbWrapperInputVectorDataListParameterTest1(int argc, char* argv[])
int otbWrapperInputVectorDataListParameterTest1(int itkNotUsed(argc), char* argv[])
{
typedef otb::Wrapper::InputVectorDataListParameter ParameterType;
ParameterType::Pointer param = ParameterType::New();
......
......@@ -21,7 +21,7 @@
#include "otbWrapperInputVectorDataParameter.h"
int otbWrapperInputVectorDataParameterNew(int argc, char* argv[])
int otbWrapperInputVectorDataParameterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
typedef otb::Wrapper::InputVectorDataParameter InputVectorDataParameterType;
InputVectorDataParameterType::Pointer parameter = InputVectorDataParameterType::New();
......
......@@ -21,7 +21,7 @@
#include "otbWrapperNumericalParameter.h"
int otbWrapperNumericalParameterNew(int argc, char* argv[])
int otbWrapperNumericalParameterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
typedef otb::Wrapper::NumericalParameter <int> NumericalParameterType;
NumericalParameterType::Pointer parameter = NumericalParameterType::New();
......@@ -30,7 +30,7 @@ int otbWrapperNumericalParameterNew(int argc, char* argv[])
}
int otbWrapperNumericalParameterTest1(int argc, char* argv[])
int otbWrapperNumericalParameterTest1(int itkNotUsed(argc), char* argv[])
{
typedef otb::Wrapper::NumericalParameter <double> NumericalParameterType;
NumericalParameterType::Pointer numParam = NumericalParameterType::New();
......
......@@ -23,7 +23,7 @@
#include "otbImageFileReader.h"
#include "otbWrapperTypes.h"
int otbWrapperOutputImageParameterNew(int argc, char* argv[])
int otbWrapperOutputImageParameterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
typedef otb::Wrapper::OutputImageParameter OutputImageParameterType;
OutputImageParameterType::Pointer parameter = OutputImageParameterType::New();
......@@ -32,7 +32,7 @@ int otbWrapperOutputImageParameterNew(int argc, char* argv[])
}
int otbWrapperOutputImageParameterTest1(int argc, char* argv[])
int otbWrapperOutputImageParameterTest1(int itkNotUsed(argc), char* argv[])
{
typedef otb::Wrapper::OutputImageParameter OutputImageParameterType;
OutputImageParameterType::Pointer param = OutputImageParameterType::New();
......
......@@ -21,7 +21,7 @@
#include "otbWrapperParameterKey.h"
int otbWrapperParameterKey(int argc, char* argv[])
int otbWrapperParameterKey(int itkNotUsed(argc), char* itkNotUsed(argv)[])
{
std::string theKey = "parent.current.child";
......
......@@ -21,7 +21,7 @@
#include "otbWrapperParameterGroup.h"
int otbWrapperParameterListNew(int argc, char* argv[])
int otbWrapperParameterListNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
using otb::Wrapper::ParameterGroup;
ParameterGroup::Pointer parameters = ParameterGroup::New();
......
......@@ -21,7 +21,7 @@
#include "otbWrapperParameter.h"
int otbWrapperParameterNew(int argc, char* argv[])
int otbWrapperParameterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
typedef otb::Wrapper::Parameter ParameterBaseType;
ParameterBaseType::Pointer parameter = ParameterBaseType::New();
......@@ -31,7 +31,7 @@ int otbWrapperParameterNew(int argc, char* argv[])
return EXIT_SUCCESS;
}
int otbWrapperParameterTest1(int argc, char* argv[])
int otbWrapperParameterTest1(int itkNotUsed(argc), char* argv[])
{
typedef otb::Wrapper::Parameter ParameterBaseType;
ParameterBaseType::Pointer parameter = ParameterBaseType::New();
......
......@@ -21,7 +21,7 @@
#include "otbWrapperRAMParameter.h"
int otbWrapperRAMParameterNew(int argc, char* argv[])
int otbWrapperRAMParameterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
typedef otb::Wrapper::RAMParameter RAMParameterType;
RAMParameterType::Pointer parameter = RAMParameterType::New();
......
......@@ -21,7 +21,7 @@
#include "otbWrapperStringListParameter.h"
int otbWrapperStringListParameterNew(int argc, char* argv[])
int otbWrapperStringListParameterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
typedef otb::Wrapper::StringListParameter StringListParameterType;
StringListParameterType::Pointer parameter = StringListParameterType::New();
......@@ -30,7 +30,7 @@ int otbWrapperStringListParameterNew(int argc, char* argv[])
}
int otbWrapperStringListParameterTest1(int argc, char* argv[])
int otbWrapperStringListParameterTest1(int itkNotUsed(argc), char* argv[])
{
typedef otb::Wrapper::StringListParameter StringListParameterType;
StringListParameterType::Pointer numParam = StringListParameterType::New();
......
......@@ -21,7 +21,7 @@
#include "otbWrapperStringParameter.h"
int otbWrapperStringParameterNew(int argc, char* argv[])
int otbWrapperStringParameterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
typedef otb::Wrapper::StringParameter StringParameterType;
StringParameterType::Pointer parameter = StringParameterType::New();
......@@ -30,7 +30,7 @@ int otbWrapperStringParameterNew(int argc, char* argv[])
}
int otbWrapperStringParameterTest1(int argc, char* argv[])
int otbWrapperStringParameterTest1(int itkNotUsed(argc), char* argv[])
{
typedef otb::Wrapper::StringParameter StringParameterType;
StringParameterType::Pointer numParam = StringParameterType::New();
......
......@@ -24,6 +24,7 @@
int otbImageToPointSetFilterTest(int itkNotUsed(argc), char * itkNotUsed(argv) [])
{
/*
const unsigned int Dimension = 2;
typedef unsigned char PixelType;
......@@ -32,6 +33,6 @@ int otbImageToPointSetFilterTest(int itkNotUsed(argc), char * itkNotUsed(argv) [
typedef itk::PointSet<PixelType, Dimension> PointSetType;
//FunctionType::Pointer function = FunctionType::New();
*/
return EXIT_SUCCESS;
}
......@@ -19,7 +19,7 @@
#include "otbImage.h"
#include "otbKullbackLeiblerDistanceImageFilter.h"
int otbKullbackLeiblerDistanceImageFilterNew(int argc, char * argv[])
int otbKullbackLeiblerDistanceImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
const unsigned int Dimension = 2;
typedef double PixelType;
......
......@@ -20,7 +20,7 @@
#include "otbVectorImage.h"
#include "otbKullbackLeiblerProfileImageFilter.h"
int otbKullbackLeiblerProfileImageFilterNew(int argc, char * argv[])
int otbKullbackLeiblerProfileImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
const unsigned int Dimension = 2;
typedef double PixelType;
......
......@@ -19,7 +19,7 @@
#include "otbImage.h"
#include "otbKullbackLeiblerSupervizedDistanceImageFilter.h"
int otbKullbackLeiblerSupervizedDistanceImageFilterNew(int argc, char * argv[])
int otbKullbackLeiblerSupervizedDistanceImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
const unsigned int Dimension = 2;
typedef double PixelType;
......
......@@ -27,7 +27,7 @@ typedef otb::ImageFileWriter<OutputImageType> WriterType;
typedef otb::MultivariateAlterationDetectorImageFilter<ImageType, OutputImageType> MADFilterType;
int otbMultivariateAlterationDetectorImageFilterNew(int argc, char* argv[])
int otbMultivariateAlterationDetectorImageFilterNew(int itkNotUsed(argc), char* itkNotUsed(argv)[])
{
MADFilterType::Pointer madFilter = MADFilterType::New();
......@@ -35,7 +35,7 @@ int otbMultivariateAlterationDetectorImageFilterNew(int argc, char* argv[])
}
int otbMultivariateAlterationDetectorImageFilter(int argc, char* argv[])
int otbMultivariateAlterationDetectorImageFilter(int itkNotUsed(argc), char* argv[])
{
char * infname1 = argv[1];
char * infname2 = argv[2];
......
......@@ -24,7 +24,7 @@
#include "otbBayesianFusionFilter.h"
int otbBayesianFusionFilter(int argc, char * argv[])
int otbBayesianFusionFilter(int itkNotUsed(argc), char * argv[])
{
const char * multispect = argv[1];
const char * multispectinterp = argv[2];
......
......@@ -24,7 +24,7 @@
#include "otbBayesianFusionFilter.h"
int otbBayesianFusionFilterNew(int argc, char * argv[])
int otbBayesianFusionFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
const unsigned int Dimension = 2;
typedef double PixelType;
......
......@@ -38,7 +38,7 @@ public:
};
}
int otbFusionImageBaseNew(int argc, char * argv[])
int otbFusionImageBaseNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
const unsigned int Dimension = 2;
typedef unsigned char InputPixelType;
......
......@@ -24,7 +24,7 @@
#include "otbLmvmPanSharpeningFusionImageFilter.h"
int otbLmvmPanSharpeningFusionImageFilter(int argc, char * argv[])
int otbLmvmPanSharpeningFusionImageFilter(int itkNotUsed(argc), char * argv[])
{
const char * panchro = argv[1];
const char * multispect = argv[2];
......
......@@ -24,7 +24,7 @@
#include "otbLmvmPanSharpeningFusionImageFilter.h"
int otbLmvmPanSharpeningFusionImageFilterNew(int argc, char * argv[])
int otbLmvmPanSharpeningFusionImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
const unsigned int Dimension = 2;
typedef double PixelType;
......
......@@ -24,7 +24,7 @@
#include "otbSimpleRcsPanSharpeningFusionImageFilter.h"
int otbSimpleRcsPanSharpeningFusionImageFilter(int argc, char * argv[])
int otbSimpleRcsPanSharpeningFusionImageFilter(int itkNotUsed(argc), char * argv[])
{
const char * panchro = argv[1];
const char * multispect = argv[2];
......
......@@ -24,7 +24,7 @@
#include "otbSimpleRcsPanSharpeningFusionImageFilter.h"
int otbSimpleRcsPanSharpeningFusionImageFilterNew(int argc, char * argv[])
int otbSimpleRcsPanSharpeningFusionImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
const unsigned int Dimension = 2;
typedef double PixelType;
......
......@@ -20,7 +20,7 @@
#include "otbConfusionMatrixToMassOfBelief.h"
int otbConfusionMatrixToMassOfBeliefNew(int argc, char* argv[])
int otbConfusionMatrixToMassOfBeliefNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
typedef unsigned long ConfusionMatrixEltType;
typedef itk::VariableSizeMatrix<ConfusionMatrixEltType> ConfusionMatrixType;
......@@ -51,7 +51,7 @@ int otbConfusionMatrixToMassOfBeliefNew(int argc, char* argv[])
}
int otbConfusionMatrixToMassOfBeliefTest(int argc, char* argv[])
int otbConfusionMatrixToMassOfBeliefTest(int itkNotUsed(argc), char* argv[])
{
typedef unsigned long ConfusionMatrixEltType;
typedef itk::VariableSizeMatrix<ConfusionMatrixEltType> ConfusionMatrixType;
......
......@@ -157,7 +157,7 @@ int CSVConfusionMatrixFileReader(const std::string fileName, MapOfClassesType &m
int otbDSFusionOfClassifiersImageFilterNew(int argc, char* argv[])
int otbDSFusionOfClassifiersImageFilterNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
const unsigned int Dimension = 2;
......
......@@ -183,7 +183,7 @@ int CSVConfusionMatrixFileReader(const std::string fileName, MapOfClassesType &m
// OPTIMIZED RECURSIVE DS FUSION WITH CONFUSION MATRICES
int otbDempsterShaferFusionOptRecConfMatTest(int argc, char * argv[])
int otbDempsterShaferFusionOptRecConfMatTest(int itkNotUsed(argc), char * argv[])
{
unsigned int nbClassifiers = 6;
......
......@@ -20,16 +20,16 @@
#include "otbFuzzyDescriptorsModelManager.h"
#include <iostream>
#include <stdlib.h>
#include "itkMacro.h"
int otbFuzzyDescriptorsModelManagerNew(int argc, char* argv[])
int otbFuzzyDescriptorsModelManagerNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
otb::FuzzyDescriptorsModelManager mng;
return EXIT_SUCCESS;
}
int otbFuzzyDescriptorsModelManagerTest(int argc, char* argv[])
int otbFuzzyDescriptorsModelManagerTest(int itkNotUsed(argc), char* argv[])
{
otb::FuzzyDescriptorsModelManager::DescriptorsModelType model;
otb::FuzzyDescriptorsModelManager::ParameterType param;
......
......@@ -19,7 +19,7 @@
#include "otbFuzzyVariable.h"
int otbFuzzyVariable2Values(int argc, char* argv[])
int otbFuzzyVariable2Values(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
typedef float PrecisionType;
......
......@@ -19,7 +19,7 @@
#include "otbFuzzyVariable.h"
int otbFuzzyVariableDSApplied(int argc, char* argv[])
int otbFuzzyVariableDSApplied(int itkNotUsed(argc), char* itkNotUsed(argv)[])
{
typedef float PrecisionType;
......
......@@ -19,7 +19,7 @@
#include "otbFuzzyVariable.h"
int otbFuzzyVariableGetMaxVar(int argc, char* argv[])
int otbFuzzyVariableGetMaxVar(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
typedef float PrecisionType;
typedef otb::FuzzyVariable<std::string, PrecisionType> FuzzyVarType;
......
......@@ -19,7 +19,7 @@
#include "otbFuzzyVariable.h"
int otbFuzzyVariableNew(int argc, char* argv[])
int otbFuzzyVariableNew(int itkNotUsed(argc), char * itkNotUsed(argv)[])
{
typedef float PrecisionType;
typedef unsigned short LabelType;
......
......@@ -19,7 +19,7 @@
#include "otbFuzzyVariable.h"
int otbFuzzyVariableSetValue(int argc, char* argv[])
int otbFuzzyVariableSetValue(int itkNotUsed(argc), char * itkNotUsed(argv)[])