rg2 / xreg

Library and executables for modeling and registration applications in medical image analysis. Particular emphasis on intraoperative fluoroscopic (X-ray) navigation via 2D/3D registration.
MIT License
94 stars 19 forks source link

Registration fails when using AMD OpenCL device on MacOS 10.15 #4

Open rg2 opened 4 years ago

rg2 commented 4 years ago

Run the wiki commands for registration and registration replay (https://github.com/rg2/xreg/wiki/Walkthrough%3A-Single-View-Pelvis-Registration), but pass a device ID corresponding to an AMD OpenCL device. Although the commands complete, the results are completely incorrect.

For example:

xreg-regi2d3d-replay regi_debug_example1_1_pd_003_proj0_w_seg.h5 --video-fps 10 --proj-ds 0.5 --ocl-id AMDRadeonPro5500MComputeEngine

First inspection indicates that reads to the 3D texture object (read_imagef()) are always returning zero during ray casting.