Technology development of 3D detectors for medical imaging