Skip to content

Commit

Permalink
ENH: Use itkPrintSelfObjectMacro to print objects that can be null
Browse files Browse the repository at this point in the history
Use `itkPrintSelfObjectMacro` to print objects that can be null.
  • Loading branch information
jhlegarreta authored and dzenanz committed Sep 19, 2022
1 parent ebddf08 commit 1802f39
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,10 @@ ESMDemonsRegistrationFunction<TFixedImage, TMovingImage, TDisplacementField>::Pr
os << indent << "MaximumUpdateStepLength: ";
os << m_MaximumUpdateStepLength << std::endl;

os << indent << "MovingImageIterpolator: ";
os << m_MovingImageInterpolator.GetPointer() << std::endl;
os << indent << "FixedImageGradientCalculator: ";
os << m_FixedImageGradientCalculator.GetPointer() << std::endl;
os << indent << "MappedMovingImageGradientCalculator: ";
os << m_MappedMovingImageGradientCalculator.GetPointer() << std::endl;
itkPrintSelfObjectMacro(MovingImageInterpolator);
itkPrintSelfObjectMacro(FixedImageGradientCalculator);
itkPrintSelfObjectMacro(MappedMovingImageGradientCalculator);

os << indent << "DenominatorThreshold: ";
os << m_DenominatorThreshold << std::endl;
os << indent << "IntensityDifferenceThreshold: ";
Expand Down

0 comments on commit 1802f39

Please sign in to comment.