@@ -53,7 +53,6 @@ ProxTVImageFilter<TInputImage, TOutputImage>::GenerateData()
5353 this ->AllocateOutputs ();
5454 OutputImageType * output = this ->GetOutput ();
5555 const InputImageType * input = this ->GetInput ();
56- using InputRegionType = typename InputImageType::RegionType;
5756 auto regionSize = output->GetLargestPossibleRegion ().GetSize ();
5857
5958 using DoubleImageType = itk::Image<double , ImageDimension>;
@@ -80,17 +79,17 @@ ProxTVImageFilter<TInputImage, TOutputImage>::GenerateData()
8079 // int DR2_TV(size_t M (rows), size_t N (cols), double*inputProxTV (image),
8180 // double W1, double W2, double norm1, double norm2, double*s, int nThreads,
8281 // int maxit, double* info);
83- int r = DR2_TV (regionSize[0 ],
84- regionSize[1 ],
85- const_cast <double *>(inputProxTV),
86- m_Weights[0 ],
87- m_Weights[1 ],
88- m_Norms[0 ],
89- m_Norms[1 ],
90- resultProxTV,
91- nThreads,
92- maxIters,
93- info);
82+ std::ignore = DR2_TV (regionSize[0 ],
83+ regionSize[1 ],
84+ const_cast <double *>(inputProxTV),
85+ m_Weights[0 ],
86+ m_Weights[1 ],
87+ m_Norms[0 ],
88+ m_Norms[1 ],
89+ resultProxTV,
90+ nThreads,
91+ maxIters,
92+ info);
9493 }
9594 else
9695 {
@@ -107,17 +106,17 @@ ProxTVImageFilter<TInputImage, TOutputImage>::GenerateData()
107106 elements[i] = regionSize[i];
108107 dims[i] = i + 1 ;
109108 }
110- int r = PD_TV (const_cast <double *>(inputProxTV),
111- weights,
112- norms,
113- dims /* Apply weights in these dims */ ,
114- resultProxTV,
115- info,
116- elements,
117- ImageDimension /* Number of penalty terms */ ,
118- ImageDimension /* Number of dimensions */ ,
119- nThreads,
120- maxIters);
109+ std::ignore = PD_TV (const_cast <double *>(inputProxTV),
110+ weights,
111+ norms,
112+ dims /* Apply weights in these dims */ ,
113+ resultProxTV,
114+ info,
115+ elements,
116+ ImageDimension /* Number of penalty terms */ ,
117+ ImageDimension /* Number of dimensions */ ,
118+ nThreads,
119+ maxIters);
121120 }
122121
123122 using CastDoubleToOutputImageFilter = itk::CastImageFilter<DoubleImageType, OutputImageType>;
0 commit comments