Commit aae90bf2 authored by Antoine Regimbeau's avatar Antoine Regimbeau

WRG: fix various warning on gcc 8

parent ff60a223
......@@ -629,23 +629,18 @@ private:
{
case Interpolator_Linear:
{
typedef itk::LinearInterpolateImageFunction<FloatVectorImageType,
double> LinearInterpolationType;
LinearInterpolationType::Pointer interpolator = LinearInterpolationType::New();
m_ResampleFilter->SetInterpolator(interpolator);
}
break;
case Interpolator_NNeighbor:
{
typedef itk::NearestNeighborInterpolateImageFunction<FloatVectorImageType,
double> NearestNeighborInterpolationType;
NearestNeighborInterpolationType::Pointer interpolator = NearestNeighborInterpolationType::New();
m_ResampleFilter->SetInterpolator(interpolator);
}
break;
case Interpolator_BCO:
{
typedef otb::BCOInterpolateImageFunction<FloatVectorImageType> BCOInterpolationType;
BCOInterpolationType::Pointer interpolator = BCOInterpolationType::New();
interpolator->SetRadius(GetParameterInt("interpolator.bco.radius"));
m_ResampleFilter->SetInterpolator(interpolator);
......
......@@ -964,13 +964,13 @@ LineSegmentDetector<TInputImage, TPrecision>
*/
/** Compute the number of points aligned */
typedef otb::Rectangle<double> RectangleType;
RectangleType::Pointer rectangle = RectangleType::New();
typedef otb::Rectangle<double> OTBRectangleType;
OTBRectangleType::Pointer rectangle = OTBRectangleType::New();
/** Fill the rectangle with the points*/
for (int i = 0; i < 2; ++i)
{
typename RectangleType::VertexType vertex;
typename OTBRectangleType::VertexType vertex;
vertex[0] = rec[2 * i];
vertex[1] = rec[2 * i + 1];
rectangle->AddVertex(vertex);
......
......@@ -68,6 +68,7 @@ public:
typedef typename Superclass::OutputVectorDataType OutputVectorDataType;
typedef typename Superclass::OutputVectorDataPointerType OutputVectorDataPointerType;
typedef typename Superclass::ExtractImageFilterType ExtractImageFilterType;
/** Method for creation through the object factory. */
itkNewMacro(Self);
......
......@@ -68,7 +68,6 @@ PersistentStreamingLineSegmentDetector<TInputImage>
::ProcessTile()
{
// Apply an ExtractImageFilter to avoid problems with filters asking for the LargestPossibleRegion
typedef itk::ExtractImageFilter<InputImageType, InputImageType> ExtractImageFilterType;
typename ExtractImageFilterType::Pointer extract = ExtractImageFilterType::New();
extract->SetInput( this->GetInput() );
extract->SetExtractionRegion( this->GetInput()->GetBufferedRegion() );
......
......@@ -229,8 +229,10 @@ public:
typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
typedef TInputImage InputImageType;
typedef typename InputImageType::ConstPointer InputImagePointer;
typedef typename TOutputImage::PixelType OutputPixelType;
typedef typename TInputImage::PixelType InputPixelType;
typedef typename InputImageType::PixelType InputPixelType;
typedef typename InputPixelType::ValueType InputValueType;
typedef typename OutputPixelType::ValueType OutputValueType;
typedef typename itk::NumericTraits<InputValueType>::RealType InputRealType;
......
......@@ -88,8 +88,8 @@ VectorRescaleIntensityImageFilter<TInputImage, TOutputImage>
if (m_AutomaticInputMinMaxComputation)
{
typedef typename Superclass::InputImageType InputImageType;
typedef typename Superclass::InputImagePointer InputImagePointer;
// typedef typename Superclass::InputImageType InputImageType;
// typedef typename Superclass::InputImagePointer InputImagePointer;
// Get the input
InputImagePointer inputImage = this->GetInput();
......
......@@ -185,7 +185,6 @@ PleiadesPToXSAffineTransformCalculator
OffsetType offset = ComputeOffset(panchromaticImage,xsImage);
// Apply the scaling
typedef itk::ScalableAffineTransform<double, 2> TransformType;
TransformType::Pointer transform = TransformType::New();
transform->SetIdentity();
......
......@@ -164,7 +164,6 @@ ImageFileReader<TOutputImage, ConvertPixelTraits>
ioSize[i] = dimSize[i];
}
typedef typename TOutputImage::IndexType IndexType;
IndexType start;
if (!this->m_ImageIO->CanStreamRead()) start.Fill(0);
else start = output->GetRequestedRegion().GetIndex();
......@@ -521,8 +520,6 @@ ImageFileReader<TOutputImage, ConvertPixelTraits>
this->SetMetaDataDictionary(dictLight);
}
typedef typename TOutputImage::IndexType IndexType;
IndexType start;
start.Fill(0);
......
......@@ -258,7 +258,6 @@ DisparityTranslateFilter<TDisparityImage,TGridImage,TSensorImage,TMaskImage>
IndexType minIndex,maxIndex;
// -Wmaybe-uninitialized
typedef typename IndexType::IndexValueType IndexValueType;
minIndex.Fill(itk::NumericTraits<IndexValueType>::Zero);
maxIndex.Fill(itk::NumericTraits<IndexValueType>::Zero);
......@@ -382,7 +381,6 @@ DisparityTranslateFilter<TDisparityImage,TGridImage,TSensorImage,TMaskImage>
leftGrid->TransformPhysicalPointToContinuousIndex(pointSensor, indexGrid);
// Interpolate in left grid
typedef typename IndexType::IndexValueType IndexValueType;
IndexType ul;
ul[0] = static_cast<long> (vcl_floor(indexGrid[0]));
ul[1] = static_cast<long> (vcl_floor(indexGrid[1]));
......
......@@ -116,6 +116,8 @@ public:
typedef typename RelabelComponentFilterType::ObjectSizeType ObjectSizeType;
typedef itk::ExtractImageFilter<VectorImageType, VectorImageType> ExtractImageFilterType;
/* Set the mathematical expression used for the mask */
itkSetStringMacro(MaskExpression);
......
......@@ -55,7 +55,6 @@ PersistentConnectedComponentSegmentationOBIAToVectorDataFilter<TVImage, TLabelIm
::ProcessTile()
{
// Apply an ExtractImageFilter to avoid problems with filters asking for the LargestPossibleRegion
typedef itk::ExtractImageFilter<VectorImageType, VectorImageType> ExtractImageFilterType;
typename ExtractImageFilterType::Pointer extract = ExtractImageFilterType::New();
extract->SetInput( this->GetInput() );
extract->SetExtractionRegion( this->GetOutput()->GetRequestedRegion() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment