General Registration(Elastix) problem!

Dear Slicer user

I am using the General Registration(Elastix) tool,when I use the parameter (Preset)“2D x-ray - 3D CT(cerebral)”,there’s some error occured.

The detailed log is in the following line.Seems like the library “RayCastInterpolator” is not included in Slicer?

Anyone could help?Thanks in advance.


Volume registration is started in working directory: C:/Users/endlessric23/AppData/Local/Temp/Slicer/Elastix/20200215_004706_305

Register volumes…

elastix is started at Sat Feb 15 00:47:06 2020.

which elastix: C:\Users\endlessric23\AppData\Roaming\NA-MIC\Extensions-28770\SlicerElastix\lib\Slicer-4.11\elastix.exe

elastix runs at: DESKTOP-I4B32KJ

Windows Professional (x64), (Build 9200)

with 16191 MB memory, and 4 cores @ 2295 MHz.


Running elastix with parameter file 0: “C:\Users\endlessric23\AppData\Roaming\NA-MIC\Extensions-28770\SlicerElastix\lib\Slicer-4.11\qt-scripted-modules\Resources\RegistrationParameters\par0013Powel_NGC_singleImage.txt”.

Current time: Sat Feb 15 00:47:06 2020.

Reading the elastix parameters from file …

Installing all components.

InstallingComponents was successful.

Error:

RayCastInterpolator(index 3) - This component is not installed!

ERROR: error occurred while creating Interpolator 0.

itk::ExceptionObject (000000177172F1A0)

Location: “unknown”

File: D:\D\P\S-0-E-b\SlicerElastix-build\elastix\Core\Kernel\elxElastixMain.cxx

Line: 822

Description: itk::ERROR: ElastixMain(0000021068BF4AA0): The following component could not be created: RayCastInterpolator

Error:

NormalizedGradientCorrelation(index 3) - This component is not installed!

ERROR: error occurred while creating Metric 0.

itk::ExceptionObject (000000177172F1A0)

Location: “unknown”

File: D:\D\P\S-0-E-b\SlicerElastix-build\elastix\Core\Kernel\elxElastixMain.cxx

Line: 822

Description: itk::ERROR: ElastixMain(0000021068BF4AA0): The following component could not be created: NormalizedGradientCorrelation

Error:

FinalRayCastInterpolator(index 3) - This component is not installed!

ERROR: error occurred while creating ResampleInterpolator 0.

itk::ExceptionObject (000000177172F1A0)

Location: “unknown”

File: D:\D\P\S-0-E-b\SlicerElastix-build\elastix\Core\Kernel\elxElastixMain.cxx

Line: 822

Description: itk::ERROR: ElastixMain(0000021068BF4AA0): The following component could not be created: FinalRayCastInterpolator

ERROR:

One or more components could not be created.

Errors occurred!

vtkDebugLeaks has found no leaks.

Error: Command ‘elastix’ returned non-zero exit status 1.

We bundle an Elastix instance with the SlicerElastix extension that is built with default build options. If you find that FinalRayCastInterpolator is not included then please contact the Elastix team and ask why this is not enabled when building Elastix with default options. Depending on the answer, we may decide to enable this option.

In the meantime, you can use a custom Elastix package (that has all the optional components that you need) by setting path to Elastix in “Advanced” section.

1 Like

I have find out the solution.
The Elastix extension I install from the Slicer is not the complete version. After I download the new version from the Elastix official website and overwrite the “elastix.exe” and “transformix.exe” to the relative path ,the problem have been solved.
Maybe it’s better to add the new Elastix version to the next release.Thanks!

1 Like

Hi, Eric, This means that the Elastrix can register the ‘2D X ray’ with 3d CT? interesting. Could you give me some information about that? Thanks.

We build Slicer’s Elastix from latest version of the source code, default build options. If there are features that are disabled by default then they are not included. Please ask the Elastix team what build options they are using for building their downloadable binaries and then we can switch to using the same options.

Sorry for replying late.
This is the 2D-3D registration in elastix, and it can use inside 3Dslicer by some modification.
http://elastix.bigr.nl/wiki/index.php/Par0013

1 Like