Skip to content

Commit

Permalink
Merge pull request SimpleITK#897 from blowekamp/UpdateITKv5.1rc01
Browse files Browse the repository at this point in the history
Update to ITKv5.1rc01
  • Loading branch information
blowekamp committed Dec 9, 2019
2 parents b1823b0 + c575a68 commit b3cc759
Show file tree
Hide file tree
Showing 16 changed files with 29 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"Isotropic"
],
"default" : "itk::simple::CoherenceEnhancingDiffusionImageFilter::CED",
"itk_type" : "typename FilterType::EnhancementType",
"itk_type" : "typename FilterType::EnhancementEnum",
"briefdescriptionSet" : "Switch between CED, EED, and variants.",
"detaileddescriptionSet" : "",
"briefdescriptionGet" : "",
Expand Down
2 changes: 1 addition & 1 deletion Code/BasicFilters/json/ConvolutionImageFilter.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"VALID"
],
"default" : "itk::simple::ConvolutionImageFilter::SAME",
"custom_itk_cast" : "filter->SetOutputRegionMode( typename FilterType::OutputRegionModeType( int( this->m_OutputRegionMode ) ) );"
"custom_itk_cast" : "filter->SetOutputRegionMode( typename FilterType::OutputRegionModeEnum( int( this->m_OutputRegionMode ) ) );"
}
],
"tests" : [
Expand Down
2 changes: 1 addition & 1 deletion Code/BasicFilters/json/FFTConvolutionImageFilter.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"VALID"
],
"default" : "itk::simple::FFTConvolutionImageFilter::SAME",
"itk_type" : "typename FilterType::OutputRegionModeType"
"itk_type" : "typename FilterType::OutputRegionModeEnum"
}
],
"tests" : [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"VALID"
],
"default" : "itk::simple::InverseDeconvolutionImageFilter::SAME",
"itk_type" : "typename FilterType::OutputRegionModeType"
"itk_type" : "typename FilterType::OutputRegionModeEnum"
}
],
"tests" : [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"VALID"
],
"default" : "itk::simple::LandweberDeconvolutionImageFilter::SAME",
"itk_type" : "typename FilterType::OutputRegionModeType"
"itk_type" : "typename FilterType::OutputRegionModeEnum"
}
],
"tests" : [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"VALID"
],
"default" : "itk::simple::ProjectedLandweberDeconvolutionImageFilter::SAME",
"itk_type" : "typename FilterType::OutputRegionModeType"
"itk_type" : "typename FilterType::OutputRegionModeEnum"
}
],
"tests" : [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"VALID"
],
"default" : "itk::simple::RichardsonLucyDeconvolutionImageFilter::SAME",
"itk_type" : "typename FilterType::OutputRegionModeType"
"itk_type" : "typename FilterType::OutputRegionModeEnum"
}
],
"tests" : [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"VALID"
],
"default" : "itk::simple::TikhonovDeconvolutionImageFilter::SAME",
"itk_type" : "typename FilterType::OutputRegionModeType"
"itk_type" : "typename FilterType::OutputRegionModeEnum"
}
],
"tests" : [
Expand Down
2 changes: 1 addition & 1 deletion Code/BasicFilters/json/WienerDeconvolutionImageFilter.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"VALID"
],
"default" : "itk::simple::WienerDeconvolutionImageFilter::SAME",
"itk_type" : "typename FilterType::OutputRegionModeType"
"itk_type" : "typename FilterType::OutputRegionModeEnum"
}
],
"tests" : [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ Transform LandmarkBasedTransformInitializerFilter::ExecuteInternal ( const Trans

filter->SetLandmarkWeight ( this->m_LandmarkWeight );

typedef typename FilterType::TransformType::TransformCategoryType TransformCategoryType;
typedef typename FilterType::TransformType::TransformCategoryEnum TransformCategoryEnum;
// BSpline specific setup
if( itkTx->GetTransformCategory() == TransformCategoryType::BSpline )
if( itkTx->GetTransformCategory() == TransformCategoryEnum::BSpline )
{
if ( this->m_ReferenceImage.GetSize() == std::vector<unsigned int>(this->m_ReferenceImage.GetDimension(), 0u) )
{
Expand Down
4 changes: 2 additions & 2 deletions Code/Common/src/sitkPimpleTransform.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ public:

virtual bool IsLinear() const
{
typedef itk::TransformBaseTemplate<double>::TransformCategoryType TransformCategoryType;
return (this->GetTransformBase()->GetTransformCategory() == TransformCategoryType::Linear);
typedef itk::TransformBaseTemplate<double>::TransformCategoryEnum TransformCategoryEnum;
return (this->GetTransformBase()->GetTransformCategory() == TransformCategoryEnum::Linear);
}


Expand Down
2 changes: 1 addition & 1 deletion Code/IO/src/sitkImageFileWriter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ ::GetImageIOBase(const std::string &fileName)
itk::ImageIOBase::Pointer iobase;
if (this->m_ImageIOName == "")
{
iobase = itk::ImageIOFactory::CreateImageIO( fileName.c_str(), itk::ImageIOFactory::FileModeType::WriteMode);
iobase = itk::ImageIOFactory::CreateImageIO( fileName.c_str(), itk::ImageIOFactory::FileModeEnum::WriteMode);
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion Code/IO/src/sitkImageReaderBase.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ ::GetImageIOBase(const std::string &fileName)
itk::ImageIOBase::Pointer iobase;
if (this->m_ImageIOName == "")
{
iobase = itk::ImageIOFactory::CreateImageIO( fileName.c_str(), itk::ImageIOFactory::FileModeType::ReadMode);
iobase = itk::ImageIOFactory::CreateImageIO( fileName.c_str(), itk::ImageIOFactory::FileModeEnum::ReadMode);
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion Code/IO/src/sitkImageSeriesWriter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ namespace itk {
itk::ImageIOBase::Pointer iobase;
if (this->m_ImageIOName == "")
{
iobase = itk::ImageIOFactory::CreateImageIO( fileName.c_str(), itk::ImageIOFactory::FileModeType::WriteMode);
iobase = itk::ImageIOFactory::CreateImageIO( fileName.c_str(), itk::ImageIOFactory::FileModeEnum::WriteMode);
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion SuperBuild/External_ITK.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ set(ITK_GIT_REPOSITORY "${git_protocol}://github.com/InsightSoftwareConsortium/I
mark_as_advanced(ITK_GIT_REPOSITORY)
sitk_legacy_naming(ITK_GIT_REPOSITORY ITK_REPOSITORY)

set(_DEFAULT_ITK_GIT_TAG "9c5a74d213130f9e1f7bedb9ea34b4a5ae1f642e")
set(_DEFAULT_ITK_GIT_TAG "v5.1rc01")
set(ITK_GIT_TAG "${_DEFAULT_ITK_GIT_TAG}" CACHE STRING "Tag in ITK git repo")
mark_as_advanced(ITK_GIT_TAG)
set(ITK_TAG_COMMAND GIT_TAG "${ITK_GIT_TAG}")
Expand Down
24 changes: 12 additions & 12 deletions Testing/Unit/sitkBasicFiltersTests.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -156,38 +156,38 @@ TEST(BasicFilters,FastMarching_ENUMCHECK) {

TEST(BasicFilters,InverseDeconvolution_ENUMCHECK) {
typedef itk::InverseDeconvolutionImageFilter< itk::Image<float,3>, itk::Image<float,3> > ITKType;
EXPECT_EQ( (int) ITKType::OutputRegionModeType::SAME, (int) itk::simple::InverseDeconvolutionImageFilter::SAME );
EXPECT_EQ( (int) ITKType::OutputRegionModeType::VALID, (int) itk::simple::InverseDeconvolutionImageFilter::VALID );
EXPECT_EQ( (int) ITKType::OutputRegionModeEnum::SAME, (int) itk::simple::InverseDeconvolutionImageFilter::SAME );
EXPECT_EQ( (int) ITKType::OutputRegionModeEnum::VALID, (int) itk::simple::InverseDeconvolutionImageFilter::VALID );
}

TEST(BasicFilters,TikhonovDeconvolution_ENUMCHECK) {
typedef itk::TikhonovDeconvolutionImageFilter< itk::Image<float,3>, itk::Image<float,3> > ITKType;
EXPECT_EQ( (int) ITKType::OutputRegionModeType::SAME, (int) itk::simple::TikhonovDeconvolutionImageFilter::SAME );
EXPECT_EQ( (int) ITKType::OutputRegionModeType::VALID, (int) itk::simple::TikhonovDeconvolutionImageFilter::VALID );
EXPECT_EQ( (int) ITKType::OutputRegionModeEnum::SAME, (int) itk::simple::TikhonovDeconvolutionImageFilter::SAME );
EXPECT_EQ( (int) ITKType::OutputRegionModeEnum::VALID, (int) itk::simple::TikhonovDeconvolutionImageFilter::VALID );
}

TEST(BasicFilters,WienerDeconvolution_ENUMCHECK) {
typedef itk::WienerDeconvolutionImageFilter< itk::Image<float,3>, itk::Image<float,3> > ITKType;
EXPECT_EQ( (int) ITKType::OutputRegionModeType::SAME, (int) itk::simple::WienerDeconvolutionImageFilter::SAME );
EXPECT_EQ( (int) ITKType::OutputRegionModeType::VALID, (int) itk::simple::WienerDeconvolutionImageFilter::VALID );
EXPECT_EQ( (int) ITKType::OutputRegionModeEnum::SAME, (int) itk::simple::WienerDeconvolutionImageFilter::SAME );
EXPECT_EQ( (int) ITKType::OutputRegionModeEnum::VALID, (int) itk::simple::WienerDeconvolutionImageFilter::VALID );
}

TEST(BasicFilters,LandweberDeconvolution_ENUMCHECK) {
typedef itk::LandweberDeconvolutionImageFilter< itk::Image<float,3>, itk::Image<float,3> > ITKType;
EXPECT_EQ( (int) ITKType::OutputRegionModeType::SAME, (int) itk::simple::LandweberDeconvolutionImageFilter::SAME );
EXPECT_EQ( (int) ITKType::OutputRegionModeType::VALID, (int) itk::simple::LandweberDeconvolutionImageFilter::VALID );
EXPECT_EQ( (int) ITKType::OutputRegionModeEnum::SAME, (int) itk::simple::LandweberDeconvolutionImageFilter::SAME );
EXPECT_EQ( (int) ITKType::OutputRegionModeEnum::VALID, (int) itk::simple::LandweberDeconvolutionImageFilter::VALID );
}

TEST(BasicFilters,ProjectedLandweberDeconvolution_ENUMCHECK) {
typedef itk::ProjectedLandweberDeconvolutionImageFilter< itk::Image<float,3>, itk::Image<float,3> > ITKType;
EXPECT_EQ( (int) ITKType::OutputRegionModeType::SAME, (int) itk::simple::ProjectedLandweberDeconvolutionImageFilter::SAME );
EXPECT_EQ( (int) ITKType::OutputRegionModeType::VALID, (int) itk::simple::ProjectedLandweberDeconvolutionImageFilter::VALID );
EXPECT_EQ( (int) ITKType::OutputRegionModeEnum::SAME, (int) itk::simple::ProjectedLandweberDeconvolutionImageFilter::SAME );
EXPECT_EQ( (int) ITKType::OutputRegionModeEnum::VALID, (int) itk::simple::ProjectedLandweberDeconvolutionImageFilter::VALID );
}

TEST(BasicFilters,RichardsonLucyDeconvolution_ENUMCHECK) {
typedef itk::RichardsonLucyDeconvolutionImageFilter< itk::Image<float,3>, itk::Image<float,3> > ITKType;
EXPECT_EQ( (int) ITKType::OutputRegionModeType::SAME, (int) itk::simple::RichardsonLucyDeconvolutionImageFilter::SAME );
EXPECT_EQ( (int) ITKType::OutputRegionModeType::VALID, (int) itk::simple::RichardsonLucyDeconvolutionImageFilter::VALID );
EXPECT_EQ( (int) ITKType::OutputRegionModeEnum::SAME, (int) itk::simple::RichardsonLucyDeconvolutionImageFilter::SAME );
EXPECT_EQ( (int) ITKType::OutputRegionModeEnum::VALID, (int) itk::simple::RichardsonLucyDeconvolutionImageFilter::VALID );
}

TEST(BasicFilters,LabelMapContourOverlay_ENUMCHECK) {
Expand Down

0 comments on commit b3cc759

Please sign in to comment.