Commit 33591f73 authored by Rashad Kanavath's avatar Rashad Kanavath

WRG: silence wunused-parameter with itkNotUsed Testing/MultiScale Learning DisparityMap

parent c4b9fdce
......@@ -251,7 +251,7 @@ template <class TDisparityImage, class TOutputImage,
class TEpipolarGridImage, class TMaskImage>
void
DisparityMapTo3DFilter<TDisparityImage,TOutputImage,TEpipolarGridImage,TMaskImage>
::ThreadedGenerateData(const RegionType & outputRegionForThread, itk::ThreadIdType threadId)
::ThreadedGenerateData(const RegionType & itkNotUsed(outputRegionForThread), itk::ThreadIdType itkNotUsed(threadId))
{
const TDisparityImage * horizDisp = this->GetHorizontalDisparityMapInput();
const TDisparityImage * vertiDisp = this->GetVerticalDisparityMapInput();
......
......@@ -82,7 +82,7 @@ KMeansImageClassificationFilter<TInputImage, TOutputImage, VMaxSampleDimension,
template <class TInputImage, class TOutputImage, unsigned int VMaxSampleDimension, class TMaskImage>
void
KMeansImageClassificationFilter<TInputImage, TOutputImage, VMaxSampleDimension, TMaskImage>
::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId)
::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType itkNotUsed(threadId))
{
InputImageConstPointerType inputPtr = this->GetInput();
MaskImageConstPointerType inputMaskPtr = this->GetInputMask();
......
......@@ -148,7 +148,7 @@ template <class TInputImage, class TOutputImage,
void
SubsampleImageFilter<TInputImage, TOutputImage, TDirectionOfTransformation>
::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
itk::ThreadIdType threadId)
itk::ThreadIdType itkNotUsed(threadId))
{
OutputImagePointerType output = this->GetOutput();
......
......@@ -57,7 +57,7 @@ public:
static unsigned int NumberOfAllowedDecompositions;
/** Evaluate the cost */
bool Evaluate(unsigned int decomposition, const ImageType * image)
bool Evaluate(unsigned int decomposition, const ImageType * itkNotUsed(image))
{
return (decomposition < NumberOfAllowedDecompositions);
}
......
......@@ -27,7 +27,7 @@
#include "otbVectorDataFileWriter.h"
#include "itkPreOrderTreeIterator.h"
int otbSpectralAngleDataNodeFeatureFunctionNew(int itkNotUsed(argc), char* argv[])
int otbSpectralAngleDataNodeFeatureFunctionNew(int itkNotUsed(argc), char** itkNotUsed(argv))
{
typedef double CoordRepType;
typedef double PrecisionType;
......
......@@ -36,7 +36,7 @@ typedef otb::ImageFileWriter<MaskType> MaskWriterType;
typedef otb::AdhesionCorrectionFilter<ImageType, MaskType> AdhesionCorrectionFilterType;
int otbAdhesionCorrectionFilterNew(int argc, char* argv[])
int otbAdhesionCorrectionFilterNew(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
// Instantiation
......@@ -131,5 +131,3 @@ int otbAdhesionCorrectionFilter(int argc, char* argv[])
return EXIT_SUCCESS;
}
......@@ -21,7 +21,7 @@
#include "otbBSplinesInterpolateDisplacementFieldGenerator.h"
#include "otbImageFileWriter.h"
int otbBSplinesInterpolateDisplacementFieldGenerator(int argc, char * argv[])
int otbBSplinesInterpolateDisplacementFieldGenerator(int itkNotUsed(argc), char * argv[])
{
const unsigned int Dimension = 2;
const char * outfname = argv[1];
......
......@@ -20,7 +20,7 @@
#include "otbVectorImage.h"
#include "otbBSplinesInterpolateDisplacementFieldGenerator.h"
int otbBSplinesInterpolateDisplacementFieldGeneratorNew(int argc, char * argv[])
int otbBSplinesInterpolateDisplacementFieldGeneratorNew(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
const unsigned int Dimension = 2;
typedef double PixelType;
......
......@@ -22,7 +22,7 @@
#include "otbImageFileWriter.h"
#include "itkEuler2DTransform.h"
int otbBSplinesInterpolateTransformDisplacementFieldGenerator(int argc, char * argv[])
int otbBSplinesInterpolateTransformDisplacementFieldGenerator(int itkNotUsed(argc), char * argv[])
{
const unsigned int Dimension = 2;
const char * outfname = argv[1];
......
......@@ -20,7 +20,7 @@
#include "otbVectorImage.h"
#include "otbBSplinesInterpolateTransformDisplacementFieldGenerator.h"
int otbBSplinesInterpolateTransformDisplacementFieldGeneratorNew(int argc, char * argv[])
int otbBSplinesInterpolateTransformDisplacementFieldGeneratorNew(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
const unsigned int Dimension = 2;
typedef double PixelType;
......
......@@ -32,7 +32,7 @@ typedef otb::BijectionCoherencyFilter
FloatImageType> BijectionFilterType;
int otbBijectionCoherencyFilterNew(int argc, char* argv[])
int otbBijectionCoherencyFilterNew(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
// Instantiation
BijectionFilterType::Pointer bijectFilter = BijectionFilterType::New();
......
......@@ -25,7 +25,7 @@
#include "otbThresholdImageToPointSetFilter.h"
#include "itkMinimumMaximumImageCalculator.h"
int otbDisparityMapEstimationMethod(int argc, char* argv[])
int otbDisparityMapEstimationMethod(int itkNotUsed(argc), char* argv[])
{
const char* fixedFileName = argv[1];
const char* movingFileName = argv[2];
......
......@@ -20,7 +20,7 @@
#include "otbImage.h"
#include "itkTranslationTransform.h"
int otbDisparityMapEstimationMethodNew(int argc, char* argv[])
int otbDisparityMapEstimationMethodNew(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
const unsigned int Dimension = 2;
typedef unsigned char PixelType;
......
......@@ -30,7 +30,7 @@
typedef otb::DisparityMapMedianFilter<FloatImageType,FloatImageType,FloatImageType> DisparityMapMedianFilterType;
int otbDisparityMapMedianFilterNew(int argc, char* argv[])
int otbDisparityMapMedianFilterNew(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
// Instantiation
DisparityMapMedianFilterType::Pointer filter = DisparityMapMedianFilterType::New();
......
......@@ -33,8 +33,7 @@ typedef otb::DisparityMapTo3DFilter
FloatVectorImageType,
FloatImageType> StereoFilterType;
int otbDisparityMapTo3DFilterNew(int argc, char* argv[])
int otbDisparityMapTo3DFilterNew(int itkNotUsed(argc), char** itkNotUsed(argv))
{
// Instantiation
StereoFilterType::Pointer filter = StereoFilterType::New();
......@@ -111,6 +110,3 @@ int otbDisparityMapTo3DFilter(int argc, char* argv[])
return EXIT_SUCCESS;
}
......@@ -46,7 +46,7 @@
typedef otb::DisparityMapToDEMFilter <FloatImageType, FloatVectorImageType> DisparityToElevationFilterType;
int otbDisparityMapToDEMFilterNew(int argc, char* argv[])
int otbDisparityMapToDEMFilterNew(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
// Instantiation
......@@ -115,5 +115,3 @@ int otbDisparityMapToDEMFilter(int argc, char* argv[])
return EXIT_SUCCESS;
}
......@@ -55,7 +55,7 @@ typedef otb::DisparityTranslateFilter
FloatImageType> TranslateFilter;
int otbDisparityTranslateFilterNew(int argc, char* argv[])
int otbDisparityTranslateFilterNew(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
// Instantiation
TranslateFilter::Pointer filter = TranslateFilter::New();
......
......@@ -22,7 +22,7 @@
#include "otbFineRegistrationImageFilter.h"
int otbFineRegistrationImageFilterNew( int argc, char * argv[] )
int otbFineRegistrationImageFilterNew( int itkNotUsed(argc), char ** itkNotUsed(argv))
{
typedef double PixelType;
const unsigned int Dimension = 2;
......
......@@ -36,7 +36,7 @@ typedef otb::Multi3DMapToDEMFilter
ImageType> Multi3DFilterType;
int otbMulti3DMapToDEMFilterNew(int argc, char* argv[])
int otbMulti3DMapToDEMFilterNew(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
// Instantiation
Multi3DFilterType::Pointer multiFilter = Multi3DFilterType::New();
......
......@@ -33,7 +33,7 @@ typedef otb::MultiDisparityMapTo3DFilter
FloatImageType> Multi3DFilterType;
int otbMultiDisparityMapTo3DFilterNew(int argc, char* argv[])
int otbMultiDisparityMapTo3DFilterNew(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
// Instantiation
Multi3DFilterType::Pointer multiFilter = Multi3DFilterType::New();
......
......@@ -18,7 +18,7 @@
#include "otbNCCRegistrationFilter.h"
#include "otbImage.h"
int otbNCCRegistrationFilterNew(int argc, char* argv[])
int otbNCCRegistrationFilterNew(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
const unsigned int ImageDimension = 2;
......
......@@ -21,7 +21,7 @@
#include "otbNNearestPointsLinearInterpolateDisplacementFieldGenerator.h"
#include "otbImageFileWriter.h"
int otbNNearestPointsLinearInterpolateDisplacementFieldGenerator(int argc, char * argv[])
int otbNNearestPointsLinearInterpolateDisplacementFieldGenerator(int itkNotUsed(argc), char * argv[])
{
const unsigned int Dimension = 2;
const char * outfname = argv[1];
......
......@@ -20,7 +20,7 @@
#include "otbVectorImage.h"
#include "otbNNearestPointsLinearInterpolateDisplacementFieldGenerator.h"
int otbNNearestPointsLinearInterpolateDisplacementFieldGeneratorNew(int argc, char * argv[])
int otbNNearestPointsLinearInterpolateDisplacementFieldGeneratorNew(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
const unsigned int Dimension = 2;
typedef double PixelType;
......
......@@ -22,7 +22,7 @@
#include "otbImageFileWriter.h"
#include "itkEuler2DTransform.h"
int otbNNearestTransformsLinearInterpolateDisplacementFieldGenerator(int argc, char * argv[])
int otbNNearestTransformsLinearInterpolateDisplacementFieldGenerator(int itkNotUsed(argc), char * argv[])
{
const unsigned int Dimension = 2;
const char * outfname = argv[1];
......
......@@ -20,7 +20,7 @@
#include "otbVectorImage.h"
#include "otbNNearestTransformsLinearInterpolateDisplacementFieldGenerator.h"
int otbNNearestTransformsLinearInterpolateDisplacementFieldGeneratorNew(int argc, char * argv[])
int otbNNearestTransformsLinearInterpolateDisplacementFieldGeneratorNew(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
const unsigned int Dimension = 2;
typedef double PixelType;
......
......@@ -21,7 +21,7 @@
#include "otbNearestPointDisplacementFieldGenerator.h"
#include "otbImageFileWriter.h"
int otbNearestPointDisplacementFieldGenerator(int argc, char * argv[])
int otbNearestPointDisplacementFieldGenerator(int itkNotUsed(argc), char * argv[])
{
const unsigned int Dimension = 2;
const char * outfname = argv[1];
......
......@@ -20,7 +20,7 @@
#include "otbVectorImage.h"
#include "otbNearestPointDisplacementFieldGenerator.h"
int otbNearestPointDisplacementFieldGeneratorNew(int argc, char * argv[])
int otbNearestPointDisplacementFieldGeneratorNew(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
const unsigned int Dimension = 2;
typedef double PixelType;
......
......@@ -22,7 +22,7 @@
#include "otbImageFileWriter.h"
#include "itkEuler2DTransform.h"
int otbNearestTransformDisplacementFieldGenerator(int argc, char * argv[])
int otbNearestTransformDisplacementFieldGenerator(int itkNotUsed(argc), char * argv[])
{
const unsigned int Dimension = 2;
const char * outfname = argv[1];
......
......@@ -20,7 +20,7 @@
#include "otbVectorImage.h"
#include "otbNearestTransformDisplacementFieldGenerator.h"
int otbNearestTransformDisplacementFieldGeneratorNew(int argc, char * argv[])
int otbNearestTransformDisplacementFieldGeneratorNew(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
const unsigned int Dimension = 2;
typedef double PixelType;
......
......@@ -33,7 +33,7 @@ typedef otb::Functor::NCCBlockMatching<ImageType,FloatImageType> NCCBlockMatchin
typedef otb::PixelWiseBlockMatchingImageFilter<ImageType,FloatImageType,FloatImageType,ImageType, NCCBlockMatchingFunctorType> PixelWiseNCCBlockMatchingImageFilterType;
int otbPixelWiseBlockMatchingImageFilterNew(int argc, char * argv[])
int otbPixelWiseBlockMatchingImageFilterNew(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
// Instanciation
PixelWiseBlockMatchingImageFilterType::Pointer bmFilter = PixelWiseBlockMatchingImageFilterType::New();
......@@ -79,11 +79,9 @@ int otbPixelWiseBlockMatchingImageFilter(int argc, char * argv[])
metricWriter->Update();
return EXIT_SUCCESS;
}
int otbPixelWiseBlockMatchingImageFilterNCC(int argc, char * argv[])
{
ReaderType::Pointer leftReader = ReaderType::New();
......
......@@ -20,7 +20,7 @@
#include "otbVectorImage.h"
#include "otbPointSetToDisplacementFieldGenerator.h"
int otbPointSetToDisplacementFieldGeneratorNew(int argc, char * argv[])
int otbPointSetToDisplacementFieldGeneratorNew(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
const unsigned int Dimension = 2;
typedef double PixelType;
......
......@@ -20,7 +20,7 @@
#include "otbVectorImage.h"
#include "otbPointSetWithTransformToDisplacementFieldGenerator.h"
int otbPointSetWithTransformToDisplacementFieldGeneratorNew(int argc, char * argv[])
int otbPointSetWithTransformToDisplacementFieldGeneratorNew(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
const unsigned int Dimension = 2;
typedef double PixelType;
......
......@@ -43,7 +43,7 @@ typedef itk::MedianImageFilter<HeightImageType, HeightImageType> MedianFilterTyp
typedef otb::ImageFileWriter<HeightImageType> WriterType;
int otbStereoSensorModelToElevationMapFilterNew( int argc, char * argv[] )
int otbStereoSensorModelToElevationMapFilterNew( int itkNotUsed(argc), char ** itkNotUsed(argv))
{
// Instantiation
StereoFilterType::Pointer stereoFilter = StereoFilterType::New();
......@@ -53,7 +53,7 @@ int otbStereoSensorModelToElevationMapFilterNew( int argc, char * argv[] )
}
int otbStereoSensorModelToElevationMapFilter( int argc, char * argv[] )
int otbStereoSensorModelToElevationMapFilter( int itkNotUsed(argc), char * argv[] )
{
ReaderType::Pointer masterReader = ReaderType::New();
masterReader->SetFileName(argv[1]);
......
......@@ -29,7 +29,7 @@ typedef otb::StereorectificationDisplacementFieldSource
typedef otb::ImageFileReader<ImageType> ReaderType;
typedef otb::ImageFileWriter<DisplacementFieldType> WriterType;
int otbStereorectificationDisplacementFieldSourceNew(int argc, char * argv[])
int otbStereorectificationDisplacementFieldSourceNew(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
// Instantiation
DisplacementFieldSourceType::Pointer dfSource = DisplacementFieldSourceType::New();
......@@ -37,7 +37,7 @@ int otbStereorectificationDisplacementFieldSourceNew(int argc, char * argv[])
return EXIT_SUCCESS;
}
int otbStereorectificationDisplacementFieldSource(int argc, char * argv[])
int otbStereorectificationDisplacementFieldSource(int itkNotUsed(argc), char * argv[])
{
char * infname1 = argv[1];
char * infname2 = argv[2];
......
......@@ -19,7 +19,7 @@
#include "itkVector.h"
#include "otbStreamingWarpImageFilter.h"
int otbStreamingWarpImageFilterNew(int argc, char* argv[])
int otbStreamingWarpImageFilterNew(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
// Images definition
const unsigned int Dimension = 2;
......
......@@ -56,7 +56,7 @@
typedef otb::ImageFileReader<FloatImageType> ReaderType;
typedef otb::ImageFileWriter<FloatImageType> WriterType;
int otbSubPixelDisparityImageFilterNew(int argc, char* argv[])
int otbSubPixelDisparityImageFilterNew(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
// Instantiation
......@@ -201,12 +201,3 @@ int otbSubPixelDisparityImageFilter(int argc, char* argv[])
return EXIT_FAILURE;
}
......@@ -22,7 +22,7 @@
#include "otbForwardFourierMellinTransformImageFilter.h"
#include "itkLinearInterpolateImageFunction.h"
int otbFourierMellinImageFilterNew(int itkNotUsed(argc), char* argv[])
int otbFourierMellinImageFilterNew(int itkNotUsed(argc), char** itkNotUsed(argv))
{
typedef double PixelType;
......
......@@ -22,7 +22,7 @@
#include "otbGreyLevelCooccurrenceMatrixAdvancedTextureCoefficientsCalculator.h"
int otbGreyLevelCooccurrenceMatrixAdvancedTextureCoefficientsCalculator(int itkNotUsed(argc), char * argv[])
int otbGreyLevelCooccurrenceMatrixAdvancedTextureCoefficientsCalculator(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
try // the rest of the function is in the try block...
......
......@@ -225,8 +225,8 @@ ImageType::Pointer contrast(ImageType::Pointer input,
}
OutputImageType::Pointer invContrast(OutputImageType::Pointer input,
const unsigned int contrastMin,
const unsigned int contrastMax)
const unsigned int itkNotUsed(contrastMin),
const unsigned int itkNotUsed(contrastMax))
{
return input;
}
......
......@@ -23,7 +23,7 @@
#include "itkImageRegionIteratorWithIndex.h"
#include "otbMultiplyByScalarImageFilter.h"
int otbMultiplyByScalarImageFilterTest(int itkNotUsed(argc), char * argv[])
int otbMultiplyByScalarImageFilterTest(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
// Define the dimension of the images
const unsigned int ImageDimension = 2;
......
......@@ -22,7 +22,7 @@
#include "otbImageFileReader.h"
#include "otbImageFileWriter.h"
int otbSFSTexturesImageFilterTest(int argc, char * argv[])
int otbSFSTexturesImageFilterTest(int itkNotUsed(argc), char * argv[])
{
typedef double PixelType;
const unsigned int Dimension = 2;
......
......@@ -20,7 +20,7 @@
#include "otbScalarImageToAdvancedTexturesFilter.h"
#include "otbImage.h"
int otbScalarImageToAdvancedTexturesFilterNew(int itkNotUsed(argc), char * argv[])
int otbScalarImageToAdvancedTexturesFilterNew(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
const unsigned int Dimension = 2;
typedef double PixelType;
......
......@@ -21,7 +21,7 @@
#include "otbImage.h"
#include "itkVariableLengthVector.h"
int otbSimplePointCountStrategyTest(int argc, char * argv[])
int otbSimplePointCountStrategyTest(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
const unsigned int Dimension = 2;
......
......@@ -23,7 +23,7 @@
#include "otbImageFileReader.h"
#include "otbImageFileWriter.h"
int otbImageFileReaderWithExtendedFilename(int argc, char* argv[])
int otbImageFileReaderWithExtendedFilename(int itkNotUsed(argc), char* argv[])
{
// Verify the number of parameters in the command line
const char * inputFilename = argv[1];
......@@ -57,7 +57,7 @@ int otbImageFileReaderWithExtendedFilename(int argc, char* argv[])
return EXIT_SUCCESS;
}
int otbImageFileWriterWithExtendedFilename(int argc, char* argv[])
int otbImageFileWriterWithExtendedFilename(int itkNotUsed(argc), char* argv[])
{
// Verify the number of parameters in the command line
const char * inputFilename = argv[1];
......@@ -81,4 +81,3 @@ int otbImageFileWriterWithExtendedFilename(int argc, char* argv[])
return EXIT_SUCCESS;
}
......@@ -114,7 +114,7 @@ int otbImageScalarStreamingFileWriterTestWithoutInputDouble(int argc, char * arg
* Write Image<scalar> with an ImageFileWriter<scalar>
***********/
template<class InternalType>
int otbImageComplexStreamingFileWriterTestWithoutInputGeneric(int argc, char* argv[])
int otbImageComplexStreamingFileWriterTestWithoutInputGeneric(int itkNotUsed(argc), char* argv[])
{
// Verify the number of parameters in the command line
const char * outputFilename = argv[1];
......
......@@ -16,8 +16,6 @@
=========================================================================*/
#include "itkListSample.h"
#include "itkVariableLengthVector.h"
#include "otbConcatenateSampleListFilter.h"
......@@ -29,14 +27,14 @@ typedef itk::Statistics::ListSample<DoubleSampleType> DoubleSampleListType;
typedef otb::Statistics::ConcatenateSampleListFilter<DoubleSampleListType> ConcatenateFilterType;
int otbConcatenateSampleListFilterNew(int argc, char * argv[])
int otbConcatenateSampleListFilterNew(int itkNotUsed(argc), char ** itkNotUsed(argv))
{
ConcatenateFilterType::Pointer instance = ConcatenateFilterType::New();
return EXIT_SUCCESS;
}
int otbConcatenateSampleListFilter(int argc, char * argv[])
int otbConcatenateSampleListFilter(int itkNotUsed(argc), char * argv[])
{
// Compute the number of samples
const char * outfname = argv[1];
......@@ -106,5 +104,3 @@ int otbConcatenateSampleListFilter(int argc, char * argv[])
return EXIT_SUCCESS;
}