Skip to content

Commit 333967a

Browse files
authored
Merge pull request #15 from thewtex/azure-itk-version
ENH: Bump Azure ITK version for ITK 5.0.0
2 parents c714ad5 + 3954c44 commit 333967a

5 files changed

+22
-78
lines changed

include/itkNormalizedCorrelationTwoImageToOneImageMetric.hxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ NormalizedCorrelationTwoImageToOneImageMetric<TFixedImage,TMovingImage>
8383

8484
fixedImage1->TransformIndexToPhysicalPoint( index, inputPoint );
8585

86-
if( this->m_FixedImageMask1 && !this->m_FixedImageMask1->IsInside( inputPoint ) )
86+
if( this->m_FixedImageMask1 && !this->m_FixedImageMask1->IsInsideInWorldSpace( inputPoint ) )
8787
{
8888
++ti1;
8989
continue;
9090
}
9191

9292
// typename Superclass::OutputPointType transformedPoint = this->m_Transform->TransformPoint( inputPoint );
9393

94-
if( this->m_MovingImageMask && !this->m_MovingImageMask->IsInside( inputPoint ) )
94+
if( this->m_MovingImageMask && !this->m_MovingImageMask->IsInsideInWorldSpace( inputPoint ) )
9595
{
9696
++ti1;
9797
continue;
@@ -158,15 +158,15 @@ NormalizedCorrelationTwoImageToOneImageMetric<TFixedImage,TMovingImage>
158158
// typename Superclass::InputPointType inputPoint;
159159
fixedImage2->TransformIndexToPhysicalPoint( index, inputPoint );
160160

161-
if( this->m_FixedImageMask2 && !this->m_FixedImageMask2->IsInside( inputPoint ) )
161+
if( this->m_FixedImageMask2 && !this->m_FixedImageMask2->IsInsideInWorldSpace( inputPoint ) )
162162
{
163163
++ti2;
164164
continue;
165165
}
166166

167167
// typename Superclass::OutputPointType transformedPoint = this->m_Transform->TransformPoint( inputPoint );
168168

169-
if( this->m_MovingImageMask && !this->m_MovingImageMask->IsInside( inputPoint ) )
169+
if( this->m_MovingImageMask && !this->m_MovingImageMask->IsInsideInWorldSpace( inputPoint ) )
170170
{
171171
++ti2;
172172
continue;

include/itkSiddonJacobsRayCastInterpolateImageFunction.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,18 @@ class SiddonJacobsRayCastInterpolateImageFunction :
182182
return true;
183183
}
184184

185+
#if !defined(ITKV4_COMPATIBILITY)
186+
SizeType GetRadius() const override
187+
{
188+
const InputImageType* input = this->GetInputImage();
189+
if ( !input )
190+
{
191+
itkExceptionMacro( "Input image required!" );
192+
}
193+
return input->GetLargestPossibleRegion().GetSize();
194+
}
195+
#endif
196+
185197
protected:
186198
SiddonJacobsRayCastInterpolateImageFunction();
187199

include/itkTwoProjectionImageRegistrationMethod.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,6 @@ class TwoProjectionImageRegistrationMethod : public ProcessObject
199199
using Superclass::MakeOutput;
200200
DataObjectPointer MakeOutput( DataObjectPointerArraySizeType idx) override;
201201

202-
/** Method to return the latest modified time of this object or
203-
* any of its cached ivars */
204-
unsigned long GetMTime() const override;
205-
206202
protected:
207203
TwoProjectionImageRegistrationMethod();
208204
~TwoProjectionImageRegistrationMethod() override {};

include/itkTwoProjectionImageRegistrationMethod.hxx

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -58,71 +58,6 @@ TwoProjectionImageRegistrationMethod<TFixedImage,TMovingImage>
5858
}
5959

6060

61-
template < typename TFixedImage, typename TMovingImage >
62-
unsigned long
63-
TwoProjectionImageRegistrationMethod<TFixedImage,TMovingImage>
64-
::GetMTime() const
65-
{
66-
unsigned long mtime = Superclass::GetMTime();
67-
unsigned long m;
68-
69-
70-
// Some of the following should be removed once ivars are put in the
71-
// input and output lists
72-
73-
if (m_Transform)
74-
{
75-
m = m_Transform->GetMTime();
76-
mtime = (m > mtime ? m : mtime);
77-
}
78-
79-
if (m_Interpolator1)
80-
{
81-
m = m_Interpolator1->GetMTime();
82-
mtime = (m > mtime ? m : mtime);
83-
}
84-
85-
if (m_Interpolator2)
86-
{
87-
m = m_Interpolator2->GetMTime();
88-
mtime = (m > mtime ? m : mtime);
89-
}
90-
91-
if (m_Metric)
92-
{
93-
m = m_Metric->GetMTime();
94-
mtime = (m > mtime ? m : mtime);
95-
}
96-
97-
if (m_Optimizer)
98-
{
99-
m = m_Optimizer->GetMTime();
100-
mtime = (m > mtime ? m : mtime);
101-
}
102-
103-
if (m_FixedImage1)
104-
{
105-
m = m_FixedImage1->GetMTime();
106-
mtime = (m > mtime ? m : mtime);
107-
}
108-
109-
if (m_FixedImage2)
110-
{
111-
m = m_FixedImage2->GetMTime();
112-
mtime = (m > mtime ? m : mtime);
113-
}
114-
115-
if (m_MovingImage)
116-
{
117-
m = m_MovingImage->GetMTime();
118-
mtime = (m > mtime ? m : mtime);
119-
}
120-
121-
return mtime;
122-
123-
}
124-
125-
12661
template < typename TFixedImage, typename TMovingImage >
12762
void
12863
TwoProjectionImageRegistrationMethod<TFixedImage,TMovingImage>

test/azure-pipelines.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
variables:
2-
ITKGitTag: v5.0rc01
2+
ITKGitTag: v5.0.0
3+
ITKPythonGitTag: v5.0.0.post1
34
CMakeBuildType: Release
45

56
trigger:
@@ -156,7 +157,7 @@ jobs:
156157
displayName: 'Fetch build script'
157158
158159
- script: |
159-
export ITK_PACKAGE_VERSION=$(ITKGitTag)
160+
export ITK_PACKAGE_VERSION=$(ITKPythonGitTag)
160161
./dockcross-manylinux-download-cache-and-build-module-wheels.sh
161162
displayName: 'Build Python packages'
162163
@@ -171,7 +172,7 @@ jobs:
171172
timeoutInMinutes: 0
172173
cancelTimeoutInMinutes: 300
173174
pool:
174-
vmImage: 'macos-10.13'
175+
vmImage: 'macos-10.14'
175176

176177
steps:
177178
- script: |
@@ -180,7 +181,7 @@ jobs:
180181
displayName: 'Fetch build script'
181182
182183
- script: |
183-
export ITK_PACKAGE_VERSION=$(ITKGitTag)
184+
export ITK_PACKAGE_VERSION=$(ITKPythonGitTag)
184185
./macpython-download-cache-and-build-module-wheels.sh
185186
displayName: 'Build Python packages'
186187
@@ -204,7 +205,7 @@ jobs:
204205
205206
- script: |
206207
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
207-
set ITK_PACKAGE_VERSION=$(ITKGitTag)
208+
set ITK_PACKAGE_VERSION=$(ITKPythonGitTag)
208209
set CC=cl.exe
209210
set CXX=cl.exe
210211
powershell.exe -file .\windows-download-cache-and-build-module-wheels.ps1

0 commit comments

Comments
 (0)