View Issue Details

IDProjectCategoryView StatusLast Update
0004290Slicer4Core: Base Codepublic2018-03-02 11:01
Reporterjcfr Assigned Tojcfr  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product VersionSlicer 4.7.0 
Target VersionSlicer 4.7.0Fixed in VersionSlicer 4.7.0 
Summary0004290: ITK warning: Refusing to register transform
Description

Following r25482, the warnings reported below are displayed when starting Slicer:

<pre>
WARNING: In /home/jcfr/Projects/Slicer-Release/ITKv4/Modules/IO/TransformFactory/include/itkTransformFactoryBase.h, line 81
TransformFactoryBase (0x2d741a0): Refusing to register transform "InverseDisplacementFieldTransform_float_3_3" again!

WARNING: In /home/jcfr/Projects/Slicer-Release/ITKv4/Modules/IO/TransformFactory/include/itkTransformFactoryBase.h, line 81
TransformFactoryBase (0x2d741a0): Refusing to register transform "InverseDisplacementFieldTransform_double_3_3" again!

WARNING: In /home/jcfr/Projects/Slicer-Release/ITKv4/Modules/IO/TransformFactory/include/itkTransformFactoryBase.h, line 81
TransformFactoryBase (0x2d741a0): Refusing to register transform "InverseBSplineDeformableTransform_float_3_3" again!

WARNING: In /home/jcfr/Projects/Slicer-Release/ITKv4/Modules/IO/TransformFactory/include/itkTransformFactoryBase.h, line 81
TransformFactoryBase (0x2d741a0): Refusing to register transform "InverseBSplineTransform_float_3_3" again!

WARNING: In /home/jcfr/Projects/Slicer-Release/ITKv4/Modules/IO/TransformFactory/include/itkTransformFactoryBase.h, line 81
TransformFactoryBase (0x2d741a0): Refusing to register transform "InverseBSplineDeformableTransform_double_3_3" again!

WARNING: In /home/jcfr/Projects/Slicer-Release/ITKv4/Modules/IO/TransformFactory/include/itkTransformFactoryBase.h, line 81
TransformFactoryBase (0x2d741a0): Refusing to register transform "InverseBSplineTransform_double_3_3" again!

WARNING: In /home/jcfr/Projects/Slicer-Release/ITKv4/Modules/IO/TransformFactory/include/itkTransformFactoryBase.h, line 81
TransformFactoryBase (0x2d741a0): Refusing to register transform "InverseThinPlateSplineKernelTransform_float_3_3" again!

WARNING: In /home/jcfr/Projects/Slicer-Release/ITKv4/Modules/IO/TransformFactory/include/itkTransformFactoryBase.h, line 81
TransformFactoryBase (0x2d741a0): Refusing to register transform "InverseThinPlateSplineKernelTransform_double_3_3" again!

WARNING: In /home/jcfr/Projects/Slicer-Release/ITKv4/Modules/IO/TransformFactory/include/itkTransformFactoryBase.h, line 81
TransformFactoryBase (0x2d741a0): Refusing to register transform "ThinPlateSplineKernelTransform_float_3_3" again!
</pre>

TagsNo tags attached.

Activities

jcfr

jcfr

2016-10-28 17:09

administrator   ~0014230

Fixed pushed here: https://github.com/Slicer/Slicer/pull/614

jcfr

jcfr

2016-10-28 17:24

administrator   ~0014231

In fact, previous PR was created while working on these fix: http://review.source.kitware.com/#/c/21677/2

blowekamp

blowekamp

2016-10-28 20:59

developer   ~0014232

Neither of these patches address the warnings in this issue. The value of the b-spline order is not changed with this pull 0000614. It does address the conceptual conflating for the 3rd template parameter of the Dimension and BSpline order.

The ITK patch http://review.source.kitware.com/#/c/21677/2 addresses warnings in SimpleITK related to duplicate registration of BSpline Transforms. And Bugs related to IO of BSplines with different orders not being loaded correctly.

blowekamp

blowekamp

2016-10-28 21:06

developer   ~0014233

My suggestion to address the Slicer issue was to ensure that Slicer only register the transforms once. That is adding some type of static bool in the following method to ensure it is only executed once:
https://github.com/Slicer/Slicer/blob/e8ab49bc2cfd025a31d242ce75c7af832d3503f3/Libs/MRML/Core/vtkITKTransformConverter.h#L116-L135

The counter suggestion was to add a static option to ITK's transform factory to disable the display of the warning.

bpaniagua

bpaniagua

2016-11-07 14:40

developer   ~0014237

Any progress in solving this issue? I am having this problem using Slicer
GIT_TAG 76ea6f7945a1135c2b8045fd8b281d5ed5965895 0002016-11-03

jcfr

jcfr

2016-11-07 15:28

administrator   ~0014239

Thanks to Francois, this should be addressed by https://github.com/InsightSoftwareConsortium/ITK/commit/abb121659478e87b776274a6c8bf24ff9095162c

Building locally, I will update Slicer trunk shortly.

jcfr

jcfr

2016-11-07 16:20

administrator   ~0014240

Fixed in http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&amp;revision=25508

Related Changesets

Import 2017-06-07 23:51:09: master fd05072a

2016-11-07 16:08:53

jcfr

Details Diff
ENH: Update ITK. Fixes 0004290

This commit addresses issue 0004290 avoiding the "already registered
transform" warning from being reported.

$ git shortlog 9071eea..883ecb4 --no-merges
Bill Lorensen (1):
ENH: Bump WikiExamples remote module version

Bradley Lowekamp (2):
BUG: Use BSpline Order 3 for 2D in transform factory.
ENH: Add spline order to BSplineTransform's string id

Francois Budin (6):
ENH: Update SCIFIO to latest version on 10/25/2016
BUG: Swig and PCRE do not support space in installation paths
BUG: exit() call from within piped commands was not exiting the script
BUG: Typo in folder creation command
ENH: Only display message for transform registered multiple times in debug
ENH: Image spacing must be positive

Gilles Filippini (1):
BUG: Use NATIVE_HBOOL for encoding HDF5 types.

Jon Haitz Legarreta (32):
ENH: Improve itk::VectorRescaleIntensityImageFilter coverage.
STYLE: Improve the itkVectorRescaleIntensityImageFilter style.
ENH: Print missing ivar in filter PrintSelf method.
ENH: Improve itkComplexToImaginaryFilter coverage.
ENH: Improve itkComplexToPhaseImageFilter coverage.
ENH: Improve itkComplexToModulusImageFilter coverage.
ENH: Improve itkComplexToRealImageFilter coverage.
ENH: Improve itkVectorResampleImageFilter coverage.
ENH: Add GetTransform method.
ENH: Improve itkConstrainedValueAdditionImageFilter coverage.
ENH: Improve itkModulusImageFilter coverage.
ENH: Improve itkLog10ImageFilter coverage.
ENH: Imporve itkMagnitudeAndPhaseToComplexImageFilter coverage.
ENH: Improve itkLogImageFilter coverage.
ENH: Improve itkInvertIntensityImageFilter coverage.
STYLE: Improve itkInvertIntensityImageFilter style.
DOC: Add missing doc to itkInvertIntensityImageFilter.
STYLE: Improve itkIntensityWindowingImageFilter style.
STYLE: Use initialization lists.
ENH: Improve itkIntensityWindowingImageFilter coverage.
ENH: Improve itkNaryMaximumImageFilter coverage.
COMP: Fix std::precision type casting warning.
ENH: Improve itkPointSetToPointSetRegistrationMethod coverage.
STYLE: Improve the itkPointSetToPointSetImageRegistrationMethod style.
ENH: Remove SmartPointers being explicitly initialized to null.
STYLE: Improve the itkPointSetToImageRegistrationMethod style.
ENH: Improve itkPointSetToImageRegistration coverage.
STYLE: Change the name of the itkPointSetToImageRegistrationMethod test.
STYLE: Improve itkVectorResampleImageFilter style.
STYLE: Improve the itkAntiAliasBinaryImageFilter style.
ENH: Improve trigonometric function filters' coverage.
STYLE: Remove test names from std::out messages.

KWSys Robot (2):
KWSys 2016-10-23 (b630d2f5)
KWSys 2016-11-03 (37306a1c)

Matthew McCormick (11):
BUG: Use SpacePrecisionType in TileImageFilter
ENH: Run .sha512, .md5 simultaneous modification pre-commit check
BUG: Correct CastXML Windows binary
BUG: Support non-zero Index in LevelSetNeighborhoodExtractor
ENH: Add ArchiveTestingDataOnGirder.py
BUG: Correct AtanRegularizationHeavisideStepFunction derivative
ENH: Add Utilities/Maintenance/ContentLinkSynchronization.sh
BUG: Remove extra HessianToObjectness content links
ENH: Wrap SpatialFunction float types with ITK_WRAP_float
BUG: Bump PerformanceBenchmarking to 2016-11-04
BUG: itk_python_expression_add_test too many quotes.

Taylor Braun-Jones (2):
COMP: Fix truncation from double to float warning
DOC: Fix incorrect itkFactorylessNewMacro documentation

git-svn-id: http://svn.slicer.org/Slicer4/trunk@25508 3bd1e089-480b-0410-8dfb-8563597acbee
mod - SuperBuild/External_ITKv4.cmake Diff File

Issue History

Date Modified Username Field Change
2016-10-27 21:50 jcfr New Issue
2016-10-27 21:50 jcfr Status new => assigned
2016-10-27 21:50 jcfr Assigned To => fbudin
2016-10-28 17:09 jcfr Assigned To fbudin => blowekamp
2016-10-28 17:09 jcfr Note Added: 0014230
2016-10-28 17:24 jcfr Note Added: 0014231
2016-10-28 20:59 blowekamp Note Added: 0014232
2016-10-28 21:06 blowekamp Note Added: 0014233
2016-11-07 14:40 bpaniagua Note Added: 0014237
2016-11-07 15:28 jcfr Note Added: 0014239
2016-11-07 15:28 jcfr Assigned To blowekamp => jcfr
2016-11-07 16:20 jcfr Note Added: 0014240
2016-11-07 16:20 jcfr Status assigned => resolved
2016-11-07 16:20 jcfr Fixed in Version => Slicer 4.7.0
2016-11-07 16:20 jcfr Resolution open => fixed
2017-06-10 08:51 jcfr Changeset attached => Slicer master fd05072a
2018-03-02 11:01 jcfr Status resolved => closed