Skip to content

Commit e011fa5

Browse files
committed
[Registration] typo and static_cast
1 parent 575672b commit e011fa5

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

RELEASE_NOTES.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ medInria 4.0:
2424
- Fix some plugins wrongly loaded on Windows.
2525
- BUGFIX 4.0.1:
2626
* Fix the path to the online documentation.
27-
* Allow to use data with different size or spasing in LCCLogDemons and DiffeomorphicDemons.
28-
* Manual Registration: enhance landmarks numbers for better user understanding.
27+
* Allow to use data with different size or spacing in LCCLogDemons and DiffeomorphicDemons.
28+
* Manual Registration: enhance landmark numbers for better user understanding.
2929
* Fix Histogram Analysis width problem displaying multi-results.
3030

3131
medInria 3.3:

src/plugins/legacy/LCCLogDemons/LCCLogDemons.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ QString LCCLogDemons::description() const
166166
template <typename PixelType>
167167
int LCCLogDemonsPrivate::update()
168168
{
169-
RegImageType *inputFixed = (RegImageType*) proc->fixedImage().GetPointer();
170-
RegImageType *inputMoving = (RegImageType*) proc->movingImages()[0].GetPointer();
169+
RegImageType *inputFixed = static_cast<RegImageType*>(proc->fixedImage().GetPointer());
170+
RegImageType *inputMoving = static_cast<RegImageType*>(proc->movingImages()[0].GetPointer());
171171

172172
// Cast spacing, origin, direction and size from the moving data to the fixed one
173173
typedef itk::ResampleImageFilter<RegImageType, RegImageType> ResampleFilterType;

src/plugins/legacy/diffeomorphicDemons/diffeomorphicDemons.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ int diffeomorphicDemonsPrivate::update()
9696
typedef itk::Image< float, 3 > RegImageType;
9797
typedef double TransformScalarType;
9898

99-
FixedImageType *inputFixed = (FixedImageType*) proc->fixedImage().GetPointer();
100-
MovingImageType *inputMoving = (MovingImageType*) proc->movingImages()[0].GetPointer();
99+
FixedImageType *inputFixed = static_cast<FixedImageType*>(proc->fixedImage().GetPointer());
100+
MovingImageType *inputMoving = static_cast<MovingImageType*>(proc->movingImages()[0].GetPointer());
101101

102102
// Cast spacing, origin, direction and size from the moving data to the fixed one
103103
typedef itk::ResampleImageFilter<MovingImageType, MovingImageType> ResampleFilterType;

src/plugins/legacy/manualRegistration/manualRegistration.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ template <typename PixelType, typename TransformType> int manualRegistrationPriv
160160
typedef itk::ResampleImageFilter< MovingImageType,MovingImageType,TransformScalarType > ResampleFilterType;
161161
typename ResampleFilterType::Pointer resampler = ResampleFilterType::New();
162162
resampler->SetTransform(transform);
163-
resampler->SetInput((const MovingImageType*)proc->movingImages()[0].GetPointer());
164-
resampler->SetSize( proc->fixedImage()->GetLargestPossibleRegion().GetSize() );
163+
resampler->SetInput(static_cast<const MovingImageType*>(proc->movingImages()[0].GetPointer()));
164+
resampler->SetSize(proc->fixedImage()->GetLargestPossibleRegion().GetSize());
165165
resampler->SetOutputOrigin( proc->fixedImage()->GetOrigin() );
166166
resampler->SetOutputSpacing( proc->fixedImage()->GetSpacing() );
167167
resampler->SetOutputDirection( proc->fixedImage()->GetDirection() );

0 commit comments

Comments
 (0)