+/*=========================================================================
+ Program: vv http://www.creatis.insa-lyon.fr/rio/vv
+
+ Authors belong to:
+ - University of LYON http://www.universite-lyon.fr/
+ - Léon Bérard cancer center http://www.centreleonberard.fr
+ - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
+
+ This software is distributed WITHOUT ANY WARRANTY; without even
+ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ PURPOSE. See the copyright notices for more information.
+
+ It is distributed under dual licence
+
+ - BSD See included LICENSE.txt file
+ - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+===========================================================================*/
/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
*
* This filter is implemented using the propagation algorithm
*/
-
- template <class TInputImage, class TOutputImage, class TtNorm=Function::Minimum<
+
+ template <class TInputImage, class TOutputImage, class TtNorm=Functor::Minimum<
typename TOutputImage::PixelType,
typename TOutputImage::PixelType,
typename TOutputImage::PixelType> >
}
}
-
- virtual void GenerateInputRequestedRegion() throw(InvalidRequestedRegionError);
- void EnlargeOutputRequestedRegion (DataObject * output);
+#if ( ( ITK_VERSION_MAJOR == 4 ) && ( ITK_VERSION_MINOR > 12 ) || ( ITK_VERSION_MAJOR > 4 ))
+ virtual void GenerateInputRequestedRegion() ITK_OVERRIDE;
+#else
+ virtual void GenerateInputRequestedRegion() throw(InvalidRequestedRegionError) ITK_OVERRIDE;
+#endif
+ void EnlargeOutputRequestedRegion (DataObject * output) ITK_OVERRIDE;
protected:
RelativePositionPropImageFilter()
{
m_Alpha1 = 0;
m_Alpha2 = 0;
- m_K1 = vcl_acos(-1.0)/2;
+ m_K1 = std::acos(-1.0)/2;
// m_K2 = 3.1417/2;
m_Radius = 2; // DS
m_Fast = true; // DS
m_VerboseProgress = false;
}
virtual ~RelativePositionPropImageFilter() {}
- void PrintSelf(std::ostream& os, Indent indent) const;
+ void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
//void GenerateThreadedData(const typename TOutputImage::RegionType& outputRegionForThread, int threadId);
- void GenerateData();
+ void GenerateData() ITK_OVERRIDE;
private:
RelativePositionPropImageFilter(const Self&); //purposely not implemented