InsightSoftwareConsortium / InsightSoftwareConsortium/ITKElastix
register these two dicom file
- Dominant language
- Python
- Stars
- 281
- Forks
- 29
- Avg merge
- 16h 28m
- Merged PRs (30d)
- 8
Description
Hello, I have two Dicom data, how to carry out rigid registration?Or you can register these two to standard space
I reported an error with the following code
`
import itk
# https://github.com/InsightSoftwareConsortium/ITKElastix/blob/main/examples/ITK_Example01_SimpleRegistration.ipynb
# 将两个图像注册到本地Python二进制文件中,传统上称为固定图像和移动图像:
fixed_image = itk.imread("CTA-GAN/PA2/SE1/IM66.IMA")
moving_image = itk.imread("CTA-GAN/PA1/SE1/IM66.IMA")
parameter_object = itk.ParameterObject.New()
default_rigid_parameter_map = parameter_object.GetDefaultParameterMap('rigid')
parameter_object.AddParameterMap(default_rigid_parameter_map)
registered_image, params = itk.elastix_registration_method(fixed_image, moving_image, parameter_object=parameter_object,log_to_console=True)
`
the error occur:
RuntimeError: D:\a\im\_skbuild\win-amd64-3.10\cmake-build\_deps\elx-src\Core\Main\itkElastixRegistrationMethod.hxx:380:
ITK ERROR: ElastixRegistrationMethod(000001D7DA47E920): Internal elastix error: See elastix log (use LogToConsoleOn() or LogToFileOn()).
the version is:
itk 5.4rc2
itk-core 5.4rc2
itk-elastix 0.19.1
itk-filtering 5.4rc2
itk-io 5.4rc2
itk-numerics 5.4rc2
itk-registration 5.4rc2
itk-segmentation 5.4rc2
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.