Skip to content

Commit 754f16b

Browse files
hjmjohnsonSunderlandkyl
authored andcommitted
COMP: Use itk::IOComponentEnum and include vnl_svd.h (ITK 6)
ITK removes itk::ImageIOBase::IOComponentType when ITK_LEGACY_REMOVE is ON, which ITK forces whenever it is built with wrapping enabled. The namespace-scope itk::IOComponentEnum is present in both ITK 5.4 and ITK 6, so this spelling builds against either. vtkPlusProbeCalibrationOptimizerAlgo used vnl_svd without including it, relying on an ITK header to pull it in transitively; ITK 6 no longer does. Include it directly.
1 parent c796218 commit 754f16b

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/PlusCalibration/vtkProbeCalibrationAlgo/vtkPlusProbeCalibrationOptimizerAlgo.cxx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ See License.txt for details.
1818

1919
#include "vtksys/SystemTools.hxx"
2020

21+
#include <vnl/algo/vnl_svd.h>
22+
2123
#include "itkPowellOptimizer.h"
2224
#include "itkScaleVersor3DTransform.h"
2325
#include "itkSimilarity3DTransform.h"

‎src/PlusCommon/PlusCommon.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class vtkXMLDataElement;
5151

5252
namespace PlusCommon
5353
{
54-
typedef itk::ImageIOBase::IOComponentType ITKScalarPixelType;
54+
typedef itk::IOComponentEnum ITKScalarPixelType;
5555
typedef int VTKScalarPixelType;
5656
typedef int IGTLScalarPixelType;
5757

0 commit comments

Comments
 (0)