Skip to content

Commit 2d0e391

Browse files
authored
Merge pull request #29 from thewtex/ants_registration
ants registration
2 parents 9260c2b + 5db2f91 commit 2d0e391

File tree

9 files changed

+75
-75
lines changed

9 files changed

+75
-75
lines changed
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
* limitations under the License.
1616
*
1717
*=========================================================================*/
18-
#ifndef itkANTsRegistration_h
19-
#define itkANTsRegistration_h
18+
#ifndef itkANTSRegistration_h
19+
#define itkANTSRegistration_h
2020

2121
#include "itkProcessObject.h"
2222
#include "itkImage.h"
@@ -27,7 +27,7 @@
2727
namespace itk
2828
{
2929

30-
/** \class ANTsRegistration
30+
/** \class ANTSRegistration
3131
*
3232
* \brief Image-to-image registration method parameterized according to ANTsR or ANTsPy.
3333
*
@@ -41,10 +41,10 @@ namespace itk
4141
*
4242
*/
4343
template <typename TFixedImage, typename TMovingImage, typename TParametersValueType = double>
44-
class ANTsRegistration : public ProcessObject
44+
class ANTSRegistration : public ProcessObject
4545
{
4646
public:
47-
ITK_DISALLOW_COPY_AND_MOVE(ANTsRegistration);
47+
ITK_DISALLOW_COPY_AND_MOVE(ANTSRegistration);
4848

4949
static constexpr unsigned int ImageDimension = TFixedImage::ImageDimension;
5050

@@ -63,13 +63,13 @@ class ANTsRegistration : public ProcessObject
6363
using DecoratedOutputTransformType = DataObjectDecorator<OutputTransformType>;
6464

6565
/** Standard class aliases. */
66-
using Self = ANTsRegistration<FixedImageType, MovingImageType, ParametersValueType>;
66+
using Self = ANTSRegistration<FixedImageType, MovingImageType, ParametersValueType>;
6767
using Superclass = ProcessObject;
6868
using Pointer = SmartPointer<Self>;
6969
using ConstPointer = SmartPointer<const Self>;
7070

7171
/** Run-time type information. */
72-
itkTypeMacro(ANTsRegistration, ProcessObject);
72+
itkTypeMacro(ANTSRegistration, ProcessObject);
7373

7474
/** Standard New macro. */
7575
itkNewMacro(Self);
@@ -277,8 +277,8 @@ class ANTsRegistration : public ProcessObject
277277

278278

279279
protected:
280-
ANTsRegistration();
281-
~ANTsRegistration() override = default;
280+
ANTSRegistration();
281+
~ANTSRegistration() override = default;
282282

283283
/** Make a DataObject of the correct type to be used as the specified output. */
284284
using DataObjectPointerArraySizeType = ProcessObject::DataObjectPointerArraySizeType;
@@ -366,7 +366,7 @@ class ANTsRegistration : public ProcessObject
366366
} // namespace itk
367367

368368
#ifndef ITK_MANUAL_INSTANTIATION
369-
# include "itkANTsRegistration.hxx"
369+
# include "itkANTSRegistration.hxx"
370370
#endif
371371

372-
#endif // itkANTsRegistration
372+
#endif // itkANTSRegistration
Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@
1515
* limitations under the License.
1616
*
1717
*=========================================================================*/
18-
#ifndef itkANTsRegistration_hxx
19-
#define itkANTsRegistration_hxx
18+
#ifndef itkANTSRegistration_hxx
19+
#define itkANTSRegistration_hxx
2020

2121
#include <sstream>
2222

2323
#include "itkCastImageFilter.h"
2424
#include "itkResampleImageFilter.h"
2525
#include "itkPrintHelper.h"
26-
#include "itkANTsRegistration.h"
26+
#include "itkANTSRegistration.h"
2727

2828
namespace itk
2929
{
3030
template <typename TFixedImage, typename TMovingImage, typename TParametersValueType>
31-
ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::ANTsRegistration()
31+
ANTSRegistration<TFixedImage, TMovingImage, TParametersValueType>::ANTSRegistration()
3232
{
3333
ProcessObject::SetNumberOfRequiredOutputs(2);
3434
ProcessObject::SetNumberOfRequiredInputs(2);
@@ -48,7 +48,7 @@ ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::ANTsRegistrat
4848

4949
template <typename TFixedImage, typename TMovingImage, typename TParametersValueType>
5050
void
51-
ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::PrintSelf(std::ostream & os, Indent indent) const
51+
ANTSRegistration<TFixedImage, TMovingImage, TParametersValueType>::PrintSelf(std::ostream & os, Indent indent) const
5252
{
5353
using namespace print_helper;
5454
Superclass::PrintSelf(os, indent);
@@ -81,7 +81,7 @@ ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::PrintSelf(std
8181

8282
template <typename TFixedImage, typename TMovingImage, typename TParametersValueType>
8383
void
84-
ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::SetFixedImage(const FixedImageType * image)
84+
ANTSRegistration<TFixedImage, TMovingImage, TParametersValueType>::SetFixedImage(const FixedImageType * image)
8585
{
8686
if (image != this->GetFixedImage())
8787
{
@@ -93,15 +93,15 @@ ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::SetFixedImage
9393

9494
template <typename TFixedImage, typename TMovingImage, typename TParametersValueType>
9595
auto
96-
ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::GetFixedImage() const -> const FixedImageType *
96+
ANTSRegistration<TFixedImage, TMovingImage, TParametersValueType>::GetFixedImage() const -> const FixedImageType *
9797
{
9898
return static_cast<const FixedImageType *>(this->ProcessObject::GetInput(0));
9999
}
100100

101101

102102
template <typename TFixedImage, typename TMovingImage, typename TParametersValueType>
103103
void
104-
ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::SetMovingImage(const MovingImageType * image)
104+
ANTSRegistration<TFixedImage, TMovingImage, TParametersValueType>::SetMovingImage(const MovingImageType * image)
105105
{
106106
if (image != this->GetMovingImage())
107107
{
@@ -113,14 +113,14 @@ ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::SetMovingImag
113113

114114
template <typename TFixedImage, typename TMovingImage, typename TParametersValueType>
115115
auto
116-
ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::GetMovingImage() const -> const MovingImageType *
116+
ANTSRegistration<TFixedImage, TMovingImage, TParametersValueType>::GetMovingImage() const -> const MovingImageType *
117117
{
118118
return static_cast<const MovingImageType *>(this->ProcessObject::GetInput(1));
119119
}
120120

121121
template <typename TFixedImage, typename TMovingImage, typename TParametersValueType>
122122
auto
123-
ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::GetWarpedMovingImage() const ->
123+
ANTSRegistration<TFixedImage, TMovingImage, TParametersValueType>::GetWarpedMovingImage() const ->
124124
typename MovingImageType::Pointer
125125
{
126126
using ResampleFilterType =
@@ -135,7 +135,7 @@ ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::GetWarpedMovi
135135

136136
template <typename TFixedImage, typename TMovingImage, typename TParametersValueType>
137137
auto
138-
ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::GetWarpedFixedImage() const ->
138+
ANTSRegistration<TFixedImage, TMovingImage, TParametersValueType>::GetWarpedFixedImage() const ->
139139
typename FixedImageType::Pointer
140140
{
141141
using ResampleFilterType =
@@ -150,7 +150,7 @@ ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::GetWarpedFixe
150150

151151
template <typename TFixedImage, typename TMovingImage, typename TParametersValueType>
152152
void
153-
ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::SetFixedMask(const LabelImageType * mask)
153+
ANTSRegistration<TFixedImage, TMovingImage, TParametersValueType>::SetFixedMask(const LabelImageType * mask)
154154
{
155155
if (mask != this->GetFixedMask())
156156
{
@@ -161,14 +161,14 @@ ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::SetFixedMask(
161161

162162
template <typename TFixedImage, typename TMovingImage, typename TParametersValueType>
163163
auto
164-
ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::GetFixedMask() const -> const LabelImageType *
164+
ANTSRegistration<TFixedImage, TMovingImage, TParametersValueType>::GetFixedMask() const -> const LabelImageType *
165165
{
166166
return static_cast<const LabelImageType *>(this->ProcessObject::GetInput("FixedMask"));
167167
}
168168

169169
template <typename TFixedImage, typename TMovingImage, typename TParametersValueType>
170170
inline void
171-
ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::SetMovingMask(const LabelImageType * mask)
171+
ANTSRegistration<TFixedImage, TMovingImage, TParametersValueType>::SetMovingMask(const LabelImageType * mask)
172172
{
173173
if (mask != this->GetMovingMask())
174174
{
@@ -179,15 +179,15 @@ ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::SetMovingMask
179179

180180
template <typename TFixedImage, typename TMovingImage, typename TParametersValueType>
181181
auto
182-
ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::GetMovingMask() const -> const LabelImageType *
182+
ANTSRegistration<TFixedImage, TMovingImage, TParametersValueType>::GetMovingMask() const -> const LabelImageType *
183183
{
184184
return static_cast<const LabelImageType *>(this->ProcessObject::GetInput("MovingMask"));
185185
}
186186

187187

188188
template <typename TFixedImage, typename TMovingImage, typename TParametersValueType>
189189
auto
190-
ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::GetOutput(DataObjectPointerArraySizeType index)
190+
ANTSRegistration<TFixedImage, TMovingImage, TParametersValueType>::GetOutput(DataObjectPointerArraySizeType index)
191191
-> DecoratedOutputTransformType *
192192
{
193193
return static_cast<DecoratedOutputTransformType *>(this->ProcessObject::GetOutput(index));
@@ -196,7 +196,7 @@ ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::GetOutput(Dat
196196

197197
template <typename TFixedImage, typename TMovingImage, typename TParametersValueType>
198198
auto
199-
ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::GetOutput(DataObjectPointerArraySizeType index) const
199+
ANTSRegistration<TFixedImage, TMovingImage, TParametersValueType>::GetOutput(DataObjectPointerArraySizeType index) const
200200
-> const DecoratedOutputTransformType *
201201
{
202202
return static_cast<const DecoratedOutputTransformType *>(this->ProcessObject::GetOutput(index));
@@ -205,7 +205,7 @@ ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::GetOutput(Dat
205205

206206
template <typename TFixedImage, typename TMovingImage, typename TParametersValueType>
207207
void
208-
ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::SetInput(unsigned index,
208+
ANTSRegistration<TFixedImage, TMovingImage, TParametersValueType>::SetInput(unsigned index,
209209
const FixedImageType * image)
210210
{
211211
if (index == 0)
@@ -225,7 +225,7 @@ ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::SetInput(unsi
225225

226226
template <typename TFixedImage, typename TMovingImage, typename TParametersValueType>
227227
void
228-
ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::AllocateOutputs()
228+
ANTSRegistration<TFixedImage, TMovingImage, TParametersValueType>::AllocateOutputs()
229229
{
230230
const DecoratedOutputTransformType * decoratedOutputForwardTransform = this->GetOutput(0);
231231
if (!decoratedOutputForwardTransform || !decoratedOutputForwardTransform->Get())
@@ -243,7 +243,7 @@ ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::AllocateOutpu
243243

244244
template <typename TFixedImage, typename TMovingImage, typename TParametersValueType>
245245
auto
246-
ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::MakeOutput(DataObjectPointerArraySizeType)
246+
ANTSRegistration<TFixedImage, TMovingImage, TParametersValueType>::MakeOutput(DataObjectPointerArraySizeType)
247247
-> DataObjectPointer
248248
{
249249
typename OutputTransformType::Pointer ptr;
@@ -257,7 +257,7 @@ ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::MakeOutput(Da
257257
template <typename TFixedImage, typename TMovingImage, typename TParametersValueType>
258258
template <typename TImage>
259259
auto
260-
ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::CastImageToInternalType(
260+
ANTSRegistration<TFixedImage, TMovingImage, TParametersValueType>::CastImageToInternalType(
261261
const TImage * inputImage) -> typename InternalImageType::Pointer
262262
{
263263
using CastFilterType = CastImageFilter<TImage, InternalImageType>;
@@ -272,7 +272,7 @@ ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::CastImageToIn
272272

273273
template <typename TFixedImage, typename TMovingImage, typename TParametersValueType>
274274
void
275-
ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::SingleStageRegistration(
275+
ANTSRegistration<TFixedImage, TMovingImage, TParametersValueType>::SingleStageRegistration(
276276
typename RegistrationHelperType::XfrmMethod xfrmMethod,
277277
const InitialTransformType * initialTransform,
278278
typename InternalImageType::Pointer fixedImage,
@@ -469,7 +469,7 @@ ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::SingleStageRe
469469

470470
template <typename TFixedImage, typename TMovingImage, typename TParametersValueType>
471471
void
472-
ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::GenerateData()
472+
ANTSRegistration<TFixedImage, TMovingImage, TParametersValueType>::GenerateData()
473473
{
474474
this->AllocateOutputs();
475475

@@ -630,4 +630,4 @@ ANTsRegistration<TFixedImage, TMovingImage, TParametersValueType>::GenerateData(
630630

631631
} // end namespace itk
632632

633-
#endif // itkANTsRegistration_hxx
633+
#endif // itkANTSRegistration_hxx

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
44

55
[project]
66
name = "itk-ants"
7-
version = "0.4rc2"
7+
version = "0.4rc3"
88
description = "Advanced Normalization Tools in WebAssembly"
99
readme = "README.rst"
1010
license = {file = "LICENSE"}

0 commit comments

Comments
 (0)