Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ ImageToRectilinearFEMObjectFilter<TInputImage>::PrintSelf(std::ostream & os, Ind
os << indent << "NumberOfElements: " << m_NumberOfElements << std::endl;
os << indent << "PixelsPerElement: " << m_PixelsPerElement << std::endl;

itkPrintSelfObject(Material);
itkPrintSelfObjectMacro(Material);
itkPrintSelfObjectMacro(Element);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,15 @@ FiniteDifferenceFunctionLoad<TMoving, TFixed>::PrintSelf(std::ostream & os, Inde
os << indent << "SolutionIndex2: " << m_SolutionIndex2 << std::endl;
os << indent << "Gamma: " << m_Gamma << std::endl;

itkPrintSelfObjectMacro(Solution);
os << indent << "Solution: ";
if (m_Solution != nullptr)
{
os << m_Solution << std::endl;
}
else
{
os << "(null)" << std::endl;
}

os << indent << "GradSigma: " << static_cast<typename NumericTraits<Float>::PrintType>(m_GradSigma) << std::endl;
os << indent << "Sign: " << m_Sign << std::endl;
Expand Down
9 changes: 7 additions & 2 deletions Modules/Registration/FEM/include/itkFEMRegistrationFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,8 @@ FEMRegistrationFilter<TMovingImage, TFixedImage, TFemObject>::PrintSelf(std::ost
os << indent << "FileCount: " << m_FileCount << std::endl;
os << indent << "CurrentLevel: " << m_CurrentLevel << std::endl;
os << indent << "CurrentLevelImageSize: "
<< static_cast<typename NumericTraits<typename FixedImageType::SizeType>::PrintType>(m_CurrentLevel) << std::endl;
<< static_cast<typename NumericTraits<typename FixedImageType::SizeType>::PrintType>(m_CurrentLevelImageSize)
<< std::endl;
os << indent << "WhichMetric: " << m_WhichMetric << std::endl;

os << indent << "MeshPixelsPerElementAtEachResolution: " << m_MeshPixelsPerElementAtEachResolution << std::endl;
Expand Down Expand Up @@ -1526,7 +1527,11 @@ FEMRegistrationFilter<TMovingImage, TFixedImage, TFemObject>::PrintSelf(std::ost
itkPrintSelfObjectMacro(Metric);
itkPrintSelfObjectMacro(FEMObject);

os << indent << "LandmarkArray: " << m_LandmarkArray << std::endl;
os << indent << "LandmarkArray: ";
for (const auto & elem : m_LandmarkArray)
{
os << indent.GetNextIndent() << "[" << &elem - &*(m_LandmarkArray.begin()) << "]: " << *elem << std::endl;
}

itkPrintSelfObjectMacro(Interpolator);

Expand Down